aws-cdk-lib 2.185.0__py3-none-any.whl → 2.187.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.

Files changed (87) hide show
  1. aws_cdk/__init__.py +383 -145
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.185.0.jsii.tgz → aws-cdk-lib@2.187.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +3 -2
  5. aws_cdk/aws_amplify/__init__.py +124 -0
  6. aws_cdk/aws_apigateway/__init__.py +48 -2
  7. aws_cdk/aws_apigatewayv2/__init__.py +9 -0
  8. aws_cdk/aws_appconfig/__init__.py +3 -3
  9. aws_cdk/aws_applicationsignals/__init__.py +363 -3
  10. aws_cdk/aws_appsync/__init__.py +74 -3
  11. aws_cdk/aws_bedrock/__init__.py +395 -14
  12. aws_cdk/aws_cassandra/__init__.py +2 -2
  13. aws_cdk/aws_cleanrooms/__init__.py +21 -9
  14. aws_cdk/aws_cloudformation/__init__.py +1 -5
  15. aws_cdk/aws_cloudfront/__init__.py +15 -1
  16. aws_cdk/aws_cloudfront_origins/__init__.py +4 -2
  17. aws_cdk/aws_cloudtrail/__init__.py +4 -18
  18. aws_cdk/aws_cloudwatch/__init__.py +50 -50
  19. aws_cdk/aws_codeartifact/__init__.py +20 -33
  20. aws_cdk/aws_codebuild/__init__.py +9 -0
  21. aws_cdk/aws_codepipeline/__init__.py +1328 -120
  22. aws_cdk/aws_cognito/__init__.py +1 -1
  23. aws_cdk/aws_cognito_identitypool/__init__.py +2303 -0
  24. aws_cdk/aws_config/__init__.py +2 -5
  25. aws_cdk/aws_connect/__init__.py +3 -7
  26. aws_cdk/aws_controltower/__init__.py +18 -26
  27. aws_cdk/aws_datazone/__init__.py +3540 -10
  28. aws_cdk/aws_detective/__init__.py +3 -3
  29. aws_cdk/aws_dynamodb/__init__.py +37 -0
  30. aws_cdk/aws_ec2/__init__.py +714 -37
  31. aws_cdk/aws_ecr/__init__.py +143 -0
  32. aws_cdk/aws_ecr_assets/__init__.py +115 -4
  33. aws_cdk/aws_ecs/__init__.py +66 -20
  34. aws_cdk/aws_eks/__init__.py +114 -0
  35. aws_cdk/aws_events/__init__.py +26 -6
  36. aws_cdk/aws_forecast/__init__.py +1 -1
  37. aws_cdk/aws_fsx/__init__.py +2 -2
  38. aws_cdk/aws_gamelift/__init__.py +11 -11
  39. aws_cdk/aws_iam/__init__.py +264 -0
  40. aws_cdk/aws_identitystore/__init__.py +16 -16
  41. aws_cdk/aws_imagebuilder/__init__.py +3 -27
  42. aws_cdk/aws_iotsitewise/__init__.py +623 -0
  43. aws_cdk/aws_kinesisfirehose/__init__.py +2 -3
  44. aws_cdk/aws_kms/__init__.py +10 -11
  45. aws_cdk/aws_lakeformation/__init__.py +3 -3
  46. aws_cdk/aws_lambda/__init__.py +112 -5
  47. aws_cdk/aws_lambda_event_sources/__init__.py +65 -3
  48. aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
  49. aws_cdk/aws_lex/__init__.py +981 -5
  50. aws_cdk/aws_location/__init__.py +24 -7
  51. aws_cdk/aws_mediaconnect/__init__.py +714 -290
  52. aws_cdk/aws_msk/__init__.py +8 -2
  53. aws_cdk/aws_mwaa/__init__.py +9 -9
  54. aws_cdk/aws_networkfirewall/__init__.py +60 -12
  55. aws_cdk/aws_oam/__init__.py +8 -37
  56. aws_cdk/aws_omics/__init__.py +216 -0
  57. aws_cdk/aws_quicksight/__init__.py +250 -108
  58. aws_cdk/aws_rds/__init__.py +102 -10
  59. aws_cdk/aws_redshiftserverless/__init__.py +192 -15
  60. aws_cdk/aws_route53/__init__.py +2 -2
  61. aws_cdk/aws_route53recoverycontrol/__init__.py +43 -2
  62. aws_cdk/aws_rum/__init__.py +315 -52
  63. aws_cdk/aws_s3_assets/__init__.py +70 -1
  64. aws_cdk/aws_s3_deployment/__init__.py +4 -0
  65. aws_cdk/aws_sagemaker/__init__.py +6 -4
  66. aws_cdk/aws_scheduler/__init__.py +3944 -121
  67. aws_cdk/aws_scheduler_targets/__init__.py +4460 -0
  68. aws_cdk/aws_securitylake/__init__.py +2 -2
  69. aws_cdk/aws_servicecatalog/__init__.py +4 -0
  70. aws_cdk/aws_sns/__init__.py +1 -1
  71. aws_cdk/aws_ssmquicksetup/__init__.py +5 -3
  72. aws_cdk/aws_stepfunctions/__init__.py +8 -0
  73. aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
  74. aws_cdk/aws_synthetics/__init__.py +9 -0
  75. aws_cdk/aws_systemsmanagersap/__init__.py +150 -0
  76. aws_cdk/aws_timestream/__init__.py +4 -4
  77. aws_cdk/aws_wafv2/__init__.py +1117 -1446
  78. aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
  79. aws_cdk/cloud_assembly_schema/__init__.py +60 -10
  80. aws_cdk/cx_api/__init__.py +38 -0
  81. aws_cdk/pipelines/__init__.py +20 -2
  82. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/METADATA +4 -4
  83. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/RECORD +87 -85
  84. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/WHEEL +1 -1
  85. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/LICENSE +0 -0
  86. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/NOTICE +0 -0
  87. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/top_level.txt +0 -0
@@ -263,7 +263,7 @@ class CfnKeyspace(
263
263
 
264
264
  For more information about multi-Region replication, see `Multi-Region replication <https://docs.aws.amazon.com/keyspaces/latest/devguide/multiRegion-replication.html>`_ in the *Amazon Keyspaces Developer Guide* .
265
265
 
266
- :param region_list: Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
266
+ :param region_list: Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two Regions, including the Region that the keyspace is being created in.
267
267
  :param replication_strategy: The options are:. - ``SINGLE_REGION`` (optional) - ``MULTI_REGION`` If no value is specified, the default is ``SINGLE_REGION`` . If ``MULTI_REGION`` is specified, ``RegionList`` is required.
268
268
 
269
269
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-keyspace-replicationspecification.html
@@ -294,7 +294,7 @@ class CfnKeyspace(
294
294
  def region_list(self) -> typing.Optional[typing.List[builtins.str]]:
295
295
  '''Specifies the AWS Regions that the keyspace is replicated in.
296
296
 
297
- You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
297
+ You must specify at least two Regions, including the Region that the keyspace is being created in.
298
298
 
299
299
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-keyspace-replicationspecification.html#cfn-cassandra-keyspace-replicationspecification-regionlist
300
300
  '''
@@ -855,7 +855,7 @@ class CfnCollaboration(
855
855
  :param description: A description of the collaboration provided by the collaboration owner.
856
856
  :param members: A list of initial members, not including the creator. This list is immutable.
857
857
  :param name: A human-readable identifier provided by the collaboration owner. Display names are not unique.
858
- :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the collaboration.
858
+ :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the collaboration. When ``ENABLED`` , AWS Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is ``DISABLED`` .
859
859
  :param analytics_engine: The analytics engine for the collaboration.
860
860
  :param creator_ml_member_abilities: The ML member abilities for a collaboration member.
861
861
  :param creator_payment_configuration: An object representing the collaboration member's payment responsibilities set by the collaboration creator.
@@ -1815,7 +1815,7 @@ class CfnCollaborationProps:
1815
1815
  :param description: A description of the collaboration provided by the collaboration owner.
1816
1816
  :param members: A list of initial members, not including the creator. This list is immutable.
1817
1817
  :param name: A human-readable identifier provided by the collaboration owner. Display names are not unique.
1818
- :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the collaboration.
1818
+ :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the collaboration. When ``ENABLED`` , AWS Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is ``DISABLED`` .
1819
1819
  :param analytics_engine: The analytics engine for the collaboration.
1820
1820
  :param creator_ml_member_abilities: The ML member abilities for a collaboration member.
1821
1821
  :param creator_payment_configuration: An object representing the collaboration member's payment responsibilities set by the collaboration creator.
@@ -1989,6 +1989,8 @@ class CfnCollaborationProps:
1989
1989
  def query_log_status(self) -> builtins.str:
1990
1990
  '''An indicator as to whether query logging has been enabled or disabled for the collaboration.
1991
1991
 
1992
+ When ``ENABLED`` , AWS Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is ``DISABLED`` .
1993
+
1992
1994
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-collaboration.html#cfn-cleanrooms-collaboration-querylogstatus
1993
1995
  '''
1994
1996
  result = self._values.get("query_log_status")
@@ -2183,7 +2185,7 @@ class CfnConfiguredTable(
2183
2185
  :param scope: Scope in which this resource is defined.
2184
2186
  :param id: Construct identifier for this resource (unique in its scope).
2185
2187
  :param allowed_columns: The columns within the underlying AWS Glue table that can be utilized within collaborations.
2186
- :param analysis_method: The analysis method for the configured table. The only valid value is currently ``DIRECT_QUERY``.
2188
+ :param analysis_method: The analysis method for the configured table. ``DIRECT_QUERY`` allows SQL queries to be run directly on this table. ``DIRECT_JOB`` allows PySpark jobs to be run directly on this table. ``MULTIPLE`` allows both SQL queries and PySpark jobs to be run directly on this table.
2187
2189
  :param name: A name for the configured table.
2188
2190
  :param table_reference: The table that this configured table represents.
2189
2191
  :param analysis_rules: The analysis rule that was created for the configured table.
@@ -3492,9 +3494,13 @@ class CfnConfiguredTable(
3492
3494
  *,
3493
3495
  columns: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnConfiguredTable.DifferentialPrivacyColumnProperty", typing.Dict[builtins.str, typing.Any]]]]],
3494
3496
  ) -> None:
3495
- '''The analysis method for the configured tables.
3497
+ '''The analysis method allowed for the configured tables.
3498
+
3499
+ ``DIRECT_QUERY`` allows SQL queries to be run directly on this table.
3500
+
3501
+ ``DIRECT_JOB`` allows PySpark jobs to be run directly on this table.
3496
3502
 
3497
- The only valid value is currently ``DIRECT_QUERY``.
3503
+ ``MULTIPLE`` allows both SQL queries and PySpark jobs to be run directly on this table.
3498
3504
 
3499
3505
  :param columns: The name of the column, such as user_id, that contains the unique identifier of your users, whose privacy you want to protect. If you want to turn on differential privacy for two or more tables in a collaboration, you must configure the same column as the user identifier column in both analysis rules.
3500
3506
 
@@ -4979,7 +4985,7 @@ class CfnConfiguredTableProps:
4979
4985
  '''Properties for defining a ``CfnConfiguredTable``.
4980
4986
 
4981
4987
  :param allowed_columns: The columns within the underlying AWS Glue table that can be utilized within collaborations.
4982
- :param analysis_method: The analysis method for the configured table. The only valid value is currently ``DIRECT_QUERY``.
4988
+ :param analysis_method: The analysis method for the configured table. ``DIRECT_QUERY`` allows SQL queries to be run directly on this table. ``DIRECT_JOB`` allows PySpark jobs to be run directly on this table. ``MULTIPLE`` allows both SQL queries and PySpark jobs to be run directly on this table.
4983
4989
  :param name: A name for the configured table.
4984
4990
  :param table_reference: The table that this configured table represents.
4985
4991
  :param analysis_rules: The analysis rule that was created for the configured table.
@@ -5118,7 +5124,11 @@ class CfnConfiguredTableProps:
5118
5124
  def analysis_method(self) -> builtins.str:
5119
5125
  '''The analysis method for the configured table.
5120
5126
 
5121
- The only valid value is currently ``DIRECT_QUERY``.
5127
+ ``DIRECT_QUERY`` allows SQL queries to be run directly on this table.
5128
+
5129
+ ``DIRECT_JOB`` allows PySpark jobs to be run directly on this table.
5130
+
5131
+ ``MULTIPLE`` allows both SQL queries and PySpark jobs to be run directly on this table.
5122
5132
 
5123
5133
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysismethod
5124
5134
  '''
@@ -6513,7 +6523,7 @@ class CfnMembership(
6513
6523
  :param scope: Scope in which this resource is defined.
6514
6524
  :param id: Construct identifier for this resource (unique in its scope).
6515
6525
  :param collaboration_identifier: The unique ID for the associated collaboration.
6516
- :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the membership.
6526
+ :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the membership. When ``ENABLED`` , AWS Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is ``DISABLED`` .
6517
6527
  :param default_result_configuration: The default protected query result configuration as specified by the member who can receive results.
6518
6528
  :param payment_configuration: The payment responsibilities accepted by the collaboration member.
6519
6529
  :param tags: An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
@@ -7340,7 +7350,7 @@ class CfnMembershipProps:
7340
7350
  '''Properties for defining a ``CfnMembership``.
7341
7351
 
7342
7352
  :param collaboration_identifier: The unique ID for the associated collaboration.
7343
- :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the membership.
7353
+ :param query_log_status: An indicator as to whether query logging has been enabled or disabled for the membership. When ``ENABLED`` , AWS Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is ``DISABLED`` .
7344
7354
  :param default_result_configuration: The default protected query result configuration as specified by the member who can receive results.
7345
7355
  :param payment_configuration: The payment responsibilities accepted by the collaboration member.
7346
7356
  :param tags: An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
@@ -7427,6 +7437,8 @@ class CfnMembershipProps:
7427
7437
  def query_log_status(self) -> builtins.str:
7428
7438
  '''An indicator as to whether query logging has been enabled or disabled for the membership.
7429
7439
 
7440
+ When ``ENABLED`` , AWS Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is ``DISABLED`` .
7441
+
7430
7442
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-membership.html#cfn-cleanrooms-membership-querylogstatus
7431
7443
  '''
7432
7444
  result = self._values.get("query_log_status")
@@ -6705,7 +6705,7 @@ class CfnStackSet(
6705
6705
  :param max_concurrent_count: The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of ``FailureToleranceCount`` . ``MaxConcurrentCount`` is at most one more than the ``FailureToleranceCount`` . Note that this setting lets you specify the *maximum* for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. Conditional: You must specify either ``MaxConcurrentCount`` or ``MaxConcurrentPercentage`` , but not both.
6706
6706
  :param max_concurrent_percentage: The maximum percentage of accounts in which to perform this operation at one time. When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead. Note that this setting lets you specify the *maximum* for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. Conditional: You must specify either ``MaxConcurrentCount`` or ``MaxConcurrentPercentage`` , but not both.
6707
6707
  :param region_concurrency_type: The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.
6708
- :param region_order: The order of the Regions where you want to perform the stack operation. .. epigraph:: ``RegionOrder`` isn't followed if ``AutoDeployment`` is enabled.
6708
+ :param region_order: The order of the Regions where you want to perform the stack operation.
6709
6709
 
6710
6710
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html
6711
6711
  :exampleMetadata: fixture=_generated
@@ -6837,10 +6837,6 @@ class CfnStackSet(
6837
6837
  def region_order(self) -> typing.Optional[typing.List[builtins.str]]:
6838
6838
  '''The order of the Regions where you want to perform the stack operation.
6839
6839
 
6840
- .. epigraph::
6841
-
6842
- ``RegionOrder`` isn't followed if ``AutoDeployment`` is enabled.
6843
-
6844
6840
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html#cfn-cloudformation-stackset-operationpreferences-regionorder
6845
6841
  '''
6846
6842
  result = self._values.get("region_order")
@@ -2863,7 +2863,10 @@ class CfnAnycastIpList(
2863
2863
  @builtins.property
2864
2864
  @jsii.member(jsii_name="attrAnycastIpList")
2865
2865
  def attr_anycast_ip_list(self) -> _IResolvable_da3f097b:
2866
- '''
2866
+ '''An Anycast static IP list.
2867
+
2868
+ For more information, see `Request Anycast static IPs to use for allowlisting <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/request-static-ips.html>`_ in the *Amazon CloudFront Developer Guide*.
2869
+
2867
2870
  :cloudformationAttribute: AnycastIpList
2868
2871
  '''
2869
2872
  return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrAnycastIpList"))
@@ -19120,6 +19123,7 @@ class ImportSource(
19120
19123
  path: builtins.str,
19121
19124
  *,
19122
19125
  deploy_time: typing.Optional[builtins.bool] = None,
19126
+ display_name: typing.Optional[builtins.str] = None,
19123
19127
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
19124
19128
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
19125
19129
  asset_hash: typing.Optional[builtins.str] = None,
@@ -19133,6 +19137,7 @@ class ImportSource(
19133
19137
 
19134
19138
  :param path: the path to the local file.
19135
19139
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
19140
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. The default is the construct path of the Asset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAsset()``), this will look like ``MyFunction/Code``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
19136
19141
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
19137
19142
  :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
19138
19143
  :param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
@@ -19147,6 +19152,7 @@ class ImportSource(
19147
19152
  check_type(argname="argument path", value=path, expected_type=type_hints["path"])
19148
19153
  options = _AssetOptions_2aa69621(
19149
19154
  deploy_time=deploy_time,
19155
+ display_name=display_name,
19150
19156
  readers=readers,
19151
19157
  source_kms_key=source_kms_key,
19152
19158
  asset_hash=asset_hash,
@@ -19250,6 +19256,7 @@ class InlineImportSource(
19250
19256
  working_directory="workingDirectory"
19251
19257
  ),
19252
19258
  deploy_time=False,
19259
+ display_name="displayName",
19253
19260
  exclude=["exclude"],
19254
19261
  follow_symlinks=cdk.SymlinkFollowMode.NEVER,
19255
19262
  ignore_mode=cdk.IgnoreMode.GLOB,
@@ -23510,6 +23517,7 @@ class S3ImportSource(
23510
23517
  working_directory="workingDirectory"
23511
23518
  ),
23512
23519
  deploy_time=False,
23520
+ display_name="displayName",
23513
23521
  exclude=["exclude"],
23514
23522
  follow_symlinks=cdk.SymlinkFollowMode.NEVER,
23515
23523
  ignore_mode=cdk.IgnoreMode.GLOB,
@@ -25223,6 +25231,7 @@ class AssetImportSource(
25223
25231
  working_directory="workingDirectory"
25224
25232
  ),
25225
25233
  deploy_time=False,
25234
+ display_name="displayName",
25226
25235
  exclude=["exclude"],
25227
25236
  follow_symlinks=cdk.SymlinkFollowMode.NEVER,
25228
25237
  ignore_mode=cdk.IgnoreMode.GLOB,
@@ -25236,6 +25245,7 @@ class AssetImportSource(
25236
25245
  path: builtins.str,
25237
25246
  *,
25238
25247
  deploy_time: typing.Optional[builtins.bool] = None,
25248
+ display_name: typing.Optional[builtins.str] = None,
25239
25249
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
25240
25250
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
25241
25251
  asset_hash: typing.Optional[builtins.str] = None,
@@ -25248,6 +25258,7 @@ class AssetImportSource(
25248
25258
  '''
25249
25259
  :param path: the path to the local file.
25250
25260
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
25261
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. The default is the construct path of the Asset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAsset()``), this will look like ``MyFunction/Code``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
25251
25262
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
25252
25263
  :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
25253
25264
  :param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
@@ -25262,6 +25273,7 @@ class AssetImportSource(
25262
25273
  check_type(argname="argument path", value=path, expected_type=type_hints["path"])
25263
25274
  options = _AssetOptions_2aa69621(
25264
25275
  deploy_time=deploy_time,
25276
+ display_name=display_name,
25265
25277
  readers=readers,
25266
25278
  source_kms_key=source_kms_key,
25267
25279
  asset_hash=asset_hash,
@@ -28821,6 +28833,7 @@ def _typecheckingstub__f5d4750ca4d7703f815ca46be8b91e46ea0b813f42846026dff63e00f
28821
28833
  path: builtins.str,
28822
28834
  *,
28823
28835
  deploy_time: typing.Optional[builtins.bool] = None,
28836
+ display_name: typing.Optional[builtins.str] = None,
28824
28837
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
28825
28838
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
28826
28839
  asset_hash: typing.Optional[builtins.str] = None,
@@ -29493,6 +29506,7 @@ def _typecheckingstub__62441d3d3228ae5fb69aaca12e603944f07f9335dae80f70ce3b04e8e
29493
29506
  path: builtins.str,
29494
29507
  *,
29495
29508
  deploy_time: typing.Optional[builtins.bool] = None,
29509
+ display_name: typing.Optional[builtins.str] = None,
29496
29510
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
29497
29511
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
29498
29512
  asset_hash: typing.Optional[builtins.str] = None,
@@ -678,8 +678,10 @@ You can allow the traffic from the CloudFront managed prefix list named **com.am
678
678
  # alb: elbv2.ApplicationLoadBalancer
679
679
 
680
680
 
681
- peer = ec2.Peer.prefix_list("pl-xxxxxxxx") # See the management console to find actual PrefixList Id.
682
- alb.connections.allow_from(peer, ec2.Port.HTTP)
681
+ cf_origin_facing = ec2.PrefixList.from_lookup(self, "CloudFrontOriginFacing",
682
+ prefix_list_name="com.amazonaws.global.cloudfront.origin-facing"
683
+ )
684
+ alb.connections.allow_from(ec2.Peer.prefix_list(cf_origin_facing.prefix_list_id), ec2.Port.HTTP)
683
685
  ```
684
686
 
685
687
  #### The VPC origin service security group
@@ -1980,7 +1980,7 @@ class CfnEventDataStore(
1980
1980
  ) -> None:
1981
1981
  '''A single selector statement in an advanced event selector.
1982
1982
 
1983
- :param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. The following are valid values for network activity events: - ``cloudtrail.amazonaws.com`` - ``ec2.amazonaws.com`` - ``kms.amazonaws.com`` - ``s3.amazonaws.com`` - ``secretsmanager.amazonaws.com`` - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For more information about the ARN formats of data event resources, see `Actions, resources, and condition keys for AWS services <https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html>`_ in the *Service Authorization Reference* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
1983
+ :param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. For a list of services supporting network activity events, see `Logging network activity events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html>`_ in the *AWS CloudTrail User Guide* . - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For more information about the ARN formats of data event resources, see `Actions, resources, and condition keys for AWS services <https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html>`_ in the *Service Authorization Reference* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
1984
1984
  :param ends_with: An operator that includes events that match the last few characters of the event record field specified as the value of ``Field`` .
1985
1985
  :param equal_to: An operator that includes events that match the exact value of the event record field specified as the value of ``Field`` . This is the only valid operator that you can use with the ``readOnly`` , ``eventCategory`` , and ``resources.type`` fields.
1986
1986
  :param not_ends_with: An operator that excludes events that match the last few characters of the event record field specified as the value of ``Field`` .
@@ -2058,15 +2058,8 @@ class CfnEventDataStore(
2058
2058
 
2059
2059
  For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator.
2060
2060
 
2061
- For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source.
2061
+ For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. For a list of services supporting network activity events, see `Logging network activity events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html>`_ in the *AWS CloudTrail User Guide* .
2062
2062
 
2063
- The following are valid values for network activity events:
2064
-
2065
- - ``cloudtrail.amazonaws.com``
2066
- - ``ec2.amazonaws.com``
2067
- - ``kms.amazonaws.com``
2068
- - ``s3.amazonaws.com``
2069
- - ``secretsmanager.amazonaws.com``
2070
2063
  - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas.
2071
2064
  - *``eventCategory``* - This field is required and must be set to ``Equals`` .
2072
2065
  - For CloudTrail management events, the value must be ``Management`` .
@@ -3386,7 +3379,7 @@ class CfnTrail(
3386
3379
  ) -> None:
3387
3380
  '''A single selector statement in an advanced event selector.
3388
3381
 
3389
- :param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. The following are valid values for network activity events: - ``cloudtrail.amazonaws.com`` - ``ec2.amazonaws.com`` - ``kms.amazonaws.com`` - ``s3.amazonaws.com`` - ``secretsmanager.amazonaws.com`` - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For more information about the ARN formats of data event resources, see `Actions, resources, and condition keys for AWS services <https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html>`_ in the *Service Authorization Reference* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
3382
+ :param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. For a list of services supporting network activity events, see `Logging network activity events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html>`_ in the *AWS CloudTrail User Guide* . - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For more information about the ARN formats of data event resources, see `Actions, resources, and condition keys for AWS services <https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html>`_ in the *Service Authorization Reference* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
3390
3383
  :param ends_with: An operator that includes events that match the last few characters of the event record field specified as the value of ``Field`` .
3391
3384
  :param equal_to: An operator that includes events that match the exact value of the event record field specified as the value of ``Field`` . This is the only valid operator that you can use with the ``readOnly`` , ``eventCategory`` , and ``resources.type`` fields.
3392
3385
  :param not_ends_with: An operator that excludes events that match the last few characters of the event record field specified as the value of ``Field`` .
@@ -3464,15 +3457,8 @@ class CfnTrail(
3464
3457
 
3465
3458
  For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator.
3466
3459
 
3467
- For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source.
3468
-
3469
- The following are valid values for network activity events:
3460
+ For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. For a list of services supporting network activity events, see `Logging network activity events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html>`_ in the *AWS CloudTrail User Guide* .
3470
3461
 
3471
- - ``cloudtrail.amazonaws.com``
3472
- - ``ec2.amazonaws.com``
3473
- - ``kms.amazonaws.com``
3474
- - ``s3.amazonaws.com``
3475
- - ``secretsmanager.amazonaws.com``
3476
3462
  - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas.
3477
3463
  - *``eventCategory``* - This field is required and must be set to ``Equals`` .
3478
3464
  - For CloudTrail management events, the value must be ``Management`` .
@@ -10847,23 +10847,19 @@ class Statistic(enum.Enum):
10847
10847
 
10848
10848
  Example::
10849
10849
 
10850
- import aws_cdk.aws_cloudwatch as cloudwatch
10851
-
10852
- # delivery_stream: firehose.DeliveryStream
10853
-
10850
+ # matchmaking_rule_set: gamelift.MatchmakingRuleSet
10854
10851
 
10855
- # Alarm that triggers when the per-second average of incoming bytes exceeds 90% of the current service limit
10856
- incoming_bytes_percent_of_limit = cloudwatch.MathExpression(
10857
- expression="incomingBytes / 300 / bytePerSecLimit",
10852
+ # Alarm that triggers when the per-second average of not placed matches exceed 10%
10853
+ rule_evaluation_ratio = cloudwatch.MathExpression(
10854
+ expression="1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)",
10858
10855
  using_metrics={
10859
- "incoming_bytes": delivery_stream.metric_incoming_bytes(statistic=cloudwatch.Statistic.SUM),
10860
- "byte_per_sec_limit": delivery_stream.metric("BytesPerSecondLimit")
10856
+ "rule_evaluations_passed": matchmaking_rule_set.metric_rule_evaluations_passed(statistic=cloudwatch.Statistic.SUM),
10857
+ "rule_evaluations_failed": matchmaking_rule_set.metric("ruleEvaluationsFailed")
10861
10858
  }
10862
10859
  )
10863
-
10864
10860
  cloudwatch.Alarm(self, "Alarm",
10865
- metric=incoming_bytes_percent_of_limit,
10866
- threshold=0.9,
10861
+ metric=rule_evaluation_ratio,
10862
+ threshold=0.1,
10867
10863
  evaluation_periods=3
10868
10864
  )
10869
10865
  '''
@@ -12594,29 +12590,31 @@ class AlarmProps(CreateAlarmOptions):
12594
12590
 
12595
12591
  Example::
12596
12592
 
12597
- # log_group: logs.LogGroup
12593
+ import aws_cdk.aws_cloudwatch as cloudwatch
12598
12594
 
12599
- mf = logs.MetricFilter(self, "MetricFilter",
12600
- log_group=log_group,
12601
- metric_namespace="MyApp",
12602
- metric_name="Latency",
12603
- filter_pattern=logs.FilterPattern.exists("$.latency"),
12604
- metric_value="$.latency",
12605
- dimensions={
12606
- "ErrorCode": "$.errorCode"
12607
- },
12608
- unit=cloudwatch.Unit.MILLISECONDS
12609
- )
12595
+ # alias: lambda.Alias
12610
12596
 
12611
- # expose a metric from the metric filter
12612
- metric = mf.metric()
12597
+ # or add alarms to an existing group
12598
+ # blue_green_alias: lambda.Alias
12613
12599
 
12614
- # you can use the metric to create a new alarm
12615
- cloudwatch.Alarm(self, "alarm from metric filter",
12616
- metric=metric,
12617
- threshold=100,
12618
- evaluation_periods=2
12600
+ alarm = cloudwatch.Alarm(self, "Errors",
12601
+ comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
12602
+ threshold=1,
12603
+ evaluation_periods=1,
12604
+ metric=alias.metric_errors()
12619
12605
  )
12606
+ deployment_group = codedeploy.LambdaDeploymentGroup(self, "BlueGreenDeployment",
12607
+ alias=alias,
12608
+ deployment_config=codedeploy.LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE,
12609
+ alarms=[alarm
12610
+ ]
12611
+ )
12612
+ deployment_group.add_alarm(cloudwatch.Alarm(self, "BlueGreenErrors",
12613
+ comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
12614
+ threshold=1,
12615
+ evaluation_periods=1,
12616
+ metric=blue_green_alias.metric_errors()
12617
+ ))
12620
12618
  '''
12621
12619
  if __debug__:
12622
12620
  type_hints = typing.get_type_hints(_typecheckingstub__b2e7c873c118fbc1f6cf26e1bb5bd3d8549040c626a6450f2d686bb07b87266b)
@@ -14861,29 +14859,31 @@ class Alarm(
14861
14859
 
14862
14860
  Example::
14863
14861
 
14864
- # log_group: logs.LogGroup
14862
+ import aws_cdk.aws_cloudwatch as cloudwatch
14865
14863
 
14866
- mf = logs.MetricFilter(self, "MetricFilter",
14867
- log_group=log_group,
14868
- metric_namespace="MyApp",
14869
- metric_name="Latency",
14870
- filter_pattern=logs.FilterPattern.exists("$.latency"),
14871
- metric_value="$.latency",
14872
- dimensions={
14873
- "ErrorCode": "$.errorCode"
14874
- },
14875
- unit=cloudwatch.Unit.MILLISECONDS
14876
- )
14864
+ # alias: lambda.Alias
14877
14865
 
14878
- # expose a metric from the metric filter
14879
- metric = mf.metric()
14866
+ # or add alarms to an existing group
14867
+ # blue_green_alias: lambda.Alias
14880
14868
 
14881
- # you can use the metric to create a new alarm
14882
- cloudwatch.Alarm(self, "alarm from metric filter",
14883
- metric=metric,
14884
- threshold=100,
14885
- evaluation_periods=2
14869
+ alarm = cloudwatch.Alarm(self, "Errors",
14870
+ comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
14871
+ threshold=1,
14872
+ evaluation_periods=1,
14873
+ metric=alias.metric_errors()
14874
+ )
14875
+ deployment_group = codedeploy.LambdaDeploymentGroup(self, "BlueGreenDeployment",
14876
+ alias=alias,
14877
+ deployment_config=codedeploy.LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE,
14878
+ alarms=[alarm
14879
+ ]
14886
14880
  )
14881
+ deployment_group.add_alarm(cloudwatch.Alarm(self, "BlueGreenErrors",
14882
+ comparison_operator=cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD,
14883
+ threshold=1,
14884
+ evaluation_periods=1,
14885
+ metric=blue_green_alias.metric_errors()
14886
+ ))
14887
14887
  '''
14888
14888
 
14889
14889
  def __init__(