cloudstructs 0.9.26__tar.gz → 0.9.28__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.
- {cloudstructs-0.9.26/src/cloudstructs.egg-info → cloudstructs-0.9.28}/PKG-INFO +2 -2
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/setup.py +3 -3
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/src/cloudstructs/__init__.py +33 -21
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/src/cloudstructs/_jsii/__init__.py +1 -1
- cloudstructs-0.9.28/src/cloudstructs/_jsii/cloudstructs@0.9.28.jsii.tgz +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28/src/cloudstructs.egg-info}/PKG-INFO +2 -2
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/src/cloudstructs.egg-info/SOURCES.txt +1 -1
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/src/cloudstructs.egg-info/requires.txt +1 -1
- cloudstructs-0.9.26/src/cloudstructs/_jsii/cloudstructs@0.9.26.jsii.tgz +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/LICENSE +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/MANIFEST.in +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/README.md +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/pyproject.toml +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/setup.cfg +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/src/cloudstructs/py.typed +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/src/cloudstructs.egg-info/dependency_links.txt +0 -0
- {cloudstructs-0.9.26 → cloudstructs-0.9.28}/src/cloudstructs.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloudstructs
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.28
|
|
4
4
|
Summary: High-level constructs for AWS CDK
|
|
5
5
|
Home-page: https://github.com/jogold/cloudstructs.git
|
|
6
6
|
Author: Jonathan Goldwasser<jonathan.goldwasser@gmail.com>
|
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: aws-cdk-lib<3.0.0,>=2.133.0
|
|
24
24
|
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
25
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.107.0
|
|
26
26
|
Requires-Dist: publication>=0.0.3
|
|
27
27
|
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
28
28
|
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "cloudstructs",
|
|
8
|
-
"version": "0.9.
|
|
8
|
+
"version": "0.9.28",
|
|
9
9
|
"description": "High-level constructs for AWS CDK",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"url": "https://github.com/jogold/cloudstructs.git",
|
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"cloudstructs._jsii": [
|
|
29
|
-
"cloudstructs@0.9.
|
|
29
|
+
"cloudstructs@0.9.28.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"cloudstructs": [
|
|
32
32
|
"py.typed"
|
|
@@ -36,7 +36,7 @@ kwargs = json.loads(
|
|
|
36
36
|
"install_requires": [
|
|
37
37
|
"aws-cdk-lib>=2.133.0, <3.0.0",
|
|
38
38
|
"constructs>=10.0.5, <11.0.0",
|
|
39
|
-
"jsii>=1.
|
|
39
|
+
"jsii>=1.107.0, <2.0.0",
|
|
40
40
|
"publication>=0.0.3",
|
|
41
41
|
"typeguard>=2.13.3,<4.3.0"
|
|
42
42
|
],
|
|
@@ -727,21 +727,21 @@ class EmailReceiver(
|
|
|
727
727
|
scope: _constructs_77d1e7e8.Construct,
|
|
728
728
|
id: builtins.str,
|
|
729
729
|
*,
|
|
730
|
-
function: _aws_cdk_aws_lambda_ceddda9d.IFunction,
|
|
731
730
|
receipt_rule_set: _aws_cdk_aws_ses_ceddda9d.IReceiptRuleSet,
|
|
732
731
|
recipients: typing.Sequence[builtins.str],
|
|
733
732
|
after_rule: typing.Optional[_aws_cdk_aws_ses_ceddda9d.IReceiptRule] = None,
|
|
734
733
|
enabled: typing.Optional[builtins.bool] = None,
|
|
734
|
+
function: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction] = None,
|
|
735
735
|
source_whitelist: typing.Optional[builtins.str] = None,
|
|
736
736
|
) -> None:
|
|
737
737
|
'''
|
|
738
738
|
:param scope: -
|
|
739
739
|
:param id: -
|
|
740
|
-
:param function: A Lambda function to invoke after the message is saved to S3. The Lambda function will be invoked with a SESMessage as event.
|
|
741
740
|
:param receipt_rule_set: The SES receipt rule set where a receipt rule will be added.
|
|
742
741
|
:param recipients: The recipients for which emails should be received.
|
|
743
742
|
:param after_rule: An existing rule after which the new rule will be placed in the rule set. Default: - The new rule is inserted at the beginning of the rule list.
|
|
744
743
|
:param enabled: Whether the receiver is active. Default: true
|
|
744
|
+
:param function: A Lambda function to invoke after the message is saved to S3. The Lambda function will be invoked with a SESMessage as event.
|
|
745
745
|
:param source_whitelist: A regular expression to whitelist source email addresses. Default: - no whitelisting of source email addresses
|
|
746
746
|
'''
|
|
747
747
|
if __debug__:
|
|
@@ -749,26 +749,38 @@ class EmailReceiver(
|
|
|
749
749
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
750
750
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
751
751
|
props = EmailReceiverProps(
|
|
752
|
-
function=function,
|
|
753
752
|
receipt_rule_set=receipt_rule_set,
|
|
754
753
|
recipients=recipients,
|
|
755
754
|
after_rule=after_rule,
|
|
756
755
|
enabled=enabled,
|
|
756
|
+
function=function,
|
|
757
757
|
source_whitelist=source_whitelist,
|
|
758
758
|
)
|
|
759
759
|
|
|
760
760
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
761
761
|
|
|
762
|
+
@builtins.property
|
|
763
|
+
@jsii.member(jsii_name="bucket")
|
|
764
|
+
def bucket(self) -> _aws_cdk_aws_s3_ceddda9d.Bucket:
|
|
765
|
+
'''The S3 bucket where emails are delivered.'''
|
|
766
|
+
return typing.cast(_aws_cdk_aws_s3_ceddda9d.Bucket, jsii.get(self, "bucket"))
|
|
767
|
+
|
|
768
|
+
@builtins.property
|
|
769
|
+
@jsii.member(jsii_name="topic")
|
|
770
|
+
def topic(self) -> _aws_cdk_aws_sns_ceddda9d.ITopic:
|
|
771
|
+
'''The SNS topic that is notified when emails are delivered to S3.'''
|
|
772
|
+
return typing.cast(_aws_cdk_aws_sns_ceddda9d.ITopic, jsii.get(self, "topic"))
|
|
773
|
+
|
|
762
774
|
|
|
763
775
|
@jsii.data_type(
|
|
764
776
|
jsii_type="cloudstructs.EmailReceiverProps",
|
|
765
777
|
jsii_struct_bases=[],
|
|
766
778
|
name_mapping={
|
|
767
|
-
"function": "function",
|
|
768
779
|
"receipt_rule_set": "receiptRuleSet",
|
|
769
780
|
"recipients": "recipients",
|
|
770
781
|
"after_rule": "afterRule",
|
|
771
782
|
"enabled": "enabled",
|
|
783
|
+
"function": "function",
|
|
772
784
|
"source_whitelist": "sourceWhitelist",
|
|
773
785
|
},
|
|
774
786
|
)
|
|
@@ -776,32 +788,31 @@ class EmailReceiverProps:
|
|
|
776
788
|
def __init__(
|
|
777
789
|
self,
|
|
778
790
|
*,
|
|
779
|
-
function: _aws_cdk_aws_lambda_ceddda9d.IFunction,
|
|
780
791
|
receipt_rule_set: _aws_cdk_aws_ses_ceddda9d.IReceiptRuleSet,
|
|
781
792
|
recipients: typing.Sequence[builtins.str],
|
|
782
793
|
after_rule: typing.Optional[_aws_cdk_aws_ses_ceddda9d.IReceiptRule] = None,
|
|
783
794
|
enabled: typing.Optional[builtins.bool] = None,
|
|
795
|
+
function: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction] = None,
|
|
784
796
|
source_whitelist: typing.Optional[builtins.str] = None,
|
|
785
797
|
) -> None:
|
|
786
798
|
'''Properties for an EmailReceiver.
|
|
787
799
|
|
|
788
|
-
:param function: A Lambda function to invoke after the message is saved to S3. The Lambda function will be invoked with a SESMessage as event.
|
|
789
800
|
:param receipt_rule_set: The SES receipt rule set where a receipt rule will be added.
|
|
790
801
|
:param recipients: The recipients for which emails should be received.
|
|
791
802
|
:param after_rule: An existing rule after which the new rule will be placed in the rule set. Default: - The new rule is inserted at the beginning of the rule list.
|
|
792
803
|
:param enabled: Whether the receiver is active. Default: true
|
|
804
|
+
:param function: A Lambda function to invoke after the message is saved to S3. The Lambda function will be invoked with a SESMessage as event.
|
|
793
805
|
:param source_whitelist: A regular expression to whitelist source email addresses. Default: - no whitelisting of source email addresses
|
|
794
806
|
'''
|
|
795
807
|
if __debug__:
|
|
796
808
|
type_hints = typing.get_type_hints(_typecheckingstub__8500959d1e20d8ab966122bf508b686ba123767348a2c264cc34f3ce69165ae2)
|
|
797
|
-
check_type(argname="argument function", value=function, expected_type=type_hints["function"])
|
|
798
809
|
check_type(argname="argument receipt_rule_set", value=receipt_rule_set, expected_type=type_hints["receipt_rule_set"])
|
|
799
810
|
check_type(argname="argument recipients", value=recipients, expected_type=type_hints["recipients"])
|
|
800
811
|
check_type(argname="argument after_rule", value=after_rule, expected_type=type_hints["after_rule"])
|
|
801
812
|
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
813
|
+
check_type(argname="argument function", value=function, expected_type=type_hints["function"])
|
|
802
814
|
check_type(argname="argument source_whitelist", value=source_whitelist, expected_type=type_hints["source_whitelist"])
|
|
803
815
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
804
|
-
"function": function,
|
|
805
816
|
"receipt_rule_set": receipt_rule_set,
|
|
806
817
|
"recipients": recipients,
|
|
807
818
|
}
|
|
@@ -809,20 +820,11 @@ class EmailReceiverProps:
|
|
|
809
820
|
self._values["after_rule"] = after_rule
|
|
810
821
|
if enabled is not None:
|
|
811
822
|
self._values["enabled"] = enabled
|
|
823
|
+
if function is not None:
|
|
824
|
+
self._values["function"] = function
|
|
812
825
|
if source_whitelist is not None:
|
|
813
826
|
self._values["source_whitelist"] = source_whitelist
|
|
814
827
|
|
|
815
|
-
@builtins.property
|
|
816
|
-
def function(self) -> _aws_cdk_aws_lambda_ceddda9d.IFunction:
|
|
817
|
-
'''A Lambda function to invoke after the message is saved to S3.
|
|
818
|
-
|
|
819
|
-
The Lambda
|
|
820
|
-
function will be invoked with a SESMessage as event.
|
|
821
|
-
'''
|
|
822
|
-
result = self._values.get("function")
|
|
823
|
-
assert result is not None, "Required property 'function' is missing"
|
|
824
|
-
return typing.cast(_aws_cdk_aws_lambda_ceddda9d.IFunction, result)
|
|
825
|
-
|
|
826
828
|
@builtins.property
|
|
827
829
|
def receipt_rule_set(self) -> _aws_cdk_aws_ses_ceddda9d.IReceiptRuleSet:
|
|
828
830
|
'''The SES receipt rule set where a receipt rule will be added.'''
|
|
@@ -855,6 +857,16 @@ class EmailReceiverProps:
|
|
|
855
857
|
result = self._values.get("enabled")
|
|
856
858
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
857
859
|
|
|
860
|
+
@builtins.property
|
|
861
|
+
def function(self) -> typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction]:
|
|
862
|
+
'''A Lambda function to invoke after the message is saved to S3.
|
|
863
|
+
|
|
864
|
+
The Lambda
|
|
865
|
+
function will be invoked with a SESMessage as event.
|
|
866
|
+
'''
|
|
867
|
+
result = self._values.get("function")
|
|
868
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction], result)
|
|
869
|
+
|
|
858
870
|
@builtins.property
|
|
859
871
|
def source_whitelist(self) -> typing.Optional[builtins.str]:
|
|
860
872
|
'''A regular expression to whitelist source email addresses.
|
|
@@ -3909,11 +3921,11 @@ def _typecheckingstub__d2b6712707b39b2d133dd62aef1ea71cf3732c305783f22f76cbafc80
|
|
|
3909
3921
|
scope: _constructs_77d1e7e8.Construct,
|
|
3910
3922
|
id: builtins.str,
|
|
3911
3923
|
*,
|
|
3912
|
-
function: _aws_cdk_aws_lambda_ceddda9d.IFunction,
|
|
3913
3924
|
receipt_rule_set: _aws_cdk_aws_ses_ceddda9d.IReceiptRuleSet,
|
|
3914
3925
|
recipients: typing.Sequence[builtins.str],
|
|
3915
3926
|
after_rule: typing.Optional[_aws_cdk_aws_ses_ceddda9d.IReceiptRule] = None,
|
|
3916
3927
|
enabled: typing.Optional[builtins.bool] = None,
|
|
3928
|
+
function: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction] = None,
|
|
3917
3929
|
source_whitelist: typing.Optional[builtins.str] = None,
|
|
3918
3930
|
) -> None:
|
|
3919
3931
|
"""Type checking stubs"""
|
|
@@ -3921,11 +3933,11 @@ def _typecheckingstub__d2b6712707b39b2d133dd62aef1ea71cf3732c305783f22f76cbafc80
|
|
|
3921
3933
|
|
|
3922
3934
|
def _typecheckingstub__8500959d1e20d8ab966122bf508b686ba123767348a2c264cc34f3ce69165ae2(
|
|
3923
3935
|
*,
|
|
3924
|
-
function: _aws_cdk_aws_lambda_ceddda9d.IFunction,
|
|
3925
3936
|
receipt_rule_set: _aws_cdk_aws_ses_ceddda9d.IReceiptRuleSet,
|
|
3926
3937
|
recipients: typing.Sequence[builtins.str],
|
|
3927
3938
|
after_rule: typing.Optional[_aws_cdk_aws_ses_ceddda9d.IReceiptRule] = None,
|
|
3928
3939
|
enabled: typing.Optional[builtins.bool] = None,
|
|
3940
|
+
function: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction] = None,
|
|
3929
3941
|
source_whitelist: typing.Optional[builtins.str] = None,
|
|
3930
3942
|
) -> None:
|
|
3931
3943
|
"""Type checking stubs"""
|
|
@@ -32,7 +32,7 @@ import aws_cdk._jsii
|
|
|
32
32
|
import constructs._jsii
|
|
33
33
|
|
|
34
34
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
35
|
-
"cloudstructs", "0.9.
|
|
35
|
+
"cloudstructs", "0.9.28", __name__[0:-6], "cloudstructs@0.9.28.jsii.tgz"
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloudstructs
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.28
|
|
4
4
|
Summary: High-level constructs for AWS CDK
|
|
5
5
|
Home-page: https://github.com/jogold/cloudstructs.git
|
|
6
6
|
Author: Jonathan Goldwasser<jonathan.goldwasser@gmail.com>
|
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: aws-cdk-lib<3.0.0,>=2.133.0
|
|
24
24
|
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
25
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.107.0
|
|
26
26
|
Requires-Dist: publication>=0.0.3
|
|
27
27
|
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
28
28
|
|
|
@@ -11,4 +11,4 @@ src/cloudstructs.egg-info/dependency_links.txt
|
|
|
11
11
|
src/cloudstructs.egg-info/requires.txt
|
|
12
12
|
src/cloudstructs.egg-info/top_level.txt
|
|
13
13
|
src/cloudstructs/_jsii/__init__.py
|
|
14
|
-
src/cloudstructs/_jsii/cloudstructs@0.9.
|
|
14
|
+
src/cloudstructs/_jsii/cloudstructs@0.9.28.jsii.tgz
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|