aws-solutions-constructs.aws-lambda-polly 2.99.0__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.
Files changed (16) hide show
  1. aws_solutions_constructs_aws_lambda_polly-2.99.0/LICENSE +73 -0
  2. aws_solutions_constructs_aws_lambda_polly-2.99.0/MANIFEST.in +1 -0
  3. aws_solutions_constructs_aws_lambda_polly-2.99.0/PKG-INFO +28 -0
  4. aws_solutions_constructs_aws_lambda_polly-2.99.0/README.md +1 -0
  5. aws_solutions_constructs_aws_lambda_polly-2.99.0/pyproject.toml +9 -0
  6. aws_solutions_constructs_aws_lambda_polly-2.99.0/setup.cfg +4 -0
  7. aws_solutions_constructs_aws_lambda_polly-2.99.0/setup.py +64 -0
  8. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs/aws_lambda_polly/__init__.py +567 -0
  9. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs/aws_lambda_polly/_jsii/__init__.py +46 -0
  10. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs/aws_lambda_polly/_jsii/aws-lambda-polly@2.99.0.jsii.tgz +0 -0
  11. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs/aws_lambda_polly/py.typed +1 -0
  12. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs.aws_lambda_polly.egg-info/PKG-INFO +28 -0
  13. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs.aws_lambda_polly.egg-info/SOURCES.txt +14 -0
  14. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs.aws_lambda_polly.egg-info/dependency_links.txt +1 -0
  15. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs.aws_lambda_polly.egg-info/requires.txt +6 -0
  16. aws_solutions_constructs_aws_lambda_polly-2.99.0/src/aws_solutions_constructs.aws_lambda_polly.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-lambda-polly
3
+ Version: 2.99.0
4
+ Summary: CDK constructs for defining an interaction between an AWS Lambda function and Amazon Polly text-to-speech service with optional S3 buckets and SNS topics.
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.238.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.99.0
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-lambda-polly/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-lambda-polly/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-lambda-polly",
8
+ "version": "2.99.0",
9
+ "description": "CDK constructs for defining an interaction between an AWS Lambda function and Amazon Polly text-to-speech service with optional S3 buckets and SNS topics.",
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_lambda_polly",
25
+ "aws_solutions_constructs.aws_lambda_polly._jsii"
26
+ ],
27
+ "package_data": {
28
+ "aws_solutions_constructs.aws_lambda_polly._jsii": [
29
+ "aws-lambda-polly@2.99.0.jsii.tgz"
30
+ ],
31
+ "aws_solutions_constructs.aws_lambda_polly": [
32
+ "py.typed"
33
+ ]
34
+ },
35
+ "python_requires": "~=3.9",
36
+ "install_requires": [
37
+ "aws-cdk-lib>=2.238.0, <3.0.0",
38
+ "aws-solutions-constructs.core==2.99.0",
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,567 @@
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-lambda-polly/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_ec2 as _aws_cdk_aws_ec2_ceddda9d
37
+ import aws_cdk.aws_kms as _aws_cdk_aws_kms_ceddda9d
38
+ import aws_cdk.aws_lambda as _aws_cdk_aws_lambda_ceddda9d
39
+ import aws_cdk.aws_s3 as _aws_cdk_aws_s3_ceddda9d
40
+ import aws_cdk.aws_sns as _aws_cdk_aws_sns_ceddda9d
41
+ import constructs as _constructs_77d1e7e8
42
+
43
+
44
+ class LambdaToPolly(
45
+ _constructs_77d1e7e8.Construct,
46
+ metaclass=jsii.JSIIMeta,
47
+ jsii_type="@aws-solutions-constructs/aws-lambda-polly.LambdaToPolly",
48
+ ):
49
+ '''
50
+ :summary: The LambdaToPolly class.
51
+ '''
52
+
53
+ def __init__(
54
+ self,
55
+ scope: _constructs_77d1e7e8.Construct,
56
+ id: builtins.str,
57
+ *,
58
+ async_jobs: typing.Optional[builtins.bool] = None,
59
+ bucket_environment_variable_name: typing.Optional[builtins.str] = None,
60
+ bucket_props: typing.Any = None,
61
+ deploy_vpc: typing.Optional[builtins.bool] = None,
62
+ enable_topic_encryption_with_customer_managed_key: typing.Optional[builtins.bool] = None,
63
+ existing_bucket_obj: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
64
+ existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
65
+ existing_topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
66
+ existing_topic_obj: typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic] = None,
67
+ existing_vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
68
+ lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
69
+ logging_bucket_props: typing.Any = None,
70
+ log_s3_access_logs: typing.Optional[builtins.bool] = None,
71
+ topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
72
+ topic_encryption_key_props: typing.Any = None,
73
+ topic_environment_variable_name: typing.Optional[builtins.str] = None,
74
+ topic_props: typing.Any = None,
75
+ vpc_props: typing.Any = None,
76
+ ) -> None:
77
+ '''
78
+ :param scope: - represents the scope for all the resources.
79
+ :param id: - this is a a scope-unique id.
80
+ :param async_jobs: Whether to enable asynchronous speech synthesis tasks. When true, an S3 bucket for audio output and an SNS topic for completion notifications will be created, and the Lambda function will be granted permissions to start and monitor asynchronous synthesis tasks. Default: - false
81
+ :param bucket_environment_variable_name: Optional Name for the Lambda function environment variable set to the name of the output bucket. Only valid when asyncJobs is true. Default: - OUTPUT_BUCKET_NAME
82
+ :param bucket_props: Optional user provided props to override the default props for the S3 Bucket. Only valid when asyncJobs is true. Default: - Default props are used
83
+ :param deploy_vpc: Whether to deploy a new VPC. Default: - false
84
+ :param enable_topic_encryption_with_customer_managed_key: If no key is provided, this flag determines whether the SNS Topic is encrypted with a new CMK or an AWS managed key. This flag is ignored if any of the following are defined: topicProps.masterKey, topicEncryptionKey or topicEncryptionKeyProps. Only valid when asyncJobs is true. Default: - None
85
+ :param existing_bucket_obj: Existing instance of S3 Bucket object for audio output, providing both this and ``bucketProps`` will cause an error. Only valid when asyncJobs is true. Default: - None
86
+ :param existing_lambda_obj: Optional - instance of an existing Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
87
+ :param existing_topic_encryption_key: If an existing topic is provided in the ``existingTopicObj`` property, and that topic is encrypted with a customer managed KMS key, this property must specify that key. Only valid when asyncJobs is true. Default: - None
88
+ :param existing_topic_obj: Optional - existing instance of SNS topic object, providing both this and ``topicProps`` will cause an error. Only valid when asyncJobs is true. Default: - None
89
+ :param existing_vpc: An existing VPC for the construct to use (construct will NOT create a new VPC in this case).
90
+ :param lambda_function_props: Optional - user provided props to override the default props for the Lambda function. Providing both this and ``existingLambdaObj`` causes an error. Function will have these Polly permissions: ['polly:SynthesizeSpeech']. When asyncJobs is true, function will also have ['polly:StartSpeechSynthesisTask', 'polly:GetSpeechSynthesisTask', 'polly:ListSpeechSynthesisTasks']. Default: - Default properties are used.
91
+ :param logging_bucket_props: Optional user provided props to override the default props for the S3 Logging Bucket. Only valid when asyncJobs is true. Default: - Default props are used
92
+ :param log_s3_access_logs: Whether to turn on Access Logs for the S3 bucket with the associated storage costs. Enabling Access Logging is a best practice. Only valid when asyncJobs is true. Default: - true
93
+ :param topic_encryption_key: An optional, imported encryption key to encrypt the SNS Topic with. Only valid when asyncJobs is true. Default: - not specified.
94
+ :param topic_encryption_key_props: Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SNS Topic with. Only valid when asyncJobs is true. Default: - None
95
+ :param topic_environment_variable_name: Optional Name for the Lambda function environment variable set to the ARN of the SNS topic used for asynchronous task completion notifications. Only valid when asyncJobs is true. Default: - SNS_TOPIC_ARN
96
+ :param topic_props: Optional - user provided properties to override the default properties for the SNS topic. Providing both this and ``existingTopicObj`` causes an error. Only valid when asyncJobs is true. Default: - Default properties are used.
97
+ :param vpc_props: Properties to override default properties if deployVpc is true.
98
+
99
+ :access: public
100
+ :summary: Constructs a new instance of the LambdaToPolly class.
101
+ '''
102
+ if __debug__:
103
+ type_hints = typing.get_type_hints(_typecheckingstub__c1ec1a737f0dedaa7072e604dcb4e90ef03aa69f88372962f6ef9381337678b6)
104
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
105
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
106
+ props = LambdaToPollyProps(
107
+ async_jobs=async_jobs,
108
+ bucket_environment_variable_name=bucket_environment_variable_name,
109
+ bucket_props=bucket_props,
110
+ deploy_vpc=deploy_vpc,
111
+ enable_topic_encryption_with_customer_managed_key=enable_topic_encryption_with_customer_managed_key,
112
+ existing_bucket_obj=existing_bucket_obj,
113
+ existing_lambda_obj=existing_lambda_obj,
114
+ existing_topic_encryption_key=existing_topic_encryption_key,
115
+ existing_topic_obj=existing_topic_obj,
116
+ existing_vpc=existing_vpc,
117
+ lambda_function_props=lambda_function_props,
118
+ logging_bucket_props=logging_bucket_props,
119
+ log_s3_access_logs=log_s3_access_logs,
120
+ topic_encryption_key=topic_encryption_key,
121
+ topic_encryption_key_props=topic_encryption_key_props,
122
+ topic_environment_variable_name=topic_environment_variable_name,
123
+ topic_props=topic_props,
124
+ vpc_props=vpc_props,
125
+ )
126
+
127
+ jsii.create(self.__class__, self, [scope, id, props])
128
+
129
+ @builtins.property
130
+ @jsii.member(jsii_name="lambdaFunction")
131
+ def lambda_function(self) -> _aws_cdk_aws_lambda_ceddda9d.Function:
132
+ return typing.cast(_aws_cdk_aws_lambda_ceddda9d.Function, jsii.get(self, "lambdaFunction"))
133
+
134
+ @builtins.property
135
+ @jsii.member(jsii_name="destinationBucket")
136
+ def destination_bucket(self) -> typing.Optional[_aws_cdk_aws_s3_ceddda9d.Bucket]:
137
+ return typing.cast(typing.Optional[_aws_cdk_aws_s3_ceddda9d.Bucket], jsii.get(self, "destinationBucket"))
138
+
139
+ @builtins.property
140
+ @jsii.member(jsii_name="destinationBucketInterface")
141
+ def destination_bucket_interface(
142
+ self,
143
+ ) -> typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket]:
144
+ return typing.cast(typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket], jsii.get(self, "destinationBucketInterface"))
145
+
146
+ @builtins.property
147
+ @jsii.member(jsii_name="loggingBucket")
148
+ def logging_bucket(self) -> typing.Optional[_aws_cdk_aws_s3_ceddda9d.Bucket]:
149
+ return typing.cast(typing.Optional[_aws_cdk_aws_s3_ceddda9d.Bucket], jsii.get(self, "loggingBucket"))
150
+
151
+ @builtins.property
152
+ @jsii.member(jsii_name="notificationTopicEncryptionKey")
153
+ def notification_topic_encryption_key(
154
+ self,
155
+ ) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
156
+ return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey], jsii.get(self, "notificationTopicEncryptionKey"))
157
+
158
+ @builtins.property
159
+ @jsii.member(jsii_name="snsNotificationTopic")
160
+ def sns_notification_topic(
161
+ self,
162
+ ) -> typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic]:
163
+ return typing.cast(typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic], jsii.get(self, "snsNotificationTopic"))
164
+
165
+ @builtins.property
166
+ @jsii.member(jsii_name="vpc")
167
+ def vpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
168
+ return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc], jsii.get(self, "vpc"))
169
+
170
+
171
+ @jsii.data_type(
172
+ jsii_type="@aws-solutions-constructs/aws-lambda-polly.LambdaToPollyProps",
173
+ jsii_struct_bases=[],
174
+ name_mapping={
175
+ "async_jobs": "asyncJobs",
176
+ "bucket_environment_variable_name": "bucketEnvironmentVariableName",
177
+ "bucket_props": "bucketProps",
178
+ "deploy_vpc": "deployVpc",
179
+ "enable_topic_encryption_with_customer_managed_key": "enableTopicEncryptionWithCustomerManagedKey",
180
+ "existing_bucket_obj": "existingBucketObj",
181
+ "existing_lambda_obj": "existingLambdaObj",
182
+ "existing_topic_encryption_key": "existingTopicEncryptionKey",
183
+ "existing_topic_obj": "existingTopicObj",
184
+ "existing_vpc": "existingVpc",
185
+ "lambda_function_props": "lambdaFunctionProps",
186
+ "logging_bucket_props": "loggingBucketProps",
187
+ "log_s3_access_logs": "logS3AccessLogs",
188
+ "topic_encryption_key": "topicEncryptionKey",
189
+ "topic_encryption_key_props": "topicEncryptionKeyProps",
190
+ "topic_environment_variable_name": "topicEnvironmentVariableName",
191
+ "topic_props": "topicProps",
192
+ "vpc_props": "vpcProps",
193
+ },
194
+ )
195
+ class LambdaToPollyProps:
196
+ def __init__(
197
+ self,
198
+ *,
199
+ async_jobs: typing.Optional[builtins.bool] = None,
200
+ bucket_environment_variable_name: typing.Optional[builtins.str] = None,
201
+ bucket_props: typing.Any = None,
202
+ deploy_vpc: typing.Optional[builtins.bool] = None,
203
+ enable_topic_encryption_with_customer_managed_key: typing.Optional[builtins.bool] = None,
204
+ existing_bucket_obj: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
205
+ existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
206
+ existing_topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
207
+ existing_topic_obj: typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic] = None,
208
+ existing_vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
209
+ lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
210
+ logging_bucket_props: typing.Any = None,
211
+ log_s3_access_logs: typing.Optional[builtins.bool] = None,
212
+ topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
213
+ topic_encryption_key_props: typing.Any = None,
214
+ topic_environment_variable_name: typing.Optional[builtins.str] = None,
215
+ topic_props: typing.Any = None,
216
+ vpc_props: typing.Any = None,
217
+ ) -> None:
218
+ '''
219
+ :param async_jobs: Whether to enable asynchronous speech synthesis tasks. When true, an S3 bucket for audio output and an SNS topic for completion notifications will be created, and the Lambda function will be granted permissions to start and monitor asynchronous synthesis tasks. Default: - false
220
+ :param bucket_environment_variable_name: Optional Name for the Lambda function environment variable set to the name of the output bucket. Only valid when asyncJobs is true. Default: - OUTPUT_BUCKET_NAME
221
+ :param bucket_props: Optional user provided props to override the default props for the S3 Bucket. Only valid when asyncJobs is true. Default: - Default props are used
222
+ :param deploy_vpc: Whether to deploy a new VPC. Default: - false
223
+ :param enable_topic_encryption_with_customer_managed_key: If no key is provided, this flag determines whether the SNS Topic is encrypted with a new CMK or an AWS managed key. This flag is ignored if any of the following are defined: topicProps.masterKey, topicEncryptionKey or topicEncryptionKeyProps. Only valid when asyncJobs is true. Default: - None
224
+ :param existing_bucket_obj: Existing instance of S3 Bucket object for audio output, providing both this and ``bucketProps`` will cause an error. Only valid when asyncJobs is true. Default: - None
225
+ :param existing_lambda_obj: Optional - instance of an existing Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
226
+ :param existing_topic_encryption_key: If an existing topic is provided in the ``existingTopicObj`` property, and that topic is encrypted with a customer managed KMS key, this property must specify that key. Only valid when asyncJobs is true. Default: - None
227
+ :param existing_topic_obj: Optional - existing instance of SNS topic object, providing both this and ``topicProps`` will cause an error. Only valid when asyncJobs is true. Default: - None
228
+ :param existing_vpc: An existing VPC for the construct to use (construct will NOT create a new VPC in this case).
229
+ :param lambda_function_props: Optional - user provided props to override the default props for the Lambda function. Providing both this and ``existingLambdaObj`` causes an error. Function will have these Polly permissions: ['polly:SynthesizeSpeech']. When asyncJobs is true, function will also have ['polly:StartSpeechSynthesisTask', 'polly:GetSpeechSynthesisTask', 'polly:ListSpeechSynthesisTasks']. Default: - Default properties are used.
230
+ :param logging_bucket_props: Optional user provided props to override the default props for the S3 Logging Bucket. Only valid when asyncJobs is true. Default: - Default props are used
231
+ :param log_s3_access_logs: Whether to turn on Access Logs for the S3 bucket with the associated storage costs. Enabling Access Logging is a best practice. Only valid when asyncJobs is true. Default: - true
232
+ :param topic_encryption_key: An optional, imported encryption key to encrypt the SNS Topic with. Only valid when asyncJobs is true. Default: - not specified.
233
+ :param topic_encryption_key_props: Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SNS Topic with. Only valid when asyncJobs is true. Default: - None
234
+ :param topic_environment_variable_name: Optional Name for the Lambda function environment variable set to the ARN of the SNS topic used for asynchronous task completion notifications. Only valid when asyncJobs is true. Default: - SNS_TOPIC_ARN
235
+ :param topic_props: Optional - user provided properties to override the default properties for the SNS topic. Providing both this and ``existingTopicObj`` causes an error. Only valid when asyncJobs is true. Default: - Default properties are used.
236
+ :param vpc_props: Properties to override default properties if deployVpc is true.
237
+
238
+ :summary: The properties for the LambdaToPolly class.
239
+ '''
240
+ if isinstance(lambda_function_props, dict):
241
+ lambda_function_props = _aws_cdk_aws_lambda_ceddda9d.FunctionProps(**lambda_function_props)
242
+ if __debug__:
243
+ type_hints = typing.get_type_hints(_typecheckingstub__4f8259ca306e2c6e0e6b5945ad532e43d7d480870f61864499b83261e1034a76)
244
+ check_type(argname="argument async_jobs", value=async_jobs, expected_type=type_hints["async_jobs"])
245
+ check_type(argname="argument bucket_environment_variable_name", value=bucket_environment_variable_name, expected_type=type_hints["bucket_environment_variable_name"])
246
+ check_type(argname="argument bucket_props", value=bucket_props, expected_type=type_hints["bucket_props"])
247
+ check_type(argname="argument deploy_vpc", value=deploy_vpc, expected_type=type_hints["deploy_vpc"])
248
+ check_type(argname="argument enable_topic_encryption_with_customer_managed_key", value=enable_topic_encryption_with_customer_managed_key, expected_type=type_hints["enable_topic_encryption_with_customer_managed_key"])
249
+ check_type(argname="argument existing_bucket_obj", value=existing_bucket_obj, expected_type=type_hints["existing_bucket_obj"])
250
+ check_type(argname="argument existing_lambda_obj", value=existing_lambda_obj, expected_type=type_hints["existing_lambda_obj"])
251
+ check_type(argname="argument existing_topic_encryption_key", value=existing_topic_encryption_key, expected_type=type_hints["existing_topic_encryption_key"])
252
+ check_type(argname="argument existing_topic_obj", value=existing_topic_obj, expected_type=type_hints["existing_topic_obj"])
253
+ check_type(argname="argument existing_vpc", value=existing_vpc, expected_type=type_hints["existing_vpc"])
254
+ check_type(argname="argument lambda_function_props", value=lambda_function_props, expected_type=type_hints["lambda_function_props"])
255
+ check_type(argname="argument logging_bucket_props", value=logging_bucket_props, expected_type=type_hints["logging_bucket_props"])
256
+ check_type(argname="argument log_s3_access_logs", value=log_s3_access_logs, expected_type=type_hints["log_s3_access_logs"])
257
+ check_type(argname="argument topic_encryption_key", value=topic_encryption_key, expected_type=type_hints["topic_encryption_key"])
258
+ check_type(argname="argument topic_encryption_key_props", value=topic_encryption_key_props, expected_type=type_hints["topic_encryption_key_props"])
259
+ check_type(argname="argument topic_environment_variable_name", value=topic_environment_variable_name, expected_type=type_hints["topic_environment_variable_name"])
260
+ check_type(argname="argument topic_props", value=topic_props, expected_type=type_hints["topic_props"])
261
+ check_type(argname="argument vpc_props", value=vpc_props, expected_type=type_hints["vpc_props"])
262
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
263
+ if async_jobs is not None:
264
+ self._values["async_jobs"] = async_jobs
265
+ if bucket_environment_variable_name is not None:
266
+ self._values["bucket_environment_variable_name"] = bucket_environment_variable_name
267
+ if bucket_props is not None:
268
+ self._values["bucket_props"] = bucket_props
269
+ if deploy_vpc is not None:
270
+ self._values["deploy_vpc"] = deploy_vpc
271
+ if enable_topic_encryption_with_customer_managed_key is not None:
272
+ self._values["enable_topic_encryption_with_customer_managed_key"] = enable_topic_encryption_with_customer_managed_key
273
+ if existing_bucket_obj is not None:
274
+ self._values["existing_bucket_obj"] = existing_bucket_obj
275
+ if existing_lambda_obj is not None:
276
+ self._values["existing_lambda_obj"] = existing_lambda_obj
277
+ if existing_topic_encryption_key is not None:
278
+ self._values["existing_topic_encryption_key"] = existing_topic_encryption_key
279
+ if existing_topic_obj is not None:
280
+ self._values["existing_topic_obj"] = existing_topic_obj
281
+ if existing_vpc is not None:
282
+ self._values["existing_vpc"] = existing_vpc
283
+ if lambda_function_props is not None:
284
+ self._values["lambda_function_props"] = lambda_function_props
285
+ if logging_bucket_props is not None:
286
+ self._values["logging_bucket_props"] = logging_bucket_props
287
+ if log_s3_access_logs is not None:
288
+ self._values["log_s3_access_logs"] = log_s3_access_logs
289
+ if topic_encryption_key is not None:
290
+ self._values["topic_encryption_key"] = topic_encryption_key
291
+ if topic_encryption_key_props is not None:
292
+ self._values["topic_encryption_key_props"] = topic_encryption_key_props
293
+ if topic_environment_variable_name is not None:
294
+ self._values["topic_environment_variable_name"] = topic_environment_variable_name
295
+ if topic_props is not None:
296
+ self._values["topic_props"] = topic_props
297
+ if vpc_props is not None:
298
+ self._values["vpc_props"] = vpc_props
299
+
300
+ @builtins.property
301
+ def async_jobs(self) -> typing.Optional[builtins.bool]:
302
+ '''Whether to enable asynchronous speech synthesis tasks.
303
+
304
+ When true, an S3 bucket for audio output and an SNS topic for
305
+ completion notifications will be created, and the Lambda function will be granted permissions to start and monitor
306
+ asynchronous synthesis tasks.
307
+
308
+ :default: - false
309
+ '''
310
+ result = self._values.get("async_jobs")
311
+ return typing.cast(typing.Optional[builtins.bool], result)
312
+
313
+ @builtins.property
314
+ def bucket_environment_variable_name(self) -> typing.Optional[builtins.str]:
315
+ '''Optional Name for the Lambda function environment variable set to the name of the output bucket.
316
+
317
+ Only valid when asyncJobs is true.
318
+
319
+ :default: - OUTPUT_BUCKET_NAME
320
+ '''
321
+ result = self._values.get("bucket_environment_variable_name")
322
+ return typing.cast(typing.Optional[builtins.str], result)
323
+
324
+ @builtins.property
325
+ def bucket_props(self) -> typing.Any:
326
+ '''Optional user provided props to override the default props for the S3 Bucket.
327
+
328
+ Only valid when asyncJobs is true.
329
+
330
+ :default: - Default props are used
331
+ '''
332
+ result = self._values.get("bucket_props")
333
+ return typing.cast(typing.Any, result)
334
+
335
+ @builtins.property
336
+ def deploy_vpc(self) -> typing.Optional[builtins.bool]:
337
+ '''Whether to deploy a new VPC.
338
+
339
+ :default: - false
340
+ '''
341
+ result = self._values.get("deploy_vpc")
342
+ return typing.cast(typing.Optional[builtins.bool], result)
343
+
344
+ @builtins.property
345
+ def enable_topic_encryption_with_customer_managed_key(
346
+ self,
347
+ ) -> typing.Optional[builtins.bool]:
348
+ '''If no key is provided, this flag determines whether the SNS Topic is encrypted with a new CMK or an AWS managed key.
349
+
350
+ This flag is ignored if any of the following are defined: topicProps.masterKey, topicEncryptionKey or topicEncryptionKeyProps.
351
+ Only valid when asyncJobs is true.
352
+
353
+ :default: - None
354
+ '''
355
+ result = self._values.get("enable_topic_encryption_with_customer_managed_key")
356
+ return typing.cast(typing.Optional[builtins.bool], result)
357
+
358
+ @builtins.property
359
+ def existing_bucket_obj(self) -> typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket]:
360
+ '''Existing instance of S3 Bucket object for audio output, providing both this and ``bucketProps`` will cause an error.
361
+
362
+ Only valid when asyncJobs is true.
363
+
364
+ :default: - None
365
+ '''
366
+ result = self._values.get("existing_bucket_obj")
367
+ return typing.cast(typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket], result)
368
+
369
+ @builtins.property
370
+ def existing_lambda_obj(
371
+ self,
372
+ ) -> typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function]:
373
+ '''Optional - instance of an existing Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error.
374
+
375
+ :default: - None
376
+ '''
377
+ result = self._values.get("existing_lambda_obj")
378
+ return typing.cast(typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function], result)
379
+
380
+ @builtins.property
381
+ def existing_topic_encryption_key(
382
+ self,
383
+ ) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key]:
384
+ '''If an existing topic is provided in the ``existingTopicObj`` property, and that topic is encrypted with a customer managed KMS key, this property must specify that key.
385
+
386
+ Only valid when asyncJobs is true.
387
+
388
+ :default: - None
389
+ '''
390
+ result = self._values.get("existing_topic_encryption_key")
391
+ return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key], result)
392
+
393
+ @builtins.property
394
+ def existing_topic_obj(self) -> typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic]:
395
+ '''Optional - existing instance of SNS topic object, providing both this and ``topicProps`` will cause an error.
396
+
397
+ Only valid when asyncJobs is true.
398
+
399
+ :default: - None
400
+ '''
401
+ result = self._values.get("existing_topic_obj")
402
+ return typing.cast(typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic], result)
403
+
404
+ @builtins.property
405
+ def existing_vpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
406
+ '''An existing VPC for the construct to use (construct will NOT create a new VPC in this case).'''
407
+ result = self._values.get("existing_vpc")
408
+ return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc], result)
409
+
410
+ @builtins.property
411
+ def lambda_function_props(
412
+ self,
413
+ ) -> typing.Optional[_aws_cdk_aws_lambda_ceddda9d.FunctionProps]:
414
+ '''Optional - user provided props to override the default props for the Lambda function.
415
+
416
+ Providing both this and ``existingLambdaObj``
417
+ causes an error.
418
+
419
+ Function will have these Polly permissions: ['polly:SynthesizeSpeech']. When asyncJobs is true, function will also have
420
+ ['polly:StartSpeechSynthesisTask', 'polly:GetSpeechSynthesisTask', 'polly:ListSpeechSynthesisTasks'].
421
+
422
+ :default: - Default properties are used.
423
+ '''
424
+ result = self._values.get("lambda_function_props")
425
+ return typing.cast(typing.Optional[_aws_cdk_aws_lambda_ceddda9d.FunctionProps], result)
426
+
427
+ @builtins.property
428
+ def logging_bucket_props(self) -> typing.Any:
429
+ '''Optional user provided props to override the default props for the S3 Logging Bucket.
430
+
431
+ Only valid when asyncJobs is true.
432
+
433
+ :default: - Default props are used
434
+ '''
435
+ result = self._values.get("logging_bucket_props")
436
+ return typing.cast(typing.Any, result)
437
+
438
+ @builtins.property
439
+ def log_s3_access_logs(self) -> typing.Optional[builtins.bool]:
440
+ '''Whether to turn on Access Logs for the S3 bucket with the associated storage costs.
441
+
442
+ Enabling Access Logging is a best practice.
443
+ Only valid when asyncJobs is true.
444
+
445
+ :default: - true
446
+ '''
447
+ result = self._values.get("log_s3_access_logs")
448
+ return typing.cast(typing.Optional[builtins.bool], result)
449
+
450
+ @builtins.property
451
+ def topic_encryption_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key]:
452
+ '''An optional, imported encryption key to encrypt the SNS Topic with.
453
+
454
+ Only valid when asyncJobs is true.
455
+
456
+ :default: - not specified.
457
+ '''
458
+ result = self._values.get("topic_encryption_key")
459
+ return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key], result)
460
+
461
+ @builtins.property
462
+ def topic_encryption_key_props(self) -> typing.Any:
463
+ '''Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SNS Topic with.
464
+
465
+ Only valid when asyncJobs is true.
466
+
467
+ :default: - None
468
+ '''
469
+ result = self._values.get("topic_encryption_key_props")
470
+ return typing.cast(typing.Any, result)
471
+
472
+ @builtins.property
473
+ def topic_environment_variable_name(self) -> typing.Optional[builtins.str]:
474
+ '''Optional Name for the Lambda function environment variable set to the ARN of the SNS topic used for asynchronous task completion notifications.
475
+
476
+ Only valid when asyncJobs is true.
477
+
478
+ :default: - SNS_TOPIC_ARN
479
+ '''
480
+ result = self._values.get("topic_environment_variable_name")
481
+ return typing.cast(typing.Optional[builtins.str], result)
482
+
483
+ @builtins.property
484
+ def topic_props(self) -> typing.Any:
485
+ '''Optional - user provided properties to override the default properties for the SNS topic.
486
+
487
+ Providing both this and ``existingTopicObj`` causes an error. Only valid when asyncJobs is true.
488
+
489
+ :default: - Default properties are used.
490
+ '''
491
+ result = self._values.get("topic_props")
492
+ return typing.cast(typing.Any, result)
493
+
494
+ @builtins.property
495
+ def vpc_props(self) -> typing.Any:
496
+ '''Properties to override default properties if deployVpc is true.'''
497
+ result = self._values.get("vpc_props")
498
+ return typing.cast(typing.Any, result)
499
+
500
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
501
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
502
+
503
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
504
+ return not (rhs == self)
505
+
506
+ def __repr__(self) -> str:
507
+ return "LambdaToPollyProps(%s)" % ", ".join(
508
+ k + "=" + repr(v) for k, v in self._values.items()
509
+ )
510
+
511
+
512
+ __all__ = [
513
+ "LambdaToPolly",
514
+ "LambdaToPollyProps",
515
+ ]
516
+
517
+ publication.publish()
518
+
519
+ def _typecheckingstub__c1ec1a737f0dedaa7072e604dcb4e90ef03aa69f88372962f6ef9381337678b6(
520
+ scope: _constructs_77d1e7e8.Construct,
521
+ id: builtins.str,
522
+ *,
523
+ async_jobs: typing.Optional[builtins.bool] = None,
524
+ bucket_environment_variable_name: typing.Optional[builtins.str] = None,
525
+ bucket_props: typing.Any = None,
526
+ deploy_vpc: typing.Optional[builtins.bool] = None,
527
+ enable_topic_encryption_with_customer_managed_key: typing.Optional[builtins.bool] = None,
528
+ existing_bucket_obj: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
529
+ existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
530
+ existing_topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
531
+ existing_topic_obj: typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic] = None,
532
+ existing_vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
533
+ lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
534
+ logging_bucket_props: typing.Any = None,
535
+ log_s3_access_logs: typing.Optional[builtins.bool] = None,
536
+ topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
537
+ topic_encryption_key_props: typing.Any = None,
538
+ topic_environment_variable_name: typing.Optional[builtins.str] = None,
539
+ topic_props: typing.Any = None,
540
+ vpc_props: typing.Any = None,
541
+ ) -> None:
542
+ """Type checking stubs"""
543
+ pass
544
+
545
+ def _typecheckingstub__4f8259ca306e2c6e0e6b5945ad532e43d7d480870f61864499b83261e1034a76(
546
+ *,
547
+ async_jobs: typing.Optional[builtins.bool] = None,
548
+ bucket_environment_variable_name: typing.Optional[builtins.str] = None,
549
+ bucket_props: typing.Any = None,
550
+ deploy_vpc: typing.Optional[builtins.bool] = None,
551
+ enable_topic_encryption_with_customer_managed_key: typing.Optional[builtins.bool] = None,
552
+ existing_bucket_obj: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
553
+ existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
554
+ existing_topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
555
+ existing_topic_obj: typing.Optional[_aws_cdk_aws_sns_ceddda9d.Topic] = None,
556
+ existing_vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
557
+ lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
558
+ logging_bucket_props: typing.Any = None,
559
+ log_s3_access_logs: typing.Optional[builtins.bool] = None,
560
+ topic_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
561
+ topic_encryption_key_props: typing.Any = None,
562
+ topic_environment_variable_name: typing.Optional[builtins.str] = None,
563
+ topic_props: typing.Any = None,
564
+ vpc_props: typing.Any = None,
565
+ ) -> None:
566
+ """Type checking stubs"""
567
+ 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-lambda-polly",
37
+ "2.99.0",
38
+ __name__[0:-6],
39
+ "aws-lambda-polly@2.99.0.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-lambda-polly
3
+ Version: 2.99.0
4
+ Summary: CDK constructs for defining an interaction between an AWS Lambda function and Amazon Polly text-to-speech service with optional S3 buckets and SNS topics.
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.238.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.99.0
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-lambda-polly/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_lambda_polly.egg-info/PKG-INFO
7
+ src/aws_solutions_constructs.aws_lambda_polly.egg-info/SOURCES.txt
8
+ src/aws_solutions_constructs.aws_lambda_polly.egg-info/dependency_links.txt
9
+ src/aws_solutions_constructs.aws_lambda_polly.egg-info/requires.txt
10
+ src/aws_solutions_constructs.aws_lambda_polly.egg-info/top_level.txt
11
+ src/aws_solutions_constructs/aws_lambda_polly/__init__.py
12
+ src/aws_solutions_constructs/aws_lambda_polly/py.typed
13
+ src/aws_solutions_constructs/aws_lambda_polly/_jsii/__init__.py
14
+ src/aws_solutions_constructs/aws_lambda_polly/_jsii/aws-lambda-polly@2.99.0.jsii.tgz
@@ -0,0 +1,6 @@
1
+ aws-cdk-lib<3.0.0,>=2.238.0
2
+ aws-solutions-constructs.core==2.99.0
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