aws-cdk-lib 2.203.1__py3-none-any.whl → 2.205.0__py3-none-any.whl
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-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +208 -92
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.203.1.jsii.tgz → aws-cdk-lib@2.205.0.jsii.tgz} +0 -0
- aws_cdk/aws_aiops/__init__.py +89 -39
- aws_cdk/aws_apigateway/__init__.py +164 -0
- aws_cdk/aws_apigatewayv2/__init__.py +412 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +2 -2
- aws_cdk/aws_arczonalshift/__init__.py +4 -1
- aws_cdk/aws_b2bi/__init__.py +32 -16
- aws_cdk/aws_bedrock/__init__.py +198 -10
- aws_cdk/aws_cassandra/__init__.py +156 -0
- aws_cdk/aws_certificatemanager/__init__.py +28 -0
- aws_cdk/aws_chatbot/__init__.py +28 -0
- aws_cdk/aws_cloudformation/__init__.py +74 -72
- aws_cdk/aws_cloudfront/__init__.py +1273 -485
- aws_cdk/aws_cloudfront/experimental/__init__.py +32 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +26 -21
- aws_cdk/aws_cloudwatch/__init__.py +278 -23
- aws_cdk/aws_codebuild/__init__.py +300 -36
- aws_cdk/aws_datasync/__init__.py +2 -2
- aws_cdk/aws_docdb/__init__.py +78 -0
- aws_cdk/aws_dynamodb/__init__.py +523 -37
- aws_cdk/aws_ec2/__init__.py +126 -30
- aws_cdk/aws_ecs/__init__.py +64 -19
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +724 -0
- aws_cdk/aws_elasticsearch/__init__.py +260 -0
- aws_cdk/aws_emrserverless/__init__.py +5 -5
- aws_cdk/aws_events/__init__.py +58 -3
- aws_cdk/aws_events_targets/__init__.py +7 -2
- aws_cdk/aws_evs/__init__.py +7 -7
- aws_cdk/aws_fsx/__init__.py +138 -78
- aws_cdk/aws_gamelift/__init__.py +19 -0
- aws_cdk/aws_glue/__init__.py +3 -3
- aws_cdk/aws_iot/__init__.py +1 -1
- aws_cdk/aws_kinesis/__init__.py +391 -13
- aws_cdk/aws_kinesisfirehose/__init__.py +128 -1
- aws_cdk/aws_lambda/__init__.py +144 -0
- aws_cdk/aws_lex/__init__.py +36 -19
- aws_cdk/aws_logs/__init__.py +58 -0
- aws_cdk/aws_neptune/__init__.py +12 -12
- aws_cdk/aws_odb/__init__.py +4049 -0
- aws_cdk/aws_omics/__init__.py +1 -1
- aws_cdk/aws_opensearchservice/__init__.py +260 -0
- aws_cdk/aws_qbusiness/__init__.py +471 -4
- aws_cdk/aws_quicksight/__init__.py +185 -16
- aws_cdk/aws_rds/__init__.py +553 -17
- aws_cdk/aws_redshiftserverless/__init__.py +72 -45
- aws_cdk/aws_route53/__init__.py +41 -19
- aws_cdk/aws_s3tables/__init__.py +1005 -0
- aws_cdk/aws_sagemaker/__init__.py +20 -0
- aws_cdk/aws_scheduler/__init__.py +210 -0
- aws_cdk/aws_sns/__init__.py +164 -0
- aws_cdk/aws_sqs/__init__.py +164 -0
- aws_cdk/aws_stepfunctions/__init__.py +288 -0
- aws_cdk/aws_synthetics/__init__.py +159 -37
- aws_cdk/aws_transfer/__init__.py +23 -1
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/RECORD +62 -61
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/top_level.txt +0 -0
|
@@ -641,6 +641,7 @@ class EdgeFunction(
|
|
|
641
641
|
account: typing.Optional[builtins.str] = None,
|
|
642
642
|
color: typing.Optional[builtins.str] = None,
|
|
643
643
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
644
|
+
id: typing.Optional[builtins.str] = None,
|
|
644
645
|
label: typing.Optional[builtins.str] = None,
|
|
645
646
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
646
647
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -648,6 +649,7 @@ class EdgeFunction(
|
|
|
648
649
|
stack_region: typing.Optional[builtins.str] = None,
|
|
649
650
|
statistic: typing.Optional[builtins.str] = None,
|
|
650
651
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
652
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
651
653
|
) -> _Metric_e396a4dc:
|
|
652
654
|
'''Return the given named metric for this Lambda Return the given named metric for this Function.
|
|
653
655
|
|
|
@@ -655,6 +657,7 @@ class EdgeFunction(
|
|
|
655
657
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
656
658
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
657
659
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
660
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
658
661
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
659
662
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
660
663
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -662,6 +665,7 @@ class EdgeFunction(
|
|
|
662
665
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
663
666
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
664
667
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
668
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
665
669
|
'''
|
|
666
670
|
if __debug__:
|
|
667
671
|
type_hints = typing.get_type_hints(_typecheckingstub__e35fb51736b3036c83dc4af9104a7ec11601ff54bef98bdf17e2325a3a1d9f89)
|
|
@@ -670,6 +674,7 @@ class EdgeFunction(
|
|
|
670
674
|
account=account,
|
|
671
675
|
color=color,
|
|
672
676
|
dimensions_map=dimensions_map,
|
|
677
|
+
id=id,
|
|
673
678
|
label=label,
|
|
674
679
|
period=period,
|
|
675
680
|
region=region,
|
|
@@ -677,6 +682,7 @@ class EdgeFunction(
|
|
|
677
682
|
stack_region=stack_region,
|
|
678
683
|
statistic=statistic,
|
|
679
684
|
unit=unit,
|
|
685
|
+
visible=visible,
|
|
680
686
|
)
|
|
681
687
|
|
|
682
688
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metric", [metric_name, props]))
|
|
@@ -688,6 +694,7 @@ class EdgeFunction(
|
|
|
688
694
|
account: typing.Optional[builtins.str] = None,
|
|
689
695
|
color: typing.Optional[builtins.str] = None,
|
|
690
696
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
697
|
+
id: typing.Optional[builtins.str] = None,
|
|
691
698
|
label: typing.Optional[builtins.str] = None,
|
|
692
699
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
693
700
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -695,6 +702,7 @@ class EdgeFunction(
|
|
|
695
702
|
stack_region: typing.Optional[builtins.str] = None,
|
|
696
703
|
statistic: typing.Optional[builtins.str] = None,
|
|
697
704
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
705
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
698
706
|
) -> _Metric_e396a4dc:
|
|
699
707
|
'''Metric for the Duration of this Lambda How long execution of this Lambda takes.
|
|
700
708
|
|
|
@@ -703,6 +711,7 @@ class EdgeFunction(
|
|
|
703
711
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
704
712
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
705
713
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
714
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
706
715
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
707
716
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
708
717
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -710,11 +719,13 @@ class EdgeFunction(
|
|
|
710
719
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
711
720
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
712
721
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
722
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
713
723
|
'''
|
|
714
724
|
props = _MetricOptions_1788b62f(
|
|
715
725
|
account=account,
|
|
716
726
|
color=color,
|
|
717
727
|
dimensions_map=dimensions_map,
|
|
728
|
+
id=id,
|
|
718
729
|
label=label,
|
|
719
730
|
period=period,
|
|
720
731
|
region=region,
|
|
@@ -722,6 +733,7 @@ class EdgeFunction(
|
|
|
722
733
|
stack_region=stack_region,
|
|
723
734
|
statistic=statistic,
|
|
724
735
|
unit=unit,
|
|
736
|
+
visible=visible,
|
|
725
737
|
)
|
|
726
738
|
|
|
727
739
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricDuration", [props]))
|
|
@@ -733,6 +745,7 @@ class EdgeFunction(
|
|
|
733
745
|
account: typing.Optional[builtins.str] = None,
|
|
734
746
|
color: typing.Optional[builtins.str] = None,
|
|
735
747
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
748
|
+
id: typing.Optional[builtins.str] = None,
|
|
736
749
|
label: typing.Optional[builtins.str] = None,
|
|
737
750
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
738
751
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -740,6 +753,7 @@ class EdgeFunction(
|
|
|
740
753
|
stack_region: typing.Optional[builtins.str] = None,
|
|
741
754
|
statistic: typing.Optional[builtins.str] = None,
|
|
742
755
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
756
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
743
757
|
) -> _Metric_e396a4dc:
|
|
744
758
|
'''How many invocations of this Lambda fail.
|
|
745
759
|
|
|
@@ -748,6 +762,7 @@ class EdgeFunction(
|
|
|
748
762
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
749
763
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
750
764
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
765
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
751
766
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
752
767
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
753
768
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -755,11 +770,13 @@ class EdgeFunction(
|
|
|
755
770
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
756
771
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
757
772
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
773
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
758
774
|
'''
|
|
759
775
|
props = _MetricOptions_1788b62f(
|
|
760
776
|
account=account,
|
|
761
777
|
color=color,
|
|
762
778
|
dimensions_map=dimensions_map,
|
|
779
|
+
id=id,
|
|
763
780
|
label=label,
|
|
764
781
|
period=period,
|
|
765
782
|
region=region,
|
|
@@ -767,6 +784,7 @@ class EdgeFunction(
|
|
|
767
784
|
stack_region=stack_region,
|
|
768
785
|
statistic=statistic,
|
|
769
786
|
unit=unit,
|
|
787
|
+
visible=visible,
|
|
770
788
|
)
|
|
771
789
|
|
|
772
790
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricErrors", [props]))
|
|
@@ -778,6 +796,7 @@ class EdgeFunction(
|
|
|
778
796
|
account: typing.Optional[builtins.str] = None,
|
|
779
797
|
color: typing.Optional[builtins.str] = None,
|
|
780
798
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
799
|
+
id: typing.Optional[builtins.str] = None,
|
|
781
800
|
label: typing.Optional[builtins.str] = None,
|
|
782
801
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
783
802
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -785,6 +804,7 @@ class EdgeFunction(
|
|
|
785
804
|
stack_region: typing.Optional[builtins.str] = None,
|
|
786
805
|
statistic: typing.Optional[builtins.str] = None,
|
|
787
806
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
807
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
788
808
|
) -> _Metric_e396a4dc:
|
|
789
809
|
'''Metric for the number of invocations of this Lambda How often this Lambda is invoked.
|
|
790
810
|
|
|
@@ -793,6 +813,7 @@ class EdgeFunction(
|
|
|
793
813
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
794
814
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
795
815
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
816
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
796
817
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
797
818
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
798
819
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -800,11 +821,13 @@ class EdgeFunction(
|
|
|
800
821
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
801
822
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
802
823
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
824
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
803
825
|
'''
|
|
804
826
|
props = _MetricOptions_1788b62f(
|
|
805
827
|
account=account,
|
|
806
828
|
color=color,
|
|
807
829
|
dimensions_map=dimensions_map,
|
|
830
|
+
id=id,
|
|
808
831
|
label=label,
|
|
809
832
|
period=period,
|
|
810
833
|
region=region,
|
|
@@ -812,6 +835,7 @@ class EdgeFunction(
|
|
|
812
835
|
stack_region=stack_region,
|
|
813
836
|
statistic=statistic,
|
|
814
837
|
unit=unit,
|
|
838
|
+
visible=visible,
|
|
815
839
|
)
|
|
816
840
|
|
|
817
841
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricInvocations", [props]))
|
|
@@ -823,6 +847,7 @@ class EdgeFunction(
|
|
|
823
847
|
account: typing.Optional[builtins.str] = None,
|
|
824
848
|
color: typing.Optional[builtins.str] = None,
|
|
825
849
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
850
|
+
id: typing.Optional[builtins.str] = None,
|
|
826
851
|
label: typing.Optional[builtins.str] = None,
|
|
827
852
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
828
853
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -830,6 +855,7 @@ class EdgeFunction(
|
|
|
830
855
|
stack_region: typing.Optional[builtins.str] = None,
|
|
831
856
|
statistic: typing.Optional[builtins.str] = None,
|
|
832
857
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
858
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
833
859
|
) -> _Metric_e396a4dc:
|
|
834
860
|
'''Metric for the number of throttled invocations of this Lambda How often this Lambda is throttled.
|
|
835
861
|
|
|
@@ -838,6 +864,7 @@ class EdgeFunction(
|
|
|
838
864
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
839
865
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
840
866
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
867
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
841
868
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
842
869
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
843
870
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -845,11 +872,13 @@ class EdgeFunction(
|
|
|
845
872
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
846
873
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
847
874
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
875
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
848
876
|
'''
|
|
849
877
|
props = _MetricOptions_1788b62f(
|
|
850
878
|
account=account,
|
|
851
879
|
color=color,
|
|
852
880
|
dimensions_map=dimensions_map,
|
|
881
|
+
id=id,
|
|
853
882
|
label=label,
|
|
854
883
|
period=period,
|
|
855
884
|
region=region,
|
|
@@ -857,6 +886,7 @@ class EdgeFunction(
|
|
|
857
886
|
stack_region=stack_region,
|
|
858
887
|
statistic=statistic,
|
|
859
888
|
unit=unit,
|
|
889
|
+
visible=visible,
|
|
860
890
|
)
|
|
861
891
|
|
|
862
892
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricThrottles", [props]))
|
|
@@ -2203,6 +2233,7 @@ def _typecheckingstub__e35fb51736b3036c83dc4af9104a7ec11601ff54bef98bdf17e2325a3
|
|
|
2203
2233
|
account: typing.Optional[builtins.str] = None,
|
|
2204
2234
|
color: typing.Optional[builtins.str] = None,
|
|
2205
2235
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2236
|
+
id: typing.Optional[builtins.str] = None,
|
|
2206
2237
|
label: typing.Optional[builtins.str] = None,
|
|
2207
2238
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
2208
2239
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -2210,6 +2241,7 @@ def _typecheckingstub__e35fb51736b3036c83dc4af9104a7ec11601ff54bef98bdf17e2325a3
|
|
|
2210
2241
|
stack_region: typing.Optional[builtins.str] = None,
|
|
2211
2242
|
statistic: typing.Optional[builtins.str] = None,
|
|
2212
2243
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
2244
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
2213
2245
|
) -> None:
|
|
2214
2246
|
"""Type checking stubs"""
|
|
2215
2247
|
pass
|
|
@@ -2908,15 +2908,19 @@ class S3BucketOrigin(
|
|
|
2908
2908
|
|
|
2909
2909
|
Example::
|
|
2910
2910
|
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2911
|
+
import aws_cdk.aws_kms as kms
|
|
2912
|
+
|
|
2913
|
+
|
|
2914
|
+
my_kms_key = kms.Key(self, "myKMSKey")
|
|
2915
|
+
my_bucket = s3.Bucket(self, "mySSEKMSEncryptedBucket",
|
|
2916
|
+
encryption=s3.BucketEncryption.KMS,
|
|
2917
|
+
encryption_key=my_kms_key,
|
|
2918
|
+
object_ownership=s3.ObjectOwnership.BUCKET_OWNER_ENFORCED
|
|
2914
2919
|
)
|
|
2915
|
-
cloudfront.Distribution(self, "
|
|
2920
|
+
cloudfront.Distribution(self, "myDist",
|
|
2916
2921
|
default_behavior=cloudfront.BehaviorOptions(
|
|
2917
|
-
origin=
|
|
2918
|
-
)
|
|
2919
|
-
default_root_object="index.html"
|
|
2922
|
+
origin=origins.S3BucketOrigin.with_origin_access_control(my_bucket)
|
|
2923
|
+
)
|
|
2920
2924
|
)
|
|
2921
2925
|
'''
|
|
2922
2926
|
|
|
@@ -3348,14 +3352,16 @@ class S3BucketOriginWithOACProps(S3BucketOriginBaseProps):
|
|
|
3348
3352
|
Example::
|
|
3349
3353
|
|
|
3350
3354
|
my_bucket = s3.Bucket(self, "myBucket")
|
|
3355
|
+
oac = cloudfront.S3OriginAccessControl(self, "MyOAC",
|
|
3356
|
+
signing=cloudfront.Signing.SIGV4_NO_OVERRIDE
|
|
3357
|
+
)
|
|
3351
3358
|
s3_origin = origins.S3BucketOrigin.with_origin_access_control(my_bucket,
|
|
3352
|
-
|
|
3359
|
+
origin_access_control=oac
|
|
3353
3360
|
)
|
|
3354
|
-
cloudfront.Distribution(self, "
|
|
3361
|
+
cloudfront.Distribution(self, "myDist",
|
|
3355
3362
|
default_behavior=cloudfront.BehaviorOptions(
|
|
3356
3363
|
origin=s3_origin
|
|
3357
|
-
)
|
|
3358
|
-
default_root_object="index.html"
|
|
3364
|
+
)
|
|
3359
3365
|
)
|
|
3360
3366
|
'''
|
|
3361
3367
|
if __debug__:
|
|
@@ -3722,20 +3728,19 @@ class S3Origin(
|
|
|
3722
3728
|
|
|
3723
3729
|
Example::
|
|
3724
3730
|
|
|
3725
|
-
# Adding an existing Lambda@Edge function created in a different stack
|
|
3726
|
-
# to a CloudFront distribution.
|
|
3727
3731
|
# s3_bucket: s3.Bucket
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3732
|
+
# Add a cloudfront Function to a Distribution
|
|
3733
|
+
cf_function = cloudfront.Function(self, "Function",
|
|
3734
|
+
code=cloudfront.FunctionCode.from_inline("function handler(event) { return event.request }"),
|
|
3735
|
+
runtime=cloudfront.FunctionRuntime.JS_2_0
|
|
3736
|
+
)
|
|
3731
3737
|
cloudfront.Distribution(self, "distro",
|
|
3732
3738
|
default_behavior=cloudfront.BehaviorOptions(
|
|
3733
3739
|
origin=origins.S3Origin(s3_bucket),
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
event_type=cloudfront.
|
|
3737
|
-
)
|
|
3738
|
-
]
|
|
3740
|
+
function_associations=[cloudfront.FunctionAssociation(
|
|
3741
|
+
function=cf_function,
|
|
3742
|
+
event_type=cloudfront.FunctionEventType.VIEWER_REQUEST
|
|
3743
|
+
)]
|
|
3739
3744
|
)
|
|
3740
3745
|
)
|
|
3741
3746
|
'''
|