aws-cdk-lib 2.181.0__py3-none-any.whl → 2.182.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 +292 -8
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.181.0.jsii.tgz → aws-cdk-lib@2.182.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +59 -0
- aws_cdk/aws_apigateway/__init__.py +122 -66
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -0
- aws_cdk/aws_appsync/__init__.py +30 -4
- aws_cdk/aws_autoscaling/__init__.py +409 -36
- aws_cdk/aws_batch/__init__.py +629 -11
- aws_cdk/aws_bedrock/__init__.py +204 -0
- aws_cdk/aws_certificatemanager/__init__.py +24 -0
- aws_cdk/aws_cloudformation/__init__.py +284 -2
- aws_cdk/aws_cloudfront/__init__.py +1 -0
- aws_cdk/aws_cloudtrail/__init__.py +4 -4
- aws_cdk/aws_datazone/__init__.py +82 -0
- aws_cdk/aws_ec2/__init__.py +32 -12
- aws_cdk/aws_ecr/__init__.py +10 -4
- aws_cdk/aws_ecs/__init__.py +58 -9
- aws_cdk/aws_eks/__init__.py +32 -3
- aws_cdk/aws_fsx/__init__.py +2 -0
- aws_cdk/aws_guardduty/__init__.py +38 -26
- aws_cdk/aws_iam/__init__.py +5 -2
- aws_cdk/aws_inspector/__init__.py +176 -0
- aws_cdk/aws_iotsitewise/__init__.py +2 -3
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_lambda/__init__.py +8 -0
- aws_cdk/aws_logs/__init__.py +2 -0
- aws_cdk/aws_mediapackagev2/__init__.py +22 -14
- aws_cdk/aws_opensearchservice/__init__.py +261 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +30 -4
- aws_cdk/aws_pipes/__init__.py +6 -2
- aws_cdk/aws_quicksight/__init__.py +225 -451
- aws_cdk/aws_rds/__init__.py +50 -13
- aws_cdk/aws_s3/__init__.py +8 -0
- aws_cdk/aws_sagemaker/__init__.py +68 -13
- aws_cdk/aws_sns/__init__.py +76 -1
- aws_cdk/aws_vpclattice/__init__.py +144 -9
- aws_cdk/aws_wafv2/__init__.py +702 -0
- aws_cdk/aws_wisdom/__init__.py +3 -110
- aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
- aws_cdk/aws_workspacesweb/__init__.py +179 -2
- aws_cdk/cloud_assembly_schema/__init__.py +224 -4
- aws_cdk/cx_api/__init__.py +2 -1
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_eks/__init__.py
CHANGED
|
@@ -2107,6 +2107,7 @@ from ..aws_autoscaling import (
|
|
|
2107
2107
|
CommonAutoScalingGroupProps as _CommonAutoScalingGroupProps_808bbf2d,
|
|
2108
2108
|
GroupMetrics as _GroupMetrics_7cdf729b,
|
|
2109
2109
|
HealthCheck as _HealthCheck_03a4bd5a,
|
|
2110
|
+
HealthChecks as _HealthChecks_b8757873,
|
|
2110
2111
|
Monitoring as _Monitoring_50020f91,
|
|
2111
2112
|
NotificationConfiguration as _NotificationConfiguration_d5911670,
|
|
2112
2113
|
Signals as _Signals_69fbeb6e,
|
|
@@ -3509,6 +3510,7 @@ class AuthenticationMode(enum.Enum):
|
|
|
3509
3510
|
"desired_capacity": "desiredCapacity",
|
|
3510
3511
|
"group_metrics": "groupMetrics",
|
|
3511
3512
|
"health_check": "healthCheck",
|
|
3513
|
+
"health_checks": "healthChecks",
|
|
3512
3514
|
"ignore_unmodified_size_properties": "ignoreUnmodifiedSizeProperties",
|
|
3513
3515
|
"instance_monitoring": "instanceMonitoring",
|
|
3514
3516
|
"key_name": "keyName",
|
|
@@ -3548,6 +3550,7 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
3548
3550
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
3549
3551
|
group_metrics: typing.Optional[typing.Sequence[_GroupMetrics_7cdf729b]] = None,
|
|
3550
3552
|
health_check: typing.Optional[_HealthCheck_03a4bd5a] = None,
|
|
3553
|
+
health_checks: typing.Optional[_HealthChecks_b8757873] = None,
|
|
3551
3554
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
3552
3555
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
3553
3556
|
key_name: typing.Optional[builtins.str] = None,
|
|
@@ -3583,7 +3586,8 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
3583
3586
|
:param default_instance_warmup: The amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. To optimize the performance of scaling policies that scale continuously, such as target tracking and step scaling policies, we strongly recommend that you enable the default instance warmup, even if its value is set to 0 seconds Default instance warmup will not be added if no value is specified Default: None
|
|
3584
3587
|
:param desired_capacity: Initial amount of instances in the fleet. If this is set to a number, every deployment will reset the amount of instances to this number. It is recommended to leave this value blank. Default: minCapacity, and leave unchanged during deployment
|
|
3585
3588
|
:param group_metrics: Enable monitoring for group metrics, these metrics describe the group rather than any of its instances. To report all group metrics use ``GroupMetrics.all()`` Group metrics are reported in a granularity of 1 minute at no additional charge. Default: - no group metrics will be reported
|
|
3586
|
-
:param health_check: Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
|
|
3589
|
+
:param health_check: (deprecated) Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
|
|
3590
|
+
:param health_checks: Configuration for EC2 or additional health checks. Even when using ``HealthChecks.withAdditionalChecks()``, the EC2 type is implicitly included. Default: - EC2 type with no grace period
|
|
3587
3591
|
:param ignore_unmodified_size_properties: If the ASG has scheduled actions, don't reset unchanged group sizes. Only used if the ASG has scheduled actions (which may scale your ASG up or down regardless of cdk deployments). If true, the size of the group will only be reset if it has been changed in the CDK app. If false, the sizes will always be changed back to what they were in the CDK app on deployment. Default: true
|
|
3588
3592
|
:param instance_monitoring: Controls whether instances in this group are launched with detailed or basic monitoring. When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - Monitoring.DETAILED
|
|
3589
3593
|
:param key_name: (deprecated) Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
|
|
@@ -3636,6 +3640,7 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
3636
3640
|
check_type(argname="argument desired_capacity", value=desired_capacity, expected_type=type_hints["desired_capacity"])
|
|
3637
3641
|
check_type(argname="argument group_metrics", value=group_metrics, expected_type=type_hints["group_metrics"])
|
|
3638
3642
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
|
3643
|
+
check_type(argname="argument health_checks", value=health_checks, expected_type=type_hints["health_checks"])
|
|
3639
3644
|
check_type(argname="argument ignore_unmodified_size_properties", value=ignore_unmodified_size_properties, expected_type=type_hints["ignore_unmodified_size_properties"])
|
|
3640
3645
|
check_type(argname="argument instance_monitoring", value=instance_monitoring, expected_type=type_hints["instance_monitoring"])
|
|
3641
3646
|
check_type(argname="argument key_name", value=key_name, expected_type=type_hints["key_name"])
|
|
@@ -3683,6 +3688,8 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
3683
3688
|
self._values["group_metrics"] = group_metrics
|
|
3684
3689
|
if health_check is not None:
|
|
3685
3690
|
self._values["health_check"] = health_check
|
|
3691
|
+
if health_checks is not None:
|
|
3692
|
+
self._values["health_checks"] = health_checks
|
|
3686
3693
|
if ignore_unmodified_size_properties is not None:
|
|
3687
3694
|
self._values["ignore_unmodified_size_properties"] = ignore_unmodified_size_properties
|
|
3688
3695
|
if instance_monitoring is not None:
|
|
@@ -3858,13 +3865,30 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
3858
3865
|
|
|
3859
3866
|
@builtins.property
|
|
3860
3867
|
def health_check(self) -> typing.Optional[_HealthCheck_03a4bd5a]:
|
|
3861
|
-
'''Configuration for health checks.
|
|
3868
|
+
'''(deprecated) Configuration for health checks.
|
|
3862
3869
|
|
|
3863
3870
|
:default: - HealthCheck.ec2 with no grace period
|
|
3871
|
+
|
|
3872
|
+
:deprecated: Use ``healthChecks`` instead
|
|
3873
|
+
|
|
3874
|
+
:stability: deprecated
|
|
3864
3875
|
'''
|
|
3865
3876
|
result = self._values.get("health_check")
|
|
3866
3877
|
return typing.cast(typing.Optional[_HealthCheck_03a4bd5a], result)
|
|
3867
3878
|
|
|
3879
|
+
@builtins.property
|
|
3880
|
+
def health_checks(self) -> typing.Optional[_HealthChecks_b8757873]:
|
|
3881
|
+
'''Configuration for EC2 or additional health checks.
|
|
3882
|
+
|
|
3883
|
+
Even when using ``HealthChecks.withAdditionalChecks()``, the EC2 type is implicitly included.
|
|
3884
|
+
|
|
3885
|
+
:default: - EC2 type with no grace period
|
|
3886
|
+
|
|
3887
|
+
:see: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html
|
|
3888
|
+
'''
|
|
3889
|
+
result = self._values.get("health_checks")
|
|
3890
|
+
return typing.cast(typing.Optional[_HealthChecks_b8757873], result)
|
|
3891
|
+
|
|
3868
3892
|
@builtins.property
|
|
3869
3893
|
def ignore_unmodified_size_properties(self) -> typing.Optional[builtins.bool]:
|
|
3870
3894
|
'''If the ASG has scheduled actions, don't reset unchanged group sizes.
|
|
@@ -18478,6 +18502,7 @@ class Cluster(
|
|
|
18478
18502
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
18479
18503
|
group_metrics: typing.Optional[typing.Sequence[_GroupMetrics_7cdf729b]] = None,
|
|
18480
18504
|
health_check: typing.Optional[_HealthCheck_03a4bd5a] = None,
|
|
18505
|
+
health_checks: typing.Optional[_HealthChecks_b8757873] = None,
|
|
18481
18506
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
18482
18507
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
18483
18508
|
key_name: typing.Optional[builtins.str] = None,
|
|
@@ -18526,7 +18551,8 @@ class Cluster(
|
|
|
18526
18551
|
:param default_instance_warmup: The amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. To optimize the performance of scaling policies that scale continuously, such as target tracking and step scaling policies, we strongly recommend that you enable the default instance warmup, even if its value is set to 0 seconds Default instance warmup will not be added if no value is specified Default: None
|
|
18527
18552
|
:param desired_capacity: Initial amount of instances in the fleet. If this is set to a number, every deployment will reset the amount of instances to this number. It is recommended to leave this value blank. Default: minCapacity, and leave unchanged during deployment
|
|
18528
18553
|
:param group_metrics: Enable monitoring for group metrics, these metrics describe the group rather than any of its instances. To report all group metrics use ``GroupMetrics.all()`` Group metrics are reported in a granularity of 1 minute at no additional charge. Default: - no group metrics will be reported
|
|
18529
|
-
:param health_check: Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
|
|
18554
|
+
:param health_check: (deprecated) Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
|
|
18555
|
+
:param health_checks: Configuration for EC2 or additional health checks. Even when using ``HealthChecks.withAdditionalChecks()``, the EC2 type is implicitly included. Default: - EC2 type with no grace period
|
|
18530
18556
|
:param ignore_unmodified_size_properties: If the ASG has scheduled actions, don't reset unchanged group sizes. Only used if the ASG has scheduled actions (which may scale your ASG up or down regardless of cdk deployments). If true, the size of the group will only be reset if it has been changed in the CDK app. If false, the sizes will always be changed back to what they were in the CDK app on deployment. Default: true
|
|
18531
18557
|
:param instance_monitoring: Controls whether instances in this group are launched with detailed or basic monitoring. When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - Monitoring.DETAILED
|
|
18532
18558
|
:param key_name: (deprecated) Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
|
|
@@ -18565,6 +18591,7 @@ class Cluster(
|
|
|
18565
18591
|
desired_capacity=desired_capacity,
|
|
18566
18592
|
group_metrics=group_metrics,
|
|
18567
18593
|
health_check=health_check,
|
|
18594
|
+
health_checks=health_checks,
|
|
18568
18595
|
ignore_unmodified_size_properties=ignore_unmodified_size_properties,
|
|
18569
18596
|
instance_monitoring=instance_monitoring,
|
|
18570
18597
|
key_name=key_name,
|
|
@@ -21542,6 +21569,7 @@ def _typecheckingstub__9ac94eb5cd9569dcf4122cf20026c6f104b737f68ecd3395b237320bd
|
|
|
21542
21569
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
21543
21570
|
group_metrics: typing.Optional[typing.Sequence[_GroupMetrics_7cdf729b]] = None,
|
|
21544
21571
|
health_check: typing.Optional[_HealthCheck_03a4bd5a] = None,
|
|
21572
|
+
health_checks: typing.Optional[_HealthChecks_b8757873] = None,
|
|
21545
21573
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
21546
21574
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
21547
21575
|
key_name: typing.Optional[builtins.str] = None,
|
|
@@ -23343,6 +23371,7 @@ def _typecheckingstub__e9e81d821b1c1d14225d1c9cc695af8e71b96a7489dcd36bd237c9363
|
|
|
23343
23371
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
23344
23372
|
group_metrics: typing.Optional[typing.Sequence[_GroupMetrics_7cdf729b]] = None,
|
|
23345
23373
|
health_check: typing.Optional[_HealthCheck_03a4bd5a] = None,
|
|
23374
|
+
health_checks: typing.Optional[_HealthChecks_b8757873] = None,
|
|
23346
23375
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
23347
23376
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
23348
23377
|
key_name: typing.Optional[builtins.str] = None,
|
aws_cdk/aws_fsx/__init__.py
CHANGED
|
@@ -8258,6 +8258,8 @@ class StorageType(enum.Enum):
|
|
|
8258
8258
|
'''Solid State Drive storage.'''
|
|
8259
8259
|
HDD = "HDD"
|
|
8260
8260
|
'''Hard Disk Drive storage.'''
|
|
8261
|
+
INTELLIGENT_TIERING = "INTELLIGENT_TIERING"
|
|
8262
|
+
'''Intelligent Tiering storage.'''
|
|
8261
8263
|
|
|
8262
8264
|
|
|
8263
8265
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_fsx.Weekday")
|
|
@@ -2664,7 +2664,7 @@ class CfnMalwareProtectionPlan(
|
|
|
2664
2664
|
'''Information about the status code and status details associated with the status of the Malware Protection plan.
|
|
2665
2665
|
|
|
2666
2666
|
:param code: The status code of the Malware Protection plan. For more information, see `Malware Protection plan resource status <https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection-s3-bucket-status-gdu.html>`_ in the *GuardDuty User Guide* .
|
|
2667
|
-
:param message: Issue message that specifies the reason. For information about potential troubleshooting steps, see `Troubleshooting Malware Protection for S3 status issues <https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html>`_ in the *GuardDuty User Guide* .
|
|
2667
|
+
:param message: Issue message that specifies the reason. For information about potential troubleshooting steps, see `Troubleshooting Malware Protection for S3 status issues <https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html>`_ in the *Amazon GuardDuty User Guide* .
|
|
2668
2668
|
|
|
2669
2669
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnstatusreasons.html
|
|
2670
2670
|
:exampleMetadata: fixture=_generated
|
|
@@ -2705,7 +2705,7 @@ class CfnMalwareProtectionPlan(
|
|
|
2705
2705
|
def message(self) -> typing.Optional[builtins.str]:
|
|
2706
2706
|
'''Issue message that specifies the reason.
|
|
2707
2707
|
|
|
2708
|
-
For information about potential troubleshooting steps, see `Troubleshooting Malware Protection for S3 status issues <https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html>`_ in the *GuardDuty User Guide* .
|
|
2708
|
+
For information about potential troubleshooting steps, see `Troubleshooting Malware Protection for S3 status issues <https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html>`_ in the *Amazon GuardDuty User Guide* .
|
|
2709
2709
|
|
|
2710
2710
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnstatusreasons.html#cfn-guardduty-malwareprotectionplan-cfnstatusreasons-message
|
|
2711
2711
|
'''
|
|
@@ -3618,7 +3618,11 @@ class CfnPublishingDestination(
|
|
|
3618
3618
|
metaclass=jsii.JSIIMeta,
|
|
3619
3619
|
jsii_type="aws-cdk-lib.aws_guardduty.CfnPublishingDestination",
|
|
3620
3620
|
):
|
|
3621
|
-
'''
|
|
3621
|
+
'''Creates a publishing destination where you can export your GuardDuty findings.
|
|
3622
|
+
|
|
3623
|
+
Before you start exporting the findings, the destination resource must exist.
|
|
3624
|
+
|
|
3625
|
+
For more information about considerations and permissions, see `Exporting GuardDuty findings to Amazon S3 buckets <https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_exportfindings.html>`_ in the *Amazon GuardDuty User Guide* .
|
|
3622
3626
|
|
|
3623
3627
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html
|
|
3624
3628
|
:cloudformationResource: AWS::GuardDuty::PublishingDestination
|
|
@@ -3659,10 +3663,10 @@ class CfnPublishingDestination(
|
|
|
3659
3663
|
'''
|
|
3660
3664
|
:param scope: Scope in which this resource is defined.
|
|
3661
3665
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
3662
|
-
:param destination_properties:
|
|
3663
|
-
:param destination_type: The type of
|
|
3664
|
-
:param detector_id: The ID of the GuardDuty detector
|
|
3665
|
-
:param tags:
|
|
3666
|
+
:param destination_properties: Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.
|
|
3667
|
+
:param destination_type: The type of publishing destination. GuardDuty supports Amazon S3 buckets as a publishing destination.
|
|
3668
|
+
:param detector_id: The ID of the GuardDuty detector where the publishing destination exists.
|
|
3669
|
+
:param tags: Describes a tag.
|
|
3666
3670
|
'''
|
|
3667
3671
|
if __debug__:
|
|
3668
3672
|
type_hints = typing.get_type_hints(_typecheckingstub__7582a0d304acc160bc9a98d9a732b80f3278afa4bf6e6727d1f126985b25ef2e)
|
|
@@ -3750,6 +3754,7 @@ class CfnPublishingDestination(
|
|
|
3750
3754
|
def destination_properties(
|
|
3751
3755
|
self,
|
|
3752
3756
|
) -> typing.Union[_IResolvable_da3f097b, "CfnPublishingDestination.CFNDestinationPropertiesProperty"]:
|
|
3757
|
+
'''Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.'''
|
|
3753
3758
|
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPublishingDestination.CFNDestinationPropertiesProperty"], jsii.get(self, "destinationProperties"))
|
|
3754
3759
|
|
|
3755
3760
|
@destination_properties.setter
|
|
@@ -3765,7 +3770,7 @@ class CfnPublishingDestination(
|
|
|
3765
3770
|
@builtins.property
|
|
3766
3771
|
@jsii.member(jsii_name="destinationType")
|
|
3767
3772
|
def destination_type(self) -> builtins.str:
|
|
3768
|
-
'''The type of
|
|
3773
|
+
'''The type of publishing destination.'''
|
|
3769
3774
|
return typing.cast(builtins.str, jsii.get(self, "destinationType"))
|
|
3770
3775
|
|
|
3771
3776
|
@destination_type.setter
|
|
@@ -3778,7 +3783,7 @@ class CfnPublishingDestination(
|
|
|
3778
3783
|
@builtins.property
|
|
3779
3784
|
@jsii.member(jsii_name="detectorId")
|
|
3780
3785
|
def detector_id(self) -> builtins.str:
|
|
3781
|
-
'''The ID of the GuardDuty detector
|
|
3786
|
+
'''The ID of the GuardDuty detector where the publishing destination exists.'''
|
|
3782
3787
|
return typing.cast(builtins.str, jsii.get(self, "detectorId"))
|
|
3783
3788
|
|
|
3784
3789
|
@detector_id.setter
|
|
@@ -3793,6 +3798,7 @@ class CfnPublishingDestination(
|
|
|
3793
3798
|
def tags(
|
|
3794
3799
|
self,
|
|
3795
3800
|
) -> typing.Optional[typing.List["CfnPublishingDestination.TagItemProperty"]]:
|
|
3801
|
+
'''Describes a tag.'''
|
|
3796
3802
|
return typing.cast(typing.Optional[typing.List["CfnPublishingDestination.TagItemProperty"]], jsii.get(self, "tags"))
|
|
3797
3803
|
|
|
3798
3804
|
@tags.setter
|
|
@@ -3817,8 +3823,9 @@ class CfnPublishingDestination(
|
|
|
3817
3823
|
destination_arn: typing.Optional[builtins.str] = None,
|
|
3818
3824
|
kms_key_arn: typing.Optional[builtins.str] = None,
|
|
3819
3825
|
) -> None:
|
|
3820
|
-
'''
|
|
3821
|
-
|
|
3826
|
+
'''Contains the Amazon Resource Name (ARN) of the resource that receives the published findings, such as an S3 bucket, and the ARN of the KMS key that is used to encrypt these published findings.
|
|
3827
|
+
|
|
3828
|
+
:param destination_arn: The ARN of the resource where the findings are published.
|
|
3822
3829
|
:param kms_key_arn: The ARN of the KMS key to use for encryption.
|
|
3823
3830
|
|
|
3824
3831
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-publishingdestination-cfndestinationproperties.html
|
|
@@ -3847,7 +3854,7 @@ class CfnPublishingDestination(
|
|
|
3847
3854
|
|
|
3848
3855
|
@builtins.property
|
|
3849
3856
|
def destination_arn(self) -> typing.Optional[builtins.str]:
|
|
3850
|
-
'''The ARN of the resource
|
|
3857
|
+
'''The ARN of the resource where the findings are published.
|
|
3851
3858
|
|
|
3852
3859
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-publishingdestination-cfndestinationproperties.html#cfn-guardduty-publishingdestination-cfndestinationproperties-destinationarn
|
|
3853
3860
|
'''
|
|
@@ -3881,9 +3888,10 @@ class CfnPublishingDestination(
|
|
|
3881
3888
|
)
|
|
3882
3889
|
class TagItemProperty:
|
|
3883
3890
|
def __init__(self, *, key: builtins.str, value: builtins.str) -> None:
|
|
3884
|
-
'''
|
|
3885
|
-
|
|
3886
|
-
:param
|
|
3891
|
+
'''Describes a tag.
|
|
3892
|
+
|
|
3893
|
+
:param key: The tag key.
|
|
3894
|
+
:param value: The tag value.
|
|
3887
3895
|
|
|
3888
3896
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-publishingdestination-tagitem.html
|
|
3889
3897
|
:exampleMetadata: fixture=_generated
|
|
@@ -3910,7 +3918,8 @@ class CfnPublishingDestination(
|
|
|
3910
3918
|
|
|
3911
3919
|
@builtins.property
|
|
3912
3920
|
def key(self) -> builtins.str:
|
|
3913
|
-
'''
|
|
3921
|
+
'''The tag key.
|
|
3922
|
+
|
|
3914
3923
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-publishingdestination-tagitem.html#cfn-guardduty-publishingdestination-tagitem-key
|
|
3915
3924
|
'''
|
|
3916
3925
|
result = self._values.get("key")
|
|
@@ -3919,7 +3928,8 @@ class CfnPublishingDestination(
|
|
|
3919
3928
|
|
|
3920
3929
|
@builtins.property
|
|
3921
3930
|
def value(self) -> builtins.str:
|
|
3922
|
-
'''
|
|
3931
|
+
'''The tag value.
|
|
3932
|
+
|
|
3923
3933
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-publishingdestination-tagitem.html#cfn-guardduty-publishingdestination-tagitem-value
|
|
3924
3934
|
'''
|
|
3925
3935
|
result = self._values.get("value")
|
|
@@ -3959,10 +3969,10 @@ class CfnPublishingDestinationProps:
|
|
|
3959
3969
|
) -> None:
|
|
3960
3970
|
'''Properties for defining a ``CfnPublishingDestination``.
|
|
3961
3971
|
|
|
3962
|
-
:param destination_properties:
|
|
3963
|
-
:param destination_type: The type of
|
|
3964
|
-
:param detector_id: The ID of the GuardDuty detector
|
|
3965
|
-
:param tags:
|
|
3972
|
+
:param destination_properties: Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.
|
|
3973
|
+
:param destination_type: The type of publishing destination. GuardDuty supports Amazon S3 buckets as a publishing destination.
|
|
3974
|
+
:param detector_id: The ID of the GuardDuty detector where the publishing destination exists.
|
|
3975
|
+
:param tags: Describes a tag.
|
|
3966
3976
|
|
|
3967
3977
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html
|
|
3968
3978
|
:exampleMetadata: fixture=_generated
|
|
@@ -4006,7 +4016,8 @@ class CfnPublishingDestinationProps:
|
|
|
4006
4016
|
def destination_properties(
|
|
4007
4017
|
self,
|
|
4008
4018
|
) -> typing.Union[_IResolvable_da3f097b, CfnPublishingDestination.CFNDestinationPropertiesProperty]:
|
|
4009
|
-
'''
|
|
4019
|
+
'''Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.
|
|
4020
|
+
|
|
4010
4021
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html#cfn-guardduty-publishingdestination-destinationproperties
|
|
4011
4022
|
'''
|
|
4012
4023
|
result = self._values.get("destination_properties")
|
|
@@ -4015,9 +4026,9 @@ class CfnPublishingDestinationProps:
|
|
|
4015
4026
|
|
|
4016
4027
|
@builtins.property
|
|
4017
4028
|
def destination_type(self) -> builtins.str:
|
|
4018
|
-
'''The type of
|
|
4029
|
+
'''The type of publishing destination.
|
|
4019
4030
|
|
|
4020
|
-
|
|
4031
|
+
GuardDuty supports Amazon S3 buckets as a publishing destination.
|
|
4021
4032
|
|
|
4022
4033
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html#cfn-guardduty-publishingdestination-destinationtype
|
|
4023
4034
|
'''
|
|
@@ -4027,7 +4038,7 @@ class CfnPublishingDestinationProps:
|
|
|
4027
4038
|
|
|
4028
4039
|
@builtins.property
|
|
4029
4040
|
def detector_id(self) -> builtins.str:
|
|
4030
|
-
'''The ID of the GuardDuty detector
|
|
4041
|
+
'''The ID of the GuardDuty detector where the publishing destination exists.
|
|
4031
4042
|
|
|
4032
4043
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html#cfn-guardduty-publishingdestination-detectorid
|
|
4033
4044
|
'''
|
|
@@ -4039,7 +4050,8 @@ class CfnPublishingDestinationProps:
|
|
|
4039
4050
|
def tags(
|
|
4040
4051
|
self,
|
|
4041
4052
|
) -> typing.Optional[typing.List[CfnPublishingDestination.TagItemProperty]]:
|
|
4042
|
-
'''
|
|
4053
|
+
'''Describes a tag.
|
|
4054
|
+
|
|
4043
4055
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html#cfn-guardduty-publishingdestination-tags
|
|
4044
4056
|
'''
|
|
4045
4057
|
result = self._values.get("tags")
|
aws_cdk/aws_iam/__init__.py
CHANGED
|
@@ -8156,7 +8156,7 @@ class IPrincipal(IGrantable, typing_extensions.Protocol):
|
|
|
8156
8156
|
Notifications Service).
|
|
8157
8157
|
|
|
8158
8158
|
A single logical Principal may also map to a set of physical principals.
|
|
8159
|
-
For example, ``new OrganizationPrincipal('o-
|
|
8159
|
+
For example, ``new OrganizationPrincipal('o-12345abcde')`` represents all
|
|
8160
8160
|
identities that are part of the given AWS Organization.
|
|
8161
8161
|
'''
|
|
8162
8162
|
|
|
@@ -8212,7 +8212,7 @@ class _IPrincipalProxy(
|
|
|
8212
8212
|
Notifications Service).
|
|
8213
8213
|
|
|
8214
8214
|
A single logical Principal may also map to a set of physical principals.
|
|
8215
|
-
For example, ``new OrganizationPrincipal('o-
|
|
8215
|
+
For example, ``new OrganizationPrincipal('o-12345abcde')`` represents all
|
|
8216
8216
|
identities that are part of the given AWS Organization.
|
|
8217
8217
|
'''
|
|
8218
8218
|
|
|
@@ -14262,6 +14262,9 @@ class OrganizationPrincipal(
|
|
|
14262
14262
|
):
|
|
14263
14263
|
'''A principal that represents an AWS Organization.
|
|
14264
14264
|
|
|
14265
|
+
Property organizationId must match regex pattern ^o-[a-z0-9]{10,32}$
|
|
14266
|
+
|
|
14267
|
+
:see: https://docs.aws.amazon.com/organizations/latest/APIReference/API_Organization.html
|
|
14265
14268
|
:exampleMetadata: infused
|
|
14266
14269
|
|
|
14267
14270
|
Example::
|
|
@@ -63,10 +63,129 @@ from .. import (
|
|
|
63
63
|
CfnTag as _CfnTag_f6864754,
|
|
64
64
|
IInspectable as _IInspectable_c2943556,
|
|
65
65
|
IResolvable as _IResolvable_da3f097b,
|
|
66
|
+
IResource as _IResource_c80c4260,
|
|
67
|
+
Resource as _Resource_45bc6135,
|
|
68
|
+
ResourceProps as _ResourceProps_15a65b4e,
|
|
66
69
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
67
70
|
)
|
|
68
71
|
|
|
69
72
|
|
|
73
|
+
class AssessmentTemplate(
|
|
74
|
+
_Resource_45bc6135,
|
|
75
|
+
metaclass=jsii.JSIIMeta,
|
|
76
|
+
jsii_type="aws-cdk-lib.aws_inspector.AssessmentTemplate",
|
|
77
|
+
):
|
|
78
|
+
'''An Amazon Inspector assessment template.
|
|
79
|
+
|
|
80
|
+
TODO: This class should implement IAssessmentTemplate and "construct-ctor-props-type:aws-cdk-lib.aws_inspector.AssessmentTemplate" should be
|
|
81
|
+
removed from ``awslint.json`` when implementing the L2 construct
|
|
82
|
+
|
|
83
|
+
:exampleMetadata: fixture=_generated
|
|
84
|
+
|
|
85
|
+
Example::
|
|
86
|
+
|
|
87
|
+
# The code below shows an example of how to instantiate this type.
|
|
88
|
+
# The values are placeholders you should change.
|
|
89
|
+
from aws_cdk import aws_inspector as inspector
|
|
90
|
+
|
|
91
|
+
assessment_template = inspector.AssessmentTemplate(self, "MyAssessmentTemplate",
|
|
92
|
+
account="account",
|
|
93
|
+
environment_from_arn="environmentFromArn",
|
|
94
|
+
physical_name="physicalName",
|
|
95
|
+
region="region"
|
|
96
|
+
)
|
|
97
|
+
'''
|
|
98
|
+
|
|
99
|
+
def __init__(
|
|
100
|
+
self,
|
|
101
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
102
|
+
id: builtins.str,
|
|
103
|
+
*,
|
|
104
|
+
account: typing.Optional[builtins.str] = None,
|
|
105
|
+
environment_from_arn: typing.Optional[builtins.str] = None,
|
|
106
|
+
physical_name: typing.Optional[builtins.str] = None,
|
|
107
|
+
region: typing.Optional[builtins.str] = None,
|
|
108
|
+
) -> None:
|
|
109
|
+
'''
|
|
110
|
+
:param scope: -
|
|
111
|
+
:param id: -
|
|
112
|
+
:param account: The AWS account ID this resource belongs to. Default: - the resource is in the same account as the stack it belongs to
|
|
113
|
+
:param environment_from_arn: ARN to deduce region and account from. The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources. Cannot be supplied together with either ``account`` or ``region``. Default: - take environment from ``account``, ``region`` parameters, or use Stack environment.
|
|
114
|
+
:param physical_name: The value passed in by users to the physical name prop of the resource. - ``undefined`` implies that a physical name will be allocated by CloudFormation during deployment. - a concrete value implies a specific physical name - ``PhysicalName.GENERATE_IF_NEEDED`` is a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation. Default: - The physical name will be allocated by CloudFormation at deployment time
|
|
115
|
+
:param region: The AWS region this resource belongs to. Default: - the resource is in the same region as the stack it belongs to
|
|
116
|
+
'''
|
|
117
|
+
if __debug__:
|
|
118
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b2c7d643c93bd242956ccec86b5deef314ea7b86e8724a41b41cfac2a91fb4ee)
|
|
119
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
120
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
121
|
+
props = _ResourceProps_15a65b4e(
|
|
122
|
+
account=account,
|
|
123
|
+
environment_from_arn=environment_from_arn,
|
|
124
|
+
physical_name=physical_name,
|
|
125
|
+
region=region,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
129
|
+
|
|
130
|
+
@jsii.member(jsii_name="fromCfnAssessmentTemplate")
|
|
131
|
+
@builtins.classmethod
|
|
132
|
+
def from_cfn_assessment_template(
|
|
133
|
+
cls,
|
|
134
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
135
|
+
id: builtins.str,
|
|
136
|
+
template: "CfnAssessmentTemplate",
|
|
137
|
+
) -> "IAssessmentTemplate":
|
|
138
|
+
'''Creates an AssessmentTemplate from an existing CfnAssessmentTemplate.
|
|
139
|
+
|
|
140
|
+
This method is provided to bridge the gap with L2 constructs since no L2 constructs
|
|
141
|
+
exist for Inspector resources yet. It allows working with CfnAssessmentTemplate (L1)
|
|
142
|
+
resources through the IAssessmentTemplate interface.
|
|
143
|
+
|
|
144
|
+
:param scope: -
|
|
145
|
+
:param id: -
|
|
146
|
+
:param template: -
|
|
147
|
+
'''
|
|
148
|
+
if __debug__:
|
|
149
|
+
type_hints = typing.get_type_hints(_typecheckingstub__27ed524e48f7eb2cf7a80fc6e726970f98769ba4eca8bc25f7d5ae4fb03b0875)
|
|
150
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
151
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
152
|
+
check_type(argname="argument template", value=template, expected_type=type_hints["template"])
|
|
153
|
+
return typing.cast("IAssessmentTemplate", jsii.sinvoke(cls, "fromCfnAssessmentTemplate", [scope, id, template]))
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
@jsii.data_type(
|
|
157
|
+
jsii_type="aws-cdk-lib.aws_inspector.AssessmentTemplateProps",
|
|
158
|
+
jsii_struct_bases=[],
|
|
159
|
+
name_mapping={},
|
|
160
|
+
)
|
|
161
|
+
class AssessmentTemplateProps:
|
|
162
|
+
def __init__(self) -> None:
|
|
163
|
+
'''Properties for creating an Inspector Assessment Template TODO: Add properties and remove "props-physical-name:aws-cdk-lib.aws_inspector.AssessmentTemplateProps" from ``awslint.json`` when implementing the L2 construct.
|
|
164
|
+
|
|
165
|
+
:exampleMetadata: fixture=_generated
|
|
166
|
+
|
|
167
|
+
Example::
|
|
168
|
+
|
|
169
|
+
# The code below shows an example of how to instantiate this type.
|
|
170
|
+
# The values are placeholders you should change.
|
|
171
|
+
from aws_cdk import aws_inspector as inspector
|
|
172
|
+
|
|
173
|
+
assessment_template_props = inspector.AssessmentTemplateProps()
|
|
174
|
+
'''
|
|
175
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
176
|
+
|
|
177
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
178
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
179
|
+
|
|
180
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
181
|
+
return not (rhs == self)
|
|
182
|
+
|
|
183
|
+
def __repr__(self) -> str:
|
|
184
|
+
return "AssessmentTemplateProps(%s)" % ", ".join(
|
|
185
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
|
|
70
189
|
@jsii.implements(_IInspectable_c2943556)
|
|
71
190
|
class CfnAssessmentTarget(
|
|
72
191
|
_CfnResource_9df397a6,
|
|
@@ -748,17 +867,74 @@ class CfnResourceGroupProps:
|
|
|
748
867
|
)
|
|
749
868
|
|
|
750
869
|
|
|
870
|
+
@jsii.interface(jsii_type="aws-cdk-lib.aws_inspector.IAssessmentTemplate")
|
|
871
|
+
class IAssessmentTemplate(_IResource_c80c4260, typing_extensions.Protocol):
|
|
872
|
+
'''Interface for an Inspector Assessment Template.'''
|
|
873
|
+
|
|
874
|
+
@builtins.property
|
|
875
|
+
@jsii.member(jsii_name="assessmentTemplateArn")
|
|
876
|
+
def assessment_template_arn(self) -> builtins.str:
|
|
877
|
+
'''The Amazon Resource Name (ARN) of the assessment template.
|
|
878
|
+
|
|
879
|
+
:attribute: true
|
|
880
|
+
'''
|
|
881
|
+
...
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
class _IAssessmentTemplateProxy(
|
|
885
|
+
jsii.proxy_for(_IResource_c80c4260), # type: ignore[misc]
|
|
886
|
+
):
|
|
887
|
+
'''Interface for an Inspector Assessment Template.'''
|
|
888
|
+
|
|
889
|
+
__jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_inspector.IAssessmentTemplate"
|
|
890
|
+
|
|
891
|
+
@builtins.property
|
|
892
|
+
@jsii.member(jsii_name="assessmentTemplateArn")
|
|
893
|
+
def assessment_template_arn(self) -> builtins.str:
|
|
894
|
+
'''The Amazon Resource Name (ARN) of the assessment template.
|
|
895
|
+
|
|
896
|
+
:attribute: true
|
|
897
|
+
'''
|
|
898
|
+
return typing.cast(builtins.str, jsii.get(self, "assessmentTemplateArn"))
|
|
899
|
+
|
|
900
|
+
# Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
|
|
901
|
+
typing.cast(typing.Any, IAssessmentTemplate).__jsii_proxy_class__ = lambda : _IAssessmentTemplateProxy
|
|
902
|
+
|
|
903
|
+
|
|
751
904
|
__all__ = [
|
|
905
|
+
"AssessmentTemplate",
|
|
906
|
+
"AssessmentTemplateProps",
|
|
752
907
|
"CfnAssessmentTarget",
|
|
753
908
|
"CfnAssessmentTargetProps",
|
|
754
909
|
"CfnAssessmentTemplate",
|
|
755
910
|
"CfnAssessmentTemplateProps",
|
|
756
911
|
"CfnResourceGroup",
|
|
757
912
|
"CfnResourceGroupProps",
|
|
913
|
+
"IAssessmentTemplate",
|
|
758
914
|
]
|
|
759
915
|
|
|
760
916
|
publication.publish()
|
|
761
917
|
|
|
918
|
+
def _typecheckingstub__b2c7d643c93bd242956ccec86b5deef314ea7b86e8724a41b41cfac2a91fb4ee(
|
|
919
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
920
|
+
id: builtins.str,
|
|
921
|
+
*,
|
|
922
|
+
account: typing.Optional[builtins.str] = None,
|
|
923
|
+
environment_from_arn: typing.Optional[builtins.str] = None,
|
|
924
|
+
physical_name: typing.Optional[builtins.str] = None,
|
|
925
|
+
region: typing.Optional[builtins.str] = None,
|
|
926
|
+
) -> None:
|
|
927
|
+
"""Type checking stubs"""
|
|
928
|
+
pass
|
|
929
|
+
|
|
930
|
+
def _typecheckingstub__27ed524e48f7eb2cf7a80fc6e726970f98769ba4eca8bc25f7d5ae4fb03b0875(
|
|
931
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
932
|
+
id: builtins.str,
|
|
933
|
+
template: CfnAssessmentTemplate,
|
|
934
|
+
) -> None:
|
|
935
|
+
"""Type checking stubs"""
|
|
936
|
+
pass
|
|
937
|
+
|
|
762
938
|
def _typecheckingstub__8b68f769512afe2cc2200d1eaed82952c7d1dda03213723b68dd167dd4a283c7(
|
|
763
939
|
scope: _constructs_77d1e7e8.Construct,
|
|
764
940
|
id: builtins.str,
|
|
@@ -4467,7 +4467,7 @@ class CfnGateway(
|
|
|
4467
4467
|
) -> None:
|
|
4468
4468
|
'''Contains a gateway's platform information.
|
|
4469
4469
|
|
|
4470
|
-
:param greengrass:
|
|
4470
|
+
:param greengrass:
|
|
4471
4471
|
:param greengrass_v2: A gateway that runs on AWS IoT Greengrass V2 .
|
|
4472
4472
|
:param siemens_ie: A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge Device.
|
|
4473
4473
|
|
|
@@ -4512,8 +4512,7 @@ class CfnGateway(
|
|
|
4512
4512
|
def greengrass(
|
|
4513
4513
|
self,
|
|
4514
4514
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGateway.GreengrassProperty"]]:
|
|
4515
|
-
'''
|
|
4516
|
-
|
|
4515
|
+
'''
|
|
4517
4516
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewayplatform.html#cfn-iotsitewise-gateway-gatewayplatform-greengrass
|
|
4518
4517
|
'''
|
|
4519
4518
|
result = self._values.get("greengrass")
|
|
@@ -9723,6 +9723,12 @@ class Compression(
|
|
|
9723
9723
|
'''Snappy.'''
|
|
9724
9724
|
return typing.cast("Compression", jsii.sget(cls, "SNAPPY"))
|
|
9725
9725
|
|
|
9726
|
+
@jsii.python.classproperty
|
|
9727
|
+
@jsii.member(jsii_name="UNCOMPRESSED")
|
|
9728
|
+
def UNCOMPRESSED(cls) -> "Compression":
|
|
9729
|
+
'''Uncompressed.'''
|
|
9730
|
+
return typing.cast("Compression", jsii.sget(cls, "UNCOMPRESSED"))
|
|
9731
|
+
|
|
9726
9732
|
@jsii.python.classproperty
|
|
9727
9733
|
@jsii.member(jsii_name="ZIP")
|
|
9728
9734
|
def ZIP(cls) -> "Compression":
|
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -24,6 +24,8 @@ related to a missing environment variable. To work around this, you can invoke
|
|
|
24
24
|
your function against a version or alias by default, rather than the `$LATEST`
|
|
25
25
|
version.
|
|
26
26
|
|
|
27
|
+
To further mitigate these issues, you can ensure consistency between your function code and infrastructure configuration by defining environment variables as a single source of truth in your CDK stack. You can define them in a separate `env.ts` file and reference them in both your handler and CDK configuration. This approach allows you to catch errors at compile time, benefit from improved IDE support, minimize the risk of mismatched configurations, and enhance maintainability.
|
|
28
|
+
|
|
27
29
|
## Handler Code
|
|
28
30
|
|
|
29
31
|
The `lambda.Code` class includes static convenience methods for various types of
|
|
@@ -21214,6 +21216,12 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.Runtime
|
|
|
21214
21216
|
'''The .NET 8 runtime (dotnet8).'''
|
|
21215
21217
|
return typing.cast("Runtime", jsii.sget(cls, "DOTNET_8"))
|
|
21216
21218
|
|
|
21219
|
+
@jsii.python.classproperty
|
|
21220
|
+
@jsii.member(jsii_name="DOTNET_9")
|
|
21221
|
+
def DOTNET_9(cls) -> "Runtime":
|
|
21222
|
+
'''The .NET 9 runtime (dotnet9).'''
|
|
21223
|
+
return typing.cast("Runtime", jsii.sget(cls, "DOTNET_9"))
|
|
21224
|
+
|
|
21217
21225
|
@jsii.python.classproperty
|
|
21218
21226
|
@jsii.member(jsii_name="DOTNET_CORE_1")
|
|
21219
21227
|
def DOTNET_CORE_1(cls) -> "Runtime":
|
aws_cdk/aws_logs/__init__.py
CHANGED
|
@@ -12879,6 +12879,8 @@ class RetentionDays(enum.Enum):
|
|
|
12879
12879
|
retention=logs.RetentionDays.ONE_WEEK
|
|
12880
12880
|
)
|
|
12881
12881
|
)
|
|
12882
|
+
|
|
12883
|
+
api.add_channel_namespace("default")
|
|
12882
12884
|
'''
|
|
12883
12885
|
|
|
12884
12886
|
ONE_DAY = "ONE_DAY"
|