cloudstructs 0.13.7__tar.gz → 0.13.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudstructs
3
- Version: 0.13.7
3
+ Version: 0.13.9
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>
@@ -19,7 +19,7 @@ Classifier: License :: OSI Approved
19
19
  Requires-Python: ~=3.10
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.253.1
22
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.256.0
23
23
  Requires-Dist: constructs<11.0.0,>=10.5.1
24
24
  Requires-Dist: jsii<2.0.0,>=1.130.0
25
25
  Requires-Dist: publication>=0.0.3
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cloudstructs",
8
- "version": "0.13.7",
8
+ "version": "0.13.9",
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.13.7.jsii.tgz"
29
+ "cloudstructs@0.13.9.jsii.tgz"
30
30
  ],
31
31
  "cloudstructs": [
32
32
  "py.typed"
@@ -34,7 +34,7 @@ kwargs = json.loads(
34
34
  },
35
35
  "python_requires": "~=3.10",
36
36
  "install_requires": [
37
- "aws-cdk-lib>=2.253.1, <3.0.0",
37
+ "aws-cdk-lib>=2.256.0, <3.0.0",
38
38
  "constructs>=10.5.1, <11.0.0",
39
39
  "jsii>=1.130.0, <2.0.0",
40
40
  "publication>=0.0.3",
@@ -732,6 +732,7 @@ class EmailReceiver(
732
732
  recipients: typing.Sequence[builtins.str],
733
733
  after_rule: typing.Optional["_aws_cdk_aws_ses_ceddda9d.IReceiptRule"] = None,
734
734
  enabled: typing.Optional[builtins.bool] = None,
735
+ expiration: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
735
736
  function: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.IFunction"] = None,
736
737
  source_whitelist: typing.Optional[builtins.str] = None,
737
738
  ) -> None:
@@ -742,6 +743,7 @@ class EmailReceiver(
742
743
  :param recipients: The recipients for which emails should be received.
743
744
  :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
745
  :param enabled: Whether the receiver is active. Default: true
746
+ :param expiration: The expiration for emails stored in the S3 bucket. Default: Duration.days(1)
745
747
  :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.
746
748
  :param source_whitelist: A regular expression to whitelist source email addresses. Default: - no whitelisting of source email addresses
747
749
  '''
@@ -754,6 +756,7 @@ class EmailReceiver(
754
756
  recipients=recipients,
755
757
  after_rule=after_rule,
756
758
  enabled=enabled,
759
+ expiration=expiration,
757
760
  function=function,
758
761
  source_whitelist=source_whitelist,
759
762
  )
@@ -781,6 +784,7 @@ class EmailReceiver(
781
784
  "recipients": "recipients",
782
785
  "after_rule": "afterRule",
783
786
  "enabled": "enabled",
787
+ "expiration": "expiration",
784
788
  "function": "function",
785
789
  "source_whitelist": "sourceWhitelist",
786
790
  },
@@ -793,6 +797,7 @@ class EmailReceiverProps:
793
797
  recipients: typing.Sequence[builtins.str],
794
798
  after_rule: typing.Optional["_aws_cdk_aws_ses_ceddda9d.IReceiptRule"] = None,
795
799
  enabled: typing.Optional[builtins.bool] = None,
800
+ expiration: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
796
801
  function: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.IFunction"] = None,
797
802
  source_whitelist: typing.Optional[builtins.str] = None,
798
803
  ) -> None:
@@ -802,6 +807,7 @@ class EmailReceiverProps:
802
807
  :param recipients: The recipients for which emails should be received.
803
808
  :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.
804
809
  :param enabled: Whether the receiver is active. Default: true
810
+ :param expiration: The expiration for emails stored in the S3 bucket. Default: Duration.days(1)
805
811
  :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.
806
812
  :param source_whitelist: A regular expression to whitelist source email addresses. Default: - no whitelisting of source email addresses
807
813
  '''
@@ -811,6 +817,7 @@ class EmailReceiverProps:
811
817
  check_type(argname="argument recipients", value=recipients, expected_type=type_hints["recipients"])
812
818
  check_type(argname="argument after_rule", value=after_rule, expected_type=type_hints["after_rule"])
813
819
  check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
820
+ check_type(argname="argument expiration", value=expiration, expected_type=type_hints["expiration"])
814
821
  check_type(argname="argument function", value=function, expected_type=type_hints["function"])
815
822
  check_type(argname="argument source_whitelist", value=source_whitelist, expected_type=type_hints["source_whitelist"])
816
823
  self._values: typing.Dict[builtins.str, typing.Any] = {
@@ -821,6 +828,8 @@ class EmailReceiverProps:
821
828
  self._values["after_rule"] = after_rule
822
829
  if enabled is not None:
823
830
  self._values["enabled"] = enabled
831
+ if expiration is not None:
832
+ self._values["expiration"] = expiration
824
833
  if function is not None:
825
834
  self._values["function"] = function
826
835
  if source_whitelist is not None:
@@ -858,6 +867,15 @@ class EmailReceiverProps:
858
867
  result = self._values.get("enabled")
859
868
  return typing.cast(typing.Optional[builtins.bool], result)
860
869
 
870
+ @builtins.property
871
+ def expiration(self) -> typing.Optional["_aws_cdk_ceddda9d.Duration"]:
872
+ '''The expiration for emails stored in the S3 bucket.
873
+
874
+ :default: Duration.days(1)
875
+ '''
876
+ result = self._values.get("expiration")
877
+ return typing.cast(typing.Optional["_aws_cdk_ceddda9d.Duration"], result)
878
+
861
879
  @builtins.property
862
880
  def function(self) -> typing.Optional["_aws_cdk_aws_lambda_ceddda9d.IFunction"]:
863
881
  '''A Lambda function to invoke after the message is saved to S3.
@@ -3872,6 +3890,7 @@ def _typecheckingstub__d2b6712707b39b2d133dd62aef1ea71cf3732c305783f22f76cbafc80
3872
3890
  recipients: typing.Sequence[builtins.str],
3873
3891
  after_rule: typing.Optional[_aws_cdk_aws_ses_ceddda9d.IReceiptRule] = None,
3874
3892
  enabled: typing.Optional[builtins.bool] = None,
3893
+ expiration: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
3875
3894
  function: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction] = None,
3876
3895
  source_whitelist: typing.Optional[builtins.str] = None,
3877
3896
  ) -> None:
@@ -3884,6 +3903,7 @@ def _typecheckingstub__8500959d1e20d8ab966122bf508b686ba123767348a2c264cc34f3ce6
3884
3903
  recipients: typing.Sequence[builtins.str],
3885
3904
  after_rule: typing.Optional[_aws_cdk_aws_ses_ceddda9d.IReceiptRule] = None,
3886
3905
  enabled: typing.Optional[builtins.bool] = None,
3906
+ expiration: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
3887
3907
  function: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IFunction] = None,
3888
3908
  source_whitelist: typing.Optional[builtins.str] = None,
3889
3909
  ) -> None:
@@ -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.13.7", __name__[0:-6], "cloudstructs@0.13.7.jsii.tgz"
35
+ "cloudstructs", "0.13.9", __name__[0:-6], "cloudstructs@0.13.9.jsii.tgz"
36
36
  )
37
37
 
38
38
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudstructs
3
- Version: 0.13.7
3
+ Version: 0.13.9
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>
@@ -19,7 +19,7 @@ Classifier: License :: OSI Approved
19
19
  Requires-Python: ~=3.10
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.253.1
22
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.256.0
23
23
  Requires-Dist: constructs<11.0.0,>=10.5.1
24
24
  Requires-Dist: jsii<2.0.0,>=1.130.0
25
25
  Requires-Dist: publication>=0.0.3
@@ -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.13.7.jsii.tgz
14
+ src/cloudstructs/_jsii/cloudstructs@0.13.9.jsii.tgz
@@ -1,4 +1,4 @@
1
- aws-cdk-lib<3.0.0,>=2.253.1
1
+ aws-cdk-lib<3.0.0,>=2.256.0
2
2
  constructs<11.0.0,>=10.5.1
3
3
  jsii<2.0.0,>=1.130.0
4
4
  publication>=0.0.3
File without changes
File without changes
File without changes
File without changes