cloudstructs 0.9.8__tar.gz → 0.9.10__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.8/src/cloudstructs.egg-info → cloudstructs-0.9.10}/PKG-INFO +2 -1
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/README.md +1 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/setup.py +3 -3
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/src/cloudstructs/__init__.py +134 -1
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/src/cloudstructs/_jsii/__init__.py +1 -1
- cloudstructs-0.9.10/src/cloudstructs/_jsii/cloudstructs@0.9.10.jsii.tgz +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10/src/cloudstructs.egg-info}/PKG-INFO +2 -1
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/src/cloudstructs.egg-info/SOURCES.txt +1 -1
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/src/cloudstructs.egg-info/requires.txt +1 -1
- cloudstructs-0.9.8/src/cloudstructs/_jsii/cloudstructs@0.9.8.jsii.tgz +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/LICENSE +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/MANIFEST.in +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/pyproject.toml +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/setup.cfg +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/src/cloudstructs/py.typed +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/src/cloudstructs.egg-info/dependency_links.txt +0 -0
- {cloudstructs-0.9.8 → cloudstructs-0.9.10}/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.10
|
|
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>
|
|
@@ -38,6 +38,7 @@ Version >= 0.2.0 requires AWS CDK v2.
|
|
|
38
38
|
a rule
|
|
39
39
|
* [`EmailReceiver`](src/email-receiver) Receive emails through SES, save them to S3
|
|
40
40
|
and invoke a Lambda function
|
|
41
|
+
* ['MjmlTemplate`](src/mjml-template) SES email template from [MJML](https://mjml.io/)
|
|
41
42
|
* [`SlackApp`](src/slack-app) Deploy Slack apps from manifests
|
|
42
43
|
* [`SlackEvents`](src/slack-events) Send Slack events to Amazon EventBridge
|
|
43
44
|
* [`SlackTextract`](src/slack-textract) Extract text from images posted to Slack
|
|
@@ -15,6 +15,7 @@ Version >= 0.2.0 requires AWS CDK v2.
|
|
|
15
15
|
a rule
|
|
16
16
|
* [`EmailReceiver`](src/email-receiver) Receive emails through SES, save them to S3
|
|
17
17
|
and invoke a Lambda function
|
|
18
|
+
* ['MjmlTemplate`](src/mjml-template) SES email template from [MJML](https://mjml.io/)
|
|
18
19
|
* [`SlackApp`](src/slack-app) Deploy Slack apps from manifests
|
|
19
20
|
* [`SlackEvents`](src/slack-events) Send Slack events to Amazon EventBridge
|
|
20
21
|
* [`SlackTextract`](src/slack-textract) Extract text from images posted to Slack
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "cloudstructs",
|
|
8
|
-
"version": "0.9.
|
|
8
|
+
"version": "0.9.10",
|
|
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.10.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.100.0, <2.0.0",
|
|
40
40
|
"publication>=0.0.3",
|
|
41
41
|
"typeguard~=2.13.3"
|
|
42
42
|
],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'''
|
|
1
|
+
r'''
|
|
2
2
|
# cloudstructs
|
|
3
3
|
|
|
4
4
|
High-level constructs for AWS CDK
|
|
@@ -16,6 +16,7 @@ Version >= 0.2.0 requires AWS CDK v2.
|
|
|
16
16
|
a rule
|
|
17
17
|
* [`EmailReceiver`](src/email-receiver) Receive emails through SES, save them to S3
|
|
18
18
|
and invoke a Lambda function
|
|
19
|
+
* ['MjmlTemplate`](src/mjml-template) SES email template from [MJML](https://mjml.io/)
|
|
19
20
|
* [`SlackApp`](src/slack-app) Deploy Slack apps from manifests
|
|
20
21
|
* [`SlackEvents`](src/slack-events) Send Slack events to Amazon EventBridge
|
|
21
22
|
* [`SlackTextract`](src/slack-textract) Extract text from images posted to Slack
|
|
@@ -886,6 +887,116 @@ class _IStateMachineProxy:
|
|
|
886
887
|
typing.cast(typing.Any, IStateMachine).__jsii_proxy_class__ = lambda : _IStateMachineProxy
|
|
887
888
|
|
|
888
889
|
|
|
890
|
+
class MjmlTemplate(
|
|
891
|
+
_constructs_77d1e7e8.Construct,
|
|
892
|
+
metaclass=jsii.JSIIMeta,
|
|
893
|
+
jsii_type="cloudstructs.MjmlTemplate",
|
|
894
|
+
):
|
|
895
|
+
'''SES email template from `MJML <https://mjml.io/>`_.'''
|
|
896
|
+
|
|
897
|
+
def __init__(
|
|
898
|
+
self,
|
|
899
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
900
|
+
id: builtins.str,
|
|
901
|
+
*,
|
|
902
|
+
mjml: builtins.str,
|
|
903
|
+
subject: builtins.str,
|
|
904
|
+
template_name: typing.Optional[builtins.str] = None,
|
|
905
|
+
) -> None:
|
|
906
|
+
'''
|
|
907
|
+
:param scope: -
|
|
908
|
+
:param id: -
|
|
909
|
+
:param mjml: The MJML for the email.
|
|
910
|
+
:param subject: The subject line of the email.
|
|
911
|
+
:param template_name: The name of the template. Default: - a CloudFormation generated name
|
|
912
|
+
'''
|
|
913
|
+
if __debug__:
|
|
914
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7c14fd1220e2b1a369a0a4b700ec2fd623089a00de406d691f1ebd18fbe576b9)
|
|
915
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
916
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
917
|
+
props = MjmlTemplateProps(
|
|
918
|
+
mjml=mjml, subject=subject, template_name=template_name
|
|
919
|
+
)
|
|
920
|
+
|
|
921
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
922
|
+
|
|
923
|
+
@builtins.property
|
|
924
|
+
@jsii.member(jsii_name="templateName")
|
|
925
|
+
def template_name(self) -> builtins.str:
|
|
926
|
+
'''The name of the template.'''
|
|
927
|
+
return typing.cast(builtins.str, jsii.get(self, "templateName"))
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
@jsii.data_type(
|
|
931
|
+
jsii_type="cloudstructs.MjmlTemplateProps",
|
|
932
|
+
jsii_struct_bases=[],
|
|
933
|
+
name_mapping={
|
|
934
|
+
"mjml": "mjml",
|
|
935
|
+
"subject": "subject",
|
|
936
|
+
"template_name": "templateName",
|
|
937
|
+
},
|
|
938
|
+
)
|
|
939
|
+
class MjmlTemplateProps:
|
|
940
|
+
def __init__(
|
|
941
|
+
self,
|
|
942
|
+
*,
|
|
943
|
+
mjml: builtins.str,
|
|
944
|
+
subject: builtins.str,
|
|
945
|
+
template_name: typing.Optional[builtins.str] = None,
|
|
946
|
+
) -> None:
|
|
947
|
+
'''Properties for a MjmlTemplate.
|
|
948
|
+
|
|
949
|
+
:param mjml: The MJML for the email.
|
|
950
|
+
:param subject: The subject line of the email.
|
|
951
|
+
:param template_name: The name of the template. Default: - a CloudFormation generated name
|
|
952
|
+
'''
|
|
953
|
+
if __debug__:
|
|
954
|
+
type_hints = typing.get_type_hints(_typecheckingstub__702b570f1be82d9279663f13742ac81b522b758421dbf6217639f90302a51319)
|
|
955
|
+
check_type(argname="argument mjml", value=mjml, expected_type=type_hints["mjml"])
|
|
956
|
+
check_type(argname="argument subject", value=subject, expected_type=type_hints["subject"])
|
|
957
|
+
check_type(argname="argument template_name", value=template_name, expected_type=type_hints["template_name"])
|
|
958
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
959
|
+
"mjml": mjml,
|
|
960
|
+
"subject": subject,
|
|
961
|
+
}
|
|
962
|
+
if template_name is not None:
|
|
963
|
+
self._values["template_name"] = template_name
|
|
964
|
+
|
|
965
|
+
@builtins.property
|
|
966
|
+
def mjml(self) -> builtins.str:
|
|
967
|
+
'''The MJML for the email.'''
|
|
968
|
+
result = self._values.get("mjml")
|
|
969
|
+
assert result is not None, "Required property 'mjml' is missing"
|
|
970
|
+
return typing.cast(builtins.str, result)
|
|
971
|
+
|
|
972
|
+
@builtins.property
|
|
973
|
+
def subject(self) -> builtins.str:
|
|
974
|
+
'''The subject line of the email.'''
|
|
975
|
+
result = self._values.get("subject")
|
|
976
|
+
assert result is not None, "Required property 'subject' is missing"
|
|
977
|
+
return typing.cast(builtins.str, result)
|
|
978
|
+
|
|
979
|
+
@builtins.property
|
|
980
|
+
def template_name(self) -> typing.Optional[builtins.str]:
|
|
981
|
+
'''The name of the template.
|
|
982
|
+
|
|
983
|
+
:default: - a CloudFormation generated name
|
|
984
|
+
'''
|
|
985
|
+
result = self._values.get("template_name")
|
|
986
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
987
|
+
|
|
988
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
989
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
990
|
+
|
|
991
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
992
|
+
return not (rhs == self)
|
|
993
|
+
|
|
994
|
+
def __repr__(self) -> str:
|
|
995
|
+
return "MjmlTemplateProps(%s)" % ", ".join(
|
|
996
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
|
|
889
1000
|
class RollTrigger(
|
|
890
1001
|
metaclass=jsii.JSIIAbstractClass,
|
|
891
1002
|
jsii_type="cloudstructs.RollTrigger",
|
|
@@ -3629,6 +3740,8 @@ __all__ = [
|
|
|
3629
3740
|
"EmailReceiver",
|
|
3630
3741
|
"EmailReceiverProps",
|
|
3631
3742
|
"IStateMachine",
|
|
3743
|
+
"MjmlTemplate",
|
|
3744
|
+
"MjmlTemplateProps",
|
|
3632
3745
|
"RollTrigger",
|
|
3633
3746
|
"SamlFederatedPrincipal",
|
|
3634
3747
|
"SamlIdentityProvider",
|
|
@@ -3785,6 +3898,26 @@ def _typecheckingstub__8500959d1e20d8ab966122bf508b686ba123767348a2c264cc34f3ce6
|
|
|
3785
3898
|
"""Type checking stubs"""
|
|
3786
3899
|
pass
|
|
3787
3900
|
|
|
3901
|
+
def _typecheckingstub__7c14fd1220e2b1a369a0a4b700ec2fd623089a00de406d691f1ebd18fbe576b9(
|
|
3902
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
3903
|
+
id: builtins.str,
|
|
3904
|
+
*,
|
|
3905
|
+
mjml: builtins.str,
|
|
3906
|
+
subject: builtins.str,
|
|
3907
|
+
template_name: typing.Optional[builtins.str] = None,
|
|
3908
|
+
) -> None:
|
|
3909
|
+
"""Type checking stubs"""
|
|
3910
|
+
pass
|
|
3911
|
+
|
|
3912
|
+
def _typecheckingstub__702b570f1be82d9279663f13742ac81b522b758421dbf6217639f90302a51319(
|
|
3913
|
+
*,
|
|
3914
|
+
mjml: builtins.str,
|
|
3915
|
+
subject: builtins.str,
|
|
3916
|
+
template_name: typing.Optional[builtins.str] = None,
|
|
3917
|
+
) -> None:
|
|
3918
|
+
"""Type checking stubs"""
|
|
3919
|
+
pass
|
|
3920
|
+
|
|
3788
3921
|
def _typecheckingstub__04afa5cfc7c8bd76ded88022a29c6aea3d843c1b85acbd7eee9cf5e3d5f838a6(
|
|
3789
3922
|
rule: _aws_cdk_aws_events_ceddda9d.Rule,
|
|
3790
3923
|
) -> None:
|
|
@@ -17,7 +17,7 @@ import aws_cdk._jsii
|
|
|
17
17
|
import constructs._jsii
|
|
18
18
|
|
|
19
19
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
20
|
-
"cloudstructs", "0.9.
|
|
20
|
+
"cloudstructs", "0.9.10", __name__[0:-6], "cloudstructs@0.9.10.jsii.tgz"
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
__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.10
|
|
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>
|
|
@@ -38,6 +38,7 @@ Version >= 0.2.0 requires AWS CDK v2.
|
|
|
38
38
|
a rule
|
|
39
39
|
* [`EmailReceiver`](src/email-receiver) Receive emails through SES, save them to S3
|
|
40
40
|
and invoke a Lambda function
|
|
41
|
+
* ['MjmlTemplate`](src/mjml-template) SES email template from [MJML](https://mjml.io/)
|
|
41
42
|
* [`SlackApp`](src/slack-app) Deploy Slack apps from manifests
|
|
42
43
|
* [`SlackEvents`](src/slack-events) Send Slack events to Amazon EventBridge
|
|
43
44
|
* [`SlackTextract`](src/slack-textract) Extract text from images posted to Slack
|
|
@@ -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.10.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
|