aws-cdk-lib 2.75.1__py3-none-any.whl → 2.76.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 +245 -259
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.75.1.jsii.tgz → aws-cdk-lib@2.76.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +184 -216
- aws_cdk/aws_apigateway/__init__.py +95 -148
- aws_cdk/aws_appconfig/__init__.py +8 -4
- aws_cdk/aws_appflow/__init__.py +27 -52
- aws_cdk/aws_appmesh/__init__.py +91 -200
- aws_cdk/aws_apprunner/__init__.py +4 -16
- aws_cdk/aws_appstream/__init__.py +18 -82
- aws_cdk/aws_athena/__init__.py +18 -32
- aws_cdk/aws_backup/__init__.py +48 -86
- aws_cdk/aws_billingconductor/__init__.py +12 -7
- aws_cdk/aws_budgets/__init__.py +8 -17
- aws_cdk/aws_certificatemanager/__init__.py +7 -4
- aws_cdk/aws_cloudfront/__init__.py +14 -11
- aws_cdk/aws_cloudfront_origins/__init__.py +18 -8
- aws_cdk/aws_cloudtrail/__init__.py +7 -10
- aws_cdk/aws_cloudwatch/__init__.py +63 -35
- aws_cdk/aws_codebuild/__init__.py +10 -13
- aws_cdk/aws_codecommit/__init__.py +0 -1
- aws_cdk/aws_codedeploy/__init__.py +165 -162
- aws_cdk/aws_codepipeline/__init__.py +0 -4
- aws_cdk/aws_codepipeline_actions/__init__.py +16 -164
- aws_cdk/aws_cognito/__init__.py +195 -100
- aws_cdk/aws_config/__init__.py +28 -51
- aws_cdk/aws_connectcampaigns/__init__.py +5 -6
- aws_cdk/aws_databrew/__init__.py +5 -6
- aws_cdk/aws_dlm/__init__.py +33 -71
- aws_cdk/aws_docdb/__init__.py +20 -76
- aws_cdk/aws_dynamodb/__init__.py +7 -14
- aws_cdk/aws_ec2/__init__.py +1846 -421
- aws_cdk/aws_ecr/__init__.py +1 -2
- aws_cdk/aws_ecr_assets/__init__.py +27 -14
- aws_cdk/aws_ecs/__init__.py +241 -111
- aws_cdk/aws_ecs_patterns/__init__.py +13 -11
- aws_cdk/aws_eks/__init__.py +13 -8
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -9
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +142 -82
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +126 -61
- aws_cdk/aws_elasticsearch/__init__.py +0 -7
- aws_cdk/aws_emr/__init__.py +7 -16
- aws_cdk/aws_emrserverless/__init__.py +14 -18
- aws_cdk/aws_events/__init__.py +33 -29
- aws_cdk/aws_events_targets/__init__.py +248 -89
- aws_cdk/aws_frauddetector/__init__.py +3 -4
- aws_cdk/aws_fsx/__init__.py +13 -7
- aws_cdk/aws_gamelift/__init__.py +11 -20
- aws_cdk/aws_iam/__init__.py +21 -25
- aws_cdk/aws_imagebuilder/__init__.py +58 -80
- aws_cdk/aws_iot/__init__.py +16 -10
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -26
- aws_cdk/aws_iotevents/__init__.py +6 -4
- aws_cdk/aws_iotfleetwise/__init__.py +27 -40
- aws_cdk/aws_iotsitewise/__init__.py +8 -5
- aws_cdk/aws_kinesisfirehose/__init__.py +21 -38
- aws_cdk/aws_lambda/__init__.py +59 -48
- aws_cdk/aws_lambda_event_sources/__init__.py +6 -21
- aws_cdk/aws_logs/__init__.py +5 -7
- aws_cdk/aws_macie/__init__.py +22 -15
- aws_cdk/aws_mediaconnect/__init__.py +5 -8
- aws_cdk/aws_medialive/__init__.py +2 -4
- aws_cdk/aws_mediapackage/__init__.py +9 -18
- aws_cdk/aws_memorydb/__init__.py +5 -10
- aws_cdk/aws_mwaa/__init__.py +8 -4
- aws_cdk/aws_nimblestudio/__init__.py +25 -45
- aws_cdk/aws_opensearchservice/__init__.py +0 -1
- aws_cdk/aws_panorama/__init__.py +11 -12
- aws_cdk/aws_personalize/__init__.py +46 -72
- aws_cdk/aws_pinpoint/__init__.py +36 -65
- aws_cdk/aws_quicksight/__init__.py +9972 -13374
- aws_cdk/aws_rds/__init__.py +23 -22
- aws_cdk/aws_route53/__init__.py +8 -16
- aws_cdk/aws_route53_targets/__init__.py +2 -4
- aws_cdk/aws_s3/__init__.py +25 -85
- aws_cdk/aws_s3_notifications/__init__.py +0 -3
- aws_cdk/aws_sagemaker/__init__.py +6 -2
- aws_cdk/aws_secretsmanager/__init__.py +17 -14
- aws_cdk/aws_servicecatalog/__init__.py +58 -82
- aws_cdk/aws_servicediscovery/__init__.py +4 -6
- aws_cdk/aws_ses/__init__.py +21 -34
- aws_cdk/aws_sns/__init__.py +4 -8
- aws_cdk/aws_ssm/__init__.py +19 -23
- aws_cdk/aws_ssmcontacts/__init__.py +10 -6
- aws_cdk/aws_stepfunctions/__init__.py +3 -12
- aws_cdk/aws_stepfunctions_tasks/__init__.py +7 -12
- aws_cdk/aws_timestream/__init__.py +22 -28
- aws_cdk/aws_xray/__init__.py +15 -22
- aws_cdk/cloud_assembly_schema/__init__.py +14 -6
- aws_cdk/custom_resources/__init__.py +2 -3
- aws_cdk/pipelines/__init__.py +84 -134
- aws_cdk/triggers/__init__.py +46 -61
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/METADATA +47 -92
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/RECORD +98 -98
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/top_level.txt +0 -0
|
@@ -553,7 +553,7 @@ class CfnAlarmModel(
|
|
|
553
553
|
:param iot_site_wise: Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise . You must use expressions for all parameters in ``IotSiteWiseAction`` . The expressions accept literals, operators, functions, references, and substitutions templates. **Examples** - For literal values, the expressions must contain single quotes. For example, the value for the ``propertyAlias`` parameter can be ``'/company/windfarm/3/turbine/7/temperature'`` . - For references, you must specify either variables or input values. For example, the value for the ``assetId`` parameter can be ``$input.TurbineInput.assetId1`` . - For a substitution template, you must use ``${}`` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates. In the following example, the value for the ``propertyAlias`` parameter uses a substitution template. ``'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'`` You must specify either ``propertyAlias`` or both ``assetId`` and ``propertyId`` to identify the target asset property in AWS IoT SiteWise . For more information, see `Expressions <https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html>`_ in the *AWS IoT Events Developer Guide* .
|
|
554
554
|
:param iot_topic_publish: Information required to publish the MQTT message through the AWS IoT message broker.
|
|
555
555
|
:param lambda_: Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
|
|
556
|
-
:param sns:
|
|
556
|
+
:param sns: Information required to publish the Amazon SNS message.
|
|
557
557
|
:param sqs: Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
|
|
558
558
|
|
|
559
559
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-alarmaction.html
|
|
@@ -846,7 +846,7 @@ class CfnAlarmModel(
|
|
|
846
846
|
def sns(
|
|
847
847
|
self,
|
|
848
848
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAlarmModel.SnsProperty"]]:
|
|
849
|
-
'''
|
|
849
|
+
'''Information required to publish the Amazon SNS message.
|
|
850
850
|
|
|
851
851
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-alarmaction.html#cfn-iotevents-alarmmodel-alarmaction-sns
|
|
852
852
|
'''
|
|
@@ -1819,7 +1819,7 @@ class CfnAlarmModel(
|
|
|
1819
1819
|
The value for the ``type`` parameter in ``Payload`` must be ``JSON`` .
|
|
1820
1820
|
|
|
1821
1821
|
:param table_name: The name of the DynamoDB table.
|
|
1822
|
-
:param payload: ``
|
|
1822
|
+
:param payload: Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use ``contentExpression`` .
|
|
1823
1823
|
|
|
1824
1824
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-dynamodbv2.html
|
|
1825
1825
|
:exampleMetadata: fixture=_generated
|
|
@@ -1864,7 +1864,9 @@ class CfnAlarmModel(
|
|
|
1864
1864
|
def payload(
|
|
1865
1865
|
self,
|
|
1866
1866
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAlarmModel.PayloadProperty"]]:
|
|
1867
|
-
'''
|
|
1867
|
+
'''Information needed to configure the payload.
|
|
1868
|
+
|
|
1869
|
+
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use ``contentExpression`` .
|
|
1868
1870
|
|
|
1869
1871
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-dynamodbv2.html#cfn-iotevents-alarmmodel-dynamodbv2-payload
|
|
1870
1872
|
'''
|
|
@@ -532,8 +532,8 @@ class CfnCampaign(
|
|
|
532
532
|
) -> None:
|
|
533
533
|
'''Specifies what data to collect and how often or when to collect it.
|
|
534
534
|
|
|
535
|
-
:param condition_based_collection_scheme:
|
|
536
|
-
:param time_based_collection_scheme:
|
|
535
|
+
:param condition_based_collection_scheme: ``CfnCampaign.CollectionSchemeProperty.ConditionBasedCollectionScheme``.
|
|
536
|
+
:param time_based_collection_scheme: ``CfnCampaign.CollectionSchemeProperty.TimeBasedCollectionScheme``.
|
|
537
537
|
|
|
538
538
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-collectionscheme.html
|
|
539
539
|
:exampleMetadata: fixture=_generated
|
|
@@ -572,7 +572,7 @@ class CfnCampaign(
|
|
|
572
572
|
def condition_based_collection_scheme(
|
|
573
573
|
self,
|
|
574
574
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCampaign.ConditionBasedCollectionSchemeProperty"]]:
|
|
575
|
-
'''
|
|
575
|
+
'''``CfnCampaign.CollectionSchemeProperty.ConditionBasedCollectionScheme``.
|
|
576
576
|
|
|
577
577
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-collectionscheme.html#cfn-iotfleetwise-campaign-collectionscheme-conditionbasedcollectionscheme
|
|
578
578
|
'''
|
|
@@ -583,7 +583,7 @@ class CfnCampaign(
|
|
|
583
583
|
def time_based_collection_scheme(
|
|
584
584
|
self,
|
|
585
585
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCampaign.TimeBasedCollectionSchemeProperty"]]:
|
|
586
|
-
'''
|
|
586
|
+
'''``CfnCampaign.CollectionSchemeProperty.TimeBasedCollectionScheme``.
|
|
587
587
|
|
|
588
588
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-collectionscheme.html#cfn-iotfleetwise-campaign-collectionscheme-timebasedcollectionscheme
|
|
589
589
|
'''
|
|
@@ -620,12 +620,11 @@ class CfnCampaign(
|
|
|
620
620
|
minimum_trigger_interval_ms: typing.Optional[jsii.Number] = None,
|
|
621
621
|
trigger_mode: typing.Optional[builtins.str] = None,
|
|
622
622
|
) -> None:
|
|
623
|
-
'''
|
|
624
|
-
|
|
625
|
-
:param
|
|
626
|
-
:param
|
|
627
|
-
:param
|
|
628
|
-
:param trigger_mode: Whether to collect data for all triggering events ( ``ALWAYS`` ). Specify ( ``RISING_EDGE`` ), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
|
|
623
|
+
'''
|
|
624
|
+
:param expression: ``CfnCampaign.ConditionBasedCollectionSchemeProperty.Expression``.
|
|
625
|
+
:param condition_language_version: ``CfnCampaign.ConditionBasedCollectionSchemeProperty.ConditionLanguageVersion``.
|
|
626
|
+
:param minimum_trigger_interval_ms: ``CfnCampaign.ConditionBasedCollectionSchemeProperty.MinimumTriggerIntervalMs``.
|
|
627
|
+
:param trigger_mode: ``CfnCampaign.ConditionBasedCollectionSchemeProperty.TriggerMode``.
|
|
629
628
|
|
|
630
629
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html
|
|
631
630
|
:exampleMetadata: fixture=_generated
|
|
@@ -663,9 +662,7 @@ class CfnCampaign(
|
|
|
663
662
|
|
|
664
663
|
@builtins.property
|
|
665
664
|
def expression(self) -> builtins.str:
|
|
666
|
-
'''
|
|
667
|
-
|
|
668
|
-
For example, ``$variable.Vehicle.OutsideAirTemperature >= 105.0`` .
|
|
665
|
+
'''``CfnCampaign.ConditionBasedCollectionSchemeProperty.Expression``.
|
|
669
666
|
|
|
670
667
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-expression
|
|
671
668
|
'''
|
|
@@ -675,7 +672,7 @@ class CfnCampaign(
|
|
|
675
672
|
|
|
676
673
|
@builtins.property
|
|
677
674
|
def condition_language_version(self) -> typing.Optional[jsii.Number]:
|
|
678
|
-
'''
|
|
675
|
+
'''``CfnCampaign.ConditionBasedCollectionSchemeProperty.ConditionLanguageVersion``.
|
|
679
676
|
|
|
680
677
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-conditionlanguageversion
|
|
681
678
|
'''
|
|
@@ -684,11 +681,7 @@ class CfnCampaign(
|
|
|
684
681
|
|
|
685
682
|
@builtins.property
|
|
686
683
|
def minimum_trigger_interval_ms(self) -> typing.Optional[jsii.Number]:
|
|
687
|
-
'''
|
|
688
|
-
|
|
689
|
-
.. epigraph::
|
|
690
|
-
|
|
691
|
-
If a signal changes often, you might want to collect data at a slower rate.
|
|
684
|
+
'''``CfnCampaign.ConditionBasedCollectionSchemeProperty.MinimumTriggerIntervalMs``.
|
|
692
685
|
|
|
693
686
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-minimumtriggerintervalms
|
|
694
687
|
'''
|
|
@@ -697,9 +690,7 @@ class CfnCampaign(
|
|
|
697
690
|
|
|
698
691
|
@builtins.property
|
|
699
692
|
def trigger_mode(self) -> typing.Optional[builtins.str]:
|
|
700
|
-
'''
|
|
701
|
-
|
|
702
|
-
Specify ( ``RISING_EDGE`` ), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
|
|
693
|
+
'''``CfnCampaign.ConditionBasedCollectionSchemeProperty.TriggerMode``.
|
|
703
694
|
|
|
704
695
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-triggermode
|
|
705
696
|
'''
|
|
@@ -820,9 +811,8 @@ class CfnCampaign(
|
|
|
820
811
|
)
|
|
821
812
|
class TimeBasedCollectionSchemeProperty:
|
|
822
813
|
def __init__(self, *, period_ms: jsii.Number) -> None:
|
|
823
|
-
'''
|
|
824
|
-
|
|
825
|
-
:param period_ms: The time period (in milliseconds) to decide how often to collect data. For example, if the time period is ``60000`` , the Edge Agent software collects data once every minute.
|
|
814
|
+
'''
|
|
815
|
+
:param period_ms: ``CfnCampaign.TimeBasedCollectionSchemeProperty.PeriodMs``.
|
|
826
816
|
|
|
827
817
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedcollectionscheme.html
|
|
828
818
|
:exampleMetadata: fixture=_generated
|
|
@@ -846,9 +836,7 @@ class CfnCampaign(
|
|
|
846
836
|
|
|
847
837
|
@builtins.property
|
|
848
838
|
def period_ms(self) -> jsii.Number:
|
|
849
|
-
'''
|
|
850
|
-
|
|
851
|
-
For example, if the time period is ``60000`` , the Edge Agent software collects data once every minute.
|
|
839
|
+
'''``CfnCampaign.TimeBasedCollectionSchemeProperty.PeriodMs``.
|
|
852
840
|
|
|
853
841
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedcollectionscheme.html#cfn-iotfleetwise-campaign-timebasedcollectionscheme-periodms
|
|
854
842
|
'''
|
|
@@ -4049,13 +4037,12 @@ class CfnSignalCatalog(
|
|
|
4049
4037
|
total_nodes: typing.Optional[jsii.Number] = None,
|
|
4050
4038
|
total_sensors: typing.Optional[jsii.Number] = None,
|
|
4051
4039
|
) -> None:
|
|
4052
|
-
'''
|
|
4053
|
-
|
|
4054
|
-
:param
|
|
4055
|
-
:param
|
|
4056
|
-
:param
|
|
4057
|
-
:param
|
|
4058
|
-
:param total_sensors: The total number of nodes in a vehicle network that represent sensors.
|
|
4040
|
+
'''
|
|
4041
|
+
:param total_actuators: ``CfnSignalCatalog.NodeCountsProperty.TotalActuators``.
|
|
4042
|
+
:param total_attributes: ``CfnSignalCatalog.NodeCountsProperty.TotalAttributes``.
|
|
4043
|
+
:param total_branches: ``CfnSignalCatalog.NodeCountsProperty.TotalBranches``.
|
|
4044
|
+
:param total_nodes: ``CfnSignalCatalog.NodeCountsProperty.TotalNodes``.
|
|
4045
|
+
:param total_sensors: ``CfnSignalCatalog.NodeCountsProperty.TotalSensors``.
|
|
4059
4046
|
|
|
4060
4047
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html
|
|
4061
4048
|
:exampleMetadata: fixture=_generated
|
|
@@ -4095,7 +4082,7 @@ class CfnSignalCatalog(
|
|
|
4095
4082
|
|
|
4096
4083
|
@builtins.property
|
|
4097
4084
|
def total_actuators(self) -> typing.Optional[jsii.Number]:
|
|
4098
|
-
'''
|
|
4085
|
+
'''``CfnSignalCatalog.NodeCountsProperty.TotalActuators``.
|
|
4099
4086
|
|
|
4100
4087
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalactuators
|
|
4101
4088
|
'''
|
|
@@ -4104,7 +4091,7 @@ class CfnSignalCatalog(
|
|
|
4104
4091
|
|
|
4105
4092
|
@builtins.property
|
|
4106
4093
|
def total_attributes(self) -> typing.Optional[jsii.Number]:
|
|
4107
|
-
'''
|
|
4094
|
+
'''``CfnSignalCatalog.NodeCountsProperty.TotalAttributes``.
|
|
4108
4095
|
|
|
4109
4096
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalattributes
|
|
4110
4097
|
'''
|
|
@@ -4113,7 +4100,7 @@ class CfnSignalCatalog(
|
|
|
4113
4100
|
|
|
4114
4101
|
@builtins.property
|
|
4115
4102
|
def total_branches(self) -> typing.Optional[jsii.Number]:
|
|
4116
|
-
'''
|
|
4103
|
+
'''``CfnSignalCatalog.NodeCountsProperty.TotalBranches``.
|
|
4117
4104
|
|
|
4118
4105
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalbranches
|
|
4119
4106
|
'''
|
|
@@ -4122,7 +4109,7 @@ class CfnSignalCatalog(
|
|
|
4122
4109
|
|
|
4123
4110
|
@builtins.property
|
|
4124
4111
|
def total_nodes(self) -> typing.Optional[jsii.Number]:
|
|
4125
|
-
'''
|
|
4112
|
+
'''``CfnSignalCatalog.NodeCountsProperty.TotalNodes``.
|
|
4126
4113
|
|
|
4127
4114
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalnodes
|
|
4128
4115
|
'''
|
|
@@ -4131,7 +4118,7 @@ class CfnSignalCatalog(
|
|
|
4131
4118
|
|
|
4132
4119
|
@builtins.property
|
|
4133
4120
|
def total_sensors(self) -> typing.Optional[jsii.Number]:
|
|
4134
|
-
'''
|
|
4121
|
+
'''``CfnSignalCatalog.NodeCountsProperty.TotalSensors``.
|
|
4135
4122
|
|
|
4136
4123
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalsensors
|
|
4137
4124
|
'''
|
|
@@ -4499,9 +4499,12 @@ class CfnPortal(
|
|
|
4499
4499
|
alarm_role_arn: typing.Optional[builtins.str] = None,
|
|
4500
4500
|
notification_lambda_arn: typing.Optional[builtins.str] = None,
|
|
4501
4501
|
) -> None:
|
|
4502
|
-
'''
|
|
4503
|
-
|
|
4504
|
-
|
|
4502
|
+
'''Contains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal.
|
|
4503
|
+
|
|
4504
|
+
You can use the alarm to monitor an asset property and get notified when the asset property value is outside a specified range. For more information, see `Monitoring with alarms <https://docs.aws.amazon.com/iot-sitewise/latest/appguide/monitor-alarms.html>`_ in the *AWS IoT SiteWise Application Guide* .
|
|
4505
|
+
|
|
4506
|
+
:param alarm_role_arn: The `ARN <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_ of the IAM role that allows the alarm to perform actions and access AWS resources and services, such as AWS IoT Events .
|
|
4507
|
+
:param notification_lambda_arn: The `ARN <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_ of the Lambda function that manages alarm notifications. For more information, see `Managing alarm notifications <https://docs.aws.amazon.com/iotevents/latest/developerguide/lambda-support.html>`_ in the *AWS IoT Events Developer Guide* .
|
|
4505
4508
|
|
|
4506
4509
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-portal-alarms.html
|
|
4507
4510
|
:exampleMetadata: fixture=_generated
|
|
@@ -4529,7 +4532,7 @@ class CfnPortal(
|
|
|
4529
4532
|
|
|
4530
4533
|
@builtins.property
|
|
4531
4534
|
def alarm_role_arn(self) -> typing.Optional[builtins.str]:
|
|
4532
|
-
'''
|
|
4535
|
+
'''The `ARN <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_ of the IAM role that allows the alarm to perform actions and access AWS resources and services, such as AWS IoT Events .
|
|
4533
4536
|
|
|
4534
4537
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-portal-alarms.html#cfn-iotsitewise-portal-alarms-alarmrolearn
|
|
4535
4538
|
'''
|
|
@@ -4538,7 +4541,7 @@ class CfnPortal(
|
|
|
4538
4541
|
|
|
4539
4542
|
@builtins.property
|
|
4540
4543
|
def notification_lambda_arn(self) -> typing.Optional[builtins.str]:
|
|
4541
|
-
'''
|
|
4544
|
+
'''The `ARN <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_ of the Lambda function that manages alarm notifications. For more information, see `Managing alarm notifications <https://docs.aws.amazon.com/iotevents/latest/developerguide/lambda-support.html>`_ in the *AWS IoT Events Developer Guide* .
|
|
4542
4545
|
|
|
4543
4546
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-portal-alarms.html#cfn-iotsitewise-portal-alarms-notificationlambdaarn
|
|
4544
4547
|
'''
|
|
@@ -1025,10 +1025,9 @@ class CfnDeliveryStream(
|
|
|
1025
1025
|
interval_in_seconds: typing.Optional[jsii.Number] = None,
|
|
1026
1026
|
size_in_m_bs: typing.Optional[jsii.Number] = None,
|
|
1027
1027
|
) -> None:
|
|
1028
|
-
'''
|
|
1029
|
-
|
|
1030
|
-
:param
|
|
1031
|
-
:param size_in_m_bs: Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.
|
|
1028
|
+
'''
|
|
1029
|
+
:param interval_in_seconds: ``CfnDeliveryStream.AmazonOpenSearchServerlessBufferingHintsProperty.IntervalInSeconds``.
|
|
1030
|
+
:param size_in_m_bs: ``CfnDeliveryStream.AmazonOpenSearchServerlessBufferingHintsProperty.SizeInMBs``.
|
|
1032
1031
|
|
|
1033
1032
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessbufferinghints.html
|
|
1034
1033
|
:exampleMetadata: fixture=_generated
|
|
@@ -1056,9 +1055,7 @@ class CfnDeliveryStream(
|
|
|
1056
1055
|
|
|
1057
1056
|
@builtins.property
|
|
1058
1057
|
def interval_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
1059
|
-
'''
|
|
1060
|
-
|
|
1061
|
-
The default value is 300 (5 minutes).
|
|
1058
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessBufferingHintsProperty.IntervalInSeconds``.
|
|
1062
1059
|
|
|
1063
1060
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessbufferinghints.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessbufferinghints-intervalinseconds
|
|
1064
1061
|
'''
|
|
@@ -1067,11 +1064,7 @@ class CfnDeliveryStream(
|
|
|
1067
1064
|
|
|
1068
1065
|
@builtins.property
|
|
1069
1066
|
def size_in_m_bs(self) -> typing.Optional[jsii.Number]:
|
|
1070
|
-
'''
|
|
1071
|
-
|
|
1072
|
-
The default value is 5.
|
|
1073
|
-
|
|
1074
|
-
We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.
|
|
1067
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessBufferingHintsProperty.SizeInMBs``.
|
|
1075
1068
|
|
|
1076
1069
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessbufferinghints.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessbufferinghints-sizeinmbs
|
|
1077
1070
|
'''
|
|
@@ -1120,17 +1113,16 @@ class CfnDeliveryStream(
|
|
|
1120
1113
|
s3_backup_mode: typing.Optional[builtins.str] = None,
|
|
1121
1114
|
vpc_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeliveryStream.VpcConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1122
1115
|
) -> None:
|
|
1123
|
-
'''
|
|
1124
|
-
|
|
1125
|
-
:param
|
|
1126
|
-
:param role_arn: The Amazon Resource Name (ARN) of the IAM role to be assumed by Kinesis Data Firehose for calling the Serverless offering for Amazon OpenSearch Service Configuration API and for indexing documents.
|
|
1116
|
+
'''
|
|
1117
|
+
:param index_name: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.IndexName``.
|
|
1118
|
+
:param role_arn: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.RoleARN``.
|
|
1127
1119
|
:param s3_configuration: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.S3Configuration``.
|
|
1128
|
-
:param buffering_hints:
|
|
1120
|
+
:param buffering_hints: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.BufferingHints``.
|
|
1129
1121
|
:param cloud_watch_logging_options: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.CloudWatchLoggingOptions``.
|
|
1130
|
-
:param collection_endpoint:
|
|
1122
|
+
:param collection_endpoint: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.CollectionEndpoint``.
|
|
1131
1123
|
:param processing_configuration: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.ProcessingConfiguration``.
|
|
1132
|
-
:param retry_options:
|
|
1133
|
-
:param s3_backup_mode:
|
|
1124
|
+
:param retry_options: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.RetryOptions``.
|
|
1125
|
+
:param s3_backup_mode: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.S3BackupMode``.
|
|
1134
1126
|
:param vpc_configuration: ``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.VpcConfiguration``.
|
|
1135
1127
|
|
|
1136
1128
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration.html
|
|
@@ -1238,7 +1230,7 @@ class CfnDeliveryStream(
|
|
|
1238
1230
|
|
|
1239
1231
|
@builtins.property
|
|
1240
1232
|
def index_name(self) -> builtins.str:
|
|
1241
|
-
'''
|
|
1233
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.IndexName``.
|
|
1242
1234
|
|
|
1243
1235
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration-indexname
|
|
1244
1236
|
'''
|
|
@@ -1248,7 +1240,7 @@ class CfnDeliveryStream(
|
|
|
1248
1240
|
|
|
1249
1241
|
@builtins.property
|
|
1250
1242
|
def role_arn(self) -> builtins.str:
|
|
1251
|
-
'''
|
|
1243
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.RoleARN``.
|
|
1252
1244
|
|
|
1253
1245
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration-rolearn
|
|
1254
1246
|
'''
|
|
@@ -1272,9 +1264,7 @@ class CfnDeliveryStream(
|
|
|
1272
1264
|
def buffering_hints(
|
|
1273
1265
|
self,
|
|
1274
1266
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.AmazonOpenSearchServerlessBufferingHintsProperty"]]:
|
|
1275
|
-
'''
|
|
1276
|
-
|
|
1277
|
-
If no value is specified, the default values for AmazonopensearchserviceBufferingHints are used.
|
|
1267
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.BufferingHints``.
|
|
1278
1268
|
|
|
1279
1269
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration-bufferinghints
|
|
1280
1270
|
'''
|
|
@@ -1294,7 +1284,7 @@ class CfnDeliveryStream(
|
|
|
1294
1284
|
|
|
1295
1285
|
@builtins.property
|
|
1296
1286
|
def collection_endpoint(self) -> typing.Optional[builtins.str]:
|
|
1297
|
-
'''
|
|
1287
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.CollectionEndpoint``.
|
|
1298
1288
|
|
|
1299
1289
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration-collectionendpoint
|
|
1300
1290
|
'''
|
|
@@ -1316,9 +1306,7 @@ class CfnDeliveryStream(
|
|
|
1316
1306
|
def retry_options(
|
|
1317
1307
|
self,
|
|
1318
1308
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.AmazonOpenSearchServerlessRetryOptionsProperty"]]:
|
|
1319
|
-
'''
|
|
1320
|
-
|
|
1321
|
-
The default value is 300 (5 minutes).
|
|
1309
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.RetryOptions``.
|
|
1322
1310
|
|
|
1323
1311
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration-retryoptions
|
|
1324
1312
|
'''
|
|
@@ -1327,9 +1315,7 @@ class CfnDeliveryStream(
|
|
|
1327
1315
|
|
|
1328
1316
|
@builtins.property
|
|
1329
1317
|
def s3_backup_mode(self) -> typing.Optional[builtins.str]:
|
|
1330
|
-
'''
|
|
1331
|
-
|
|
1332
|
-
When it is set to FailedDocumentsOnly, Kinesis Data Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with AmazonOpenSearchService-failed/ appended to the key prefix. When set to AllDocuments, Kinesis Data Firehose delivers all incoming records to Amazon S3, and also writes failed documents with AmazonOpenSearchService-failed/ appended to the prefix.
|
|
1318
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty.S3BackupMode``.
|
|
1333
1319
|
|
|
1334
1320
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessdestinationconfiguration-s3backupmode
|
|
1335
1321
|
'''
|
|
@@ -1369,9 +1355,8 @@ class CfnDeliveryStream(
|
|
|
1369
1355
|
*,
|
|
1370
1356
|
duration_in_seconds: typing.Optional[jsii.Number] = None,
|
|
1371
1357
|
) -> None:
|
|
1372
|
-
'''
|
|
1373
|
-
|
|
1374
|
-
:param duration_in_seconds: After an initial failure to deliver to the Serverless offering for Amazon OpenSearch Service, the total amount of time during which Kinesis Data Firehose retries delivery (including the first attempt). After this time has elapsed, the failed documents are written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
|
|
1358
|
+
'''
|
|
1359
|
+
:param duration_in_seconds: ``CfnDeliveryStream.AmazonOpenSearchServerlessRetryOptionsProperty.DurationInSeconds``.
|
|
1375
1360
|
|
|
1376
1361
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessretryoptions.html
|
|
1377
1362
|
:exampleMetadata: fixture=_generated
|
|
@@ -1395,9 +1380,7 @@ class CfnDeliveryStream(
|
|
|
1395
1380
|
|
|
1396
1381
|
@builtins.property
|
|
1397
1382
|
def duration_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
1398
|
-
'''
|
|
1399
|
-
|
|
1400
|
-
After this time has elapsed, the failed documents are written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
|
|
1383
|
+
'''``CfnDeliveryStream.AmazonOpenSearchServerlessRetryOptionsProperty.DurationInSeconds``.
|
|
1401
1384
|
|
|
1402
1385
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-amazonopensearchserverlessretryoptions.html#cfn-kinesisfirehose-deliverystream-amazonopensearchserverlessretryoptions-durationinseconds
|
|
1403
1386
|
'''
|
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -142,7 +142,7 @@ fn = lambda_.Function(self, "MyFunction",
|
|
|
142
142
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
143
143
|
handler="index.handler",
|
|
144
144
|
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler")),
|
|
145
|
-
timeout=
|
|
145
|
+
timeout=Duration.minutes(5)
|
|
146
146
|
)
|
|
147
147
|
|
|
148
148
|
if fn.timeout:
|
|
@@ -1128,25 +1128,23 @@ Lambda runtime management controls help reduce the risk of impact to your worklo
|
|
|
1128
1128
|
For more information, see [Runtime management controls](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-controls)
|
|
1129
1129
|
|
|
1130
1130
|
```python
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
"
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
})
|
|
1131
|
+
lambda_.Function(self, "Lambda",
|
|
1132
|
+
runtime_management_mode=lambda_.RuntimeManagementMode.AUTO,
|
|
1133
|
+
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
1134
|
+
handler="index.handler",
|
|
1135
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler"))
|
|
1136
|
+
)
|
|
1138
1137
|
```
|
|
1139
1138
|
|
|
1140
1139
|
If you want to set the "Manual" setting, using the ARN of the runtime version as the argument.
|
|
1141
1140
|
|
|
1142
1141
|
```python
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
"
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
})
|
|
1142
|
+
lambda_.Function(self, "Lambda",
|
|
1143
|
+
runtime_management_mode=lambda_.RuntimeManagementMode.manual("runtimeVersion-arn"),
|
|
1144
|
+
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
1145
|
+
handler="index.handler",
|
|
1146
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler"))
|
|
1147
|
+
)
|
|
1150
1148
|
```
|
|
1151
1149
|
'''
|
|
1152
1150
|
import abc
|
|
@@ -2102,8 +2100,12 @@ class AssetImageCodeProps(_DockerImageAssetOptions_9580cd76):
|
|
|
2102
2100
|
|
|
2103
2101
|
Example::
|
|
2104
2102
|
|
|
2105
|
-
|
|
2106
|
-
|
|
2103
|
+
from aws_cdk import DockerBuildSecret
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
build_secrets = {
|
|
2107
|
+
"MY_SECRET": DockerBuildSecret.from_src("file.txt")
|
|
2108
|
+
}
|
|
2107
2109
|
'''
|
|
2108
2110
|
result = self._values.get("build_secrets")
|
|
2109
2111
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
@@ -13979,7 +13981,7 @@ class FunctionProps(FunctionOptions):
|
|
|
13979
13981
|
|
|
13980
13982
|
rule.add_target(targets.LambdaFunction(fn,
|
|
13981
13983
|
dead_letter_queue=queue, # Optional: add a dead letter queue
|
|
13982
|
-
max_event_age=
|
|
13984
|
+
max_event_age=Duration.hours(2), # Optional: set the maxEventAge retry policy
|
|
13983
13985
|
retry_attempts=2
|
|
13984
13986
|
))
|
|
13985
13987
|
'''
|
|
@@ -18031,15 +18033,16 @@ class RuntimeManagementMode(
|
|
|
18031
18033
|
):
|
|
18032
18034
|
'''Specify the runtime update mode.
|
|
18033
18035
|
|
|
18034
|
-
:exampleMetadata:
|
|
18036
|
+
:exampleMetadata: infused
|
|
18035
18037
|
|
|
18036
18038
|
Example::
|
|
18037
18039
|
|
|
18038
|
-
|
|
18039
|
-
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18040
|
+
lambda_.Function(self, "Lambda",
|
|
18041
|
+
runtime_management_mode=lambda_.RuntimeManagementMode.AUTO,
|
|
18042
|
+
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
18043
|
+
handler="index.handler",
|
|
18044
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler"))
|
|
18045
|
+
)
|
|
18043
18046
|
'''
|
|
18044
18047
|
|
|
18045
18048
|
def __init__(
|
|
@@ -20139,7 +20142,6 @@ class AliasProps(AliasOptions):
|
|
|
20139
20142
|
|
|
20140
20143
|
Example::
|
|
20141
20144
|
|
|
20142
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
20143
20145
|
lambda_code = lambda_.Code.from_cfn_parameters()
|
|
20144
20146
|
func = lambda_.Function(self, "Lambda",
|
|
20145
20147
|
code=lambda_code,
|
|
@@ -20305,34 +20307,45 @@ class AssetCode(
|
|
|
20305
20307
|
):
|
|
20306
20308
|
'''Lambda code from a local directory.
|
|
20307
20309
|
|
|
20308
|
-
:exampleMetadata: infused
|
|
20310
|
+
:exampleMetadata: nofixture infused
|
|
20309
20311
|
|
|
20310
20312
|
Example::
|
|
20311
20313
|
|
|
20312
|
-
|
|
20313
|
-
|
|
20314
|
-
|
|
20315
|
-
handler="index.handler",
|
|
20316
|
-
runtime=lambda_.Runtime.NODEJS_14_X
|
|
20317
|
-
)
|
|
20314
|
+
class MyStack(Stack):
|
|
20315
|
+
def __init__(self, scope, id):
|
|
20316
|
+
super().__init__(scope, id)
|
|
20318
20317
|
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
)
|
|
20318
|
+
authorizer_fn = lambda_.Function(self, "MyAuthorizerFunction",
|
|
20319
|
+
runtime=lambda_.Runtime.NODEJS_14_X,
|
|
20320
|
+
handler="index.handler",
|
|
20321
|
+
code=lambda_.AssetCode.from_asset(path.join(__dirname, "integ.token-authorizer.handler"))
|
|
20322
|
+
)
|
|
20325
20323
|
|
|
20326
|
-
|
|
20327
|
-
|
|
20324
|
+
authorizer = TokenAuthorizer(self, "MyAuthorizer",
|
|
20325
|
+
handler=authorizer_fn
|
|
20326
|
+
)
|
|
20328
20327
|
|
|
20329
|
-
|
|
20330
|
-
|
|
20328
|
+
restapi = RestApi(self, "MyRestApi",
|
|
20329
|
+
cloud_watch_role=True,
|
|
20330
|
+
default_method_options=MethodOptions(
|
|
20331
|
+
authorizer=authorizer
|
|
20332
|
+
),
|
|
20333
|
+
default_cors_preflight_options=CorsOptions(
|
|
20334
|
+
allow_origins=Cors.ALL_ORIGINS
|
|
20335
|
+
)
|
|
20336
|
+
)
|
|
20331
20337
|
|
|
20332
|
-
|
|
20333
|
-
|
|
20334
|
-
|
|
20335
|
-
|
|
20338
|
+
restapi.root.add_method("ANY", MockIntegration(
|
|
20339
|
+
integration_responses=[IntegrationResponse(status_code="200")
|
|
20340
|
+
],
|
|
20341
|
+
passthrough_behavior=PassthroughBehavior.NEVER,
|
|
20342
|
+
request_templates={
|
|
20343
|
+
"application/json": "{ \"statusCode\": 200 }"
|
|
20344
|
+
}
|
|
20345
|
+
),
|
|
20346
|
+
method_responses=[MethodResponse(status_code="200")
|
|
20347
|
+
]
|
|
20348
|
+
)
|
|
20336
20349
|
'''
|
|
20337
20350
|
|
|
20338
20351
|
def __init__(
|
|
@@ -23187,7 +23200,6 @@ class Version(
|
|
|
23187
23200
|
|
|
23188
23201
|
Example::
|
|
23189
23202
|
|
|
23190
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23191
23203
|
lambda_code = lambda_.Code.from_cfn_parameters()
|
|
23192
23204
|
func = lambda_.Function(self, "Lambda",
|
|
23193
23205
|
code=lambda_code,
|
|
@@ -23466,7 +23478,6 @@ class Alias(
|
|
|
23466
23478
|
|
|
23467
23479
|
Example::
|
|
23468
23480
|
|
|
23469
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23470
23481
|
lambda_code = lambda_.Code.from_cfn_parameters()
|
|
23471
23482
|
func = lambda_.Function(self, "Lambda",
|
|
23472
23483
|
code=lambda_code,
|