aws-cdk-lib 2.185.0__py3-none-any.whl → 2.186.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 (49) hide show
  1. aws_cdk/__init__.py +102 -29
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.185.0.jsii.tgz → aws-cdk-lib@2.186.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +3 -2
  5. aws_cdk/aws_apigatewayv2/__init__.py +9 -0
  6. aws_cdk/aws_appconfig/__init__.py +3 -3
  7. aws_cdk/aws_applicationsignals/__init__.py +363 -3
  8. aws_cdk/aws_appsync/__init__.py +65 -3
  9. aws_cdk/aws_bedrock/__init__.py +385 -14
  10. aws_cdk/aws_cleanrooms/__init__.py +21 -9
  11. aws_cdk/aws_cloudformation/__init__.py +1 -5
  12. aws_cdk/aws_cloudfront/__init__.py +4 -1
  13. aws_cdk/aws_cloudfront_origins/__init__.py +4 -2
  14. aws_cdk/aws_codeartifact/__init__.py +20 -33
  15. aws_cdk/aws_codepipeline/__init__.py +1328 -120
  16. aws_cdk/aws_cognito/__init__.py +1 -1
  17. aws_cdk/aws_cognito_identitypool/__init__.py +2303 -0
  18. aws_cdk/aws_connect/__init__.py +3 -7
  19. aws_cdk/aws_controltower/__init__.py +18 -26
  20. aws_cdk/aws_datazone/__init__.py +3471 -2
  21. aws_cdk/aws_ec2/__init__.py +560 -25
  22. aws_cdk/aws_ecs/__init__.py +15 -20
  23. aws_cdk/aws_events/__init__.py +37 -14
  24. aws_cdk/aws_gamelift/__init__.py +5 -5
  25. aws_cdk/aws_iam/__init__.py +264 -0
  26. aws_cdk/aws_imagebuilder/__init__.py +3 -27
  27. aws_cdk/aws_kinesisfirehose/__init__.py +2 -3
  28. aws_cdk/aws_lambda/__init__.py +7 -1
  29. aws_cdk/aws_location/__init__.py +24 -7
  30. aws_cdk/aws_msk/__init__.py +8 -2
  31. aws_cdk/aws_networkfirewall/__init__.py +16 -12
  32. aws_cdk/aws_oam/__init__.py +8 -37
  33. aws_cdk/aws_quicksight/__init__.py +6 -69
  34. aws_cdk/aws_redshiftserverless/__init__.py +192 -15
  35. aws_cdk/aws_rum/__init__.py +315 -52
  36. aws_cdk/aws_scheduler/__init__.py +3944 -121
  37. aws_cdk/aws_scheduler_targets/__init__.py +4472 -0
  38. aws_cdk/aws_ssmquicksetup/__init__.py +5 -3
  39. aws_cdk/aws_stepfunctions/__init__.py +17 -15
  40. aws_cdk/aws_timestream/__init__.py +4 -4
  41. aws_cdk/aws_wafv2/__init__.py +345 -0
  42. aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
  43. aws_cdk/cx_api/__init__.py +23 -0
  44. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/METADATA +1 -1
  45. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/RECORD +49 -47
  46. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/LICENSE +0 -0
  47. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/NOTICE +0 -0
  48. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/WHEEL +0 -0
  49. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/top_level.txt +0 -0
@@ -92,7 +92,6 @@ class CfnAppMonitor(
92
92
  from aws_cdk import aws_rum as rum
93
93
 
94
94
  cfn_app_monitor = rum.CfnAppMonitor(self, "MyCfnAppMonitor",
95
- domain="domain",
96
95
  name="name",
97
96
 
98
97
  # the properties below are optional
@@ -130,6 +129,16 @@ class CfnAppMonitor(
130
129
  status="status"
131
130
  ),
132
131
  cw_log_enabled=False,
132
+ deobfuscation_configuration=rum.CfnAppMonitor.DeobfuscationConfigurationProperty(
133
+ java_script_source_maps=rum.CfnAppMonitor.JavaScriptSourceMapsProperty(
134
+ status="status",
135
+
136
+ # the properties below are optional
137
+ s3_uri="s3Uri"
138
+ )
139
+ ),
140
+ domain="domain",
141
+ domain_list=["domainList"],
133
142
  resource_policy=rum.CfnAppMonitor.ResourcePolicyProperty(
134
143
  policy_document="policyDocument",
135
144
 
@@ -148,23 +157,27 @@ class CfnAppMonitor(
148
157
  scope: _constructs_77d1e7e8.Construct,
149
158
  id: builtins.str,
150
159
  *,
151
- domain: builtins.str,
152
160
  name: builtins.str,
153
161
  app_monitor_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAppMonitor.AppMonitorConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
154
162
  custom_events: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAppMonitor.CustomEventsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
155
163
  cw_log_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
164
+ deobfuscation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAppMonitor.DeobfuscationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
165
+ domain: typing.Optional[builtins.str] = None,
166
+ domain_list: typing.Optional[typing.Sequence[builtins.str]] = None,
156
167
  resource_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAppMonitor.ResourcePolicyProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
157
168
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
158
169
  ) -> None:
159
170
  '''
160
171
  :param scope: Scope in which this resource is defined.
161
172
  :param id: Construct identifier for this resource (unique in its scope).
162
- :param domain: The top-level internet domain name for which your application has administrative authority. This parameter is required.
163
173
  :param name: A name for the app monitor. This parameter is required.
164
174
  :param app_monitor_configuration: A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include ``AppMonitorConfiguration`` , you must set up your own authorization method. For more information, see `Authorize your application to send data to AWS <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html>`_ . If you omit this argument, the sample rate used for CloudWatch RUM is set to 10% of the user sessions.
165
175
  :param custom_events: Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are ``DISABLED`` .
166
176
  :param cw_log_enabled: Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether CloudWatch RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. If you omit this parameter, the default is ``false`` .
167
- :param resource_policy: A structure that defines resource policy attached to your app monitor.
177
+ :param deobfuscation_configuration: A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
178
+ :param domain: The top-level internet domain name for which your application has administrative authority. This parameter is required.
179
+ :param domain_list: The top-level internet domain names for which your application has administrative authority. The CreateAppMonitor requires either the domain or the domain list.
180
+ :param resource_policy: Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see `Using resource-based policies with CloudWatch RUM <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html>`_ .
168
181
  :param tags: Assigns one or more tags (key-value pairs) to the app monitor. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters. You can associate as many as 50 tags with an app monitor. For more information, see `Tagging AWS resources <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`_ .
169
182
  '''
170
183
  if __debug__:
@@ -172,11 +185,13 @@ class CfnAppMonitor(
172
185
  check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
173
186
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
174
187
  props = CfnAppMonitorProps(
175
- domain=domain,
176
188
  name=name,
177
189
  app_monitor_configuration=app_monitor_configuration,
178
190
  custom_events=custom_events,
179
191
  cw_log_enabled=cw_log_enabled,
192
+ deobfuscation_configuration=deobfuscation_configuration,
193
+ domain=domain,
194
+ domain_list=domain_list,
180
195
  resource_policy=resource_policy,
181
196
  tags=tags,
182
197
  )
@@ -233,19 +248,6 @@ class CfnAppMonitor(
233
248
  '''Tag Manager which manages the tags for this resource.'''
234
249
  return typing.cast(_TagManager_0a598cb3, jsii.get(self, "tags"))
235
250
 
236
- @builtins.property
237
- @jsii.member(jsii_name="domain")
238
- def domain(self) -> builtins.str:
239
- '''The top-level internet domain name for which your application has administrative authority.'''
240
- return typing.cast(builtins.str, jsii.get(self, "domain"))
241
-
242
- @domain.setter
243
- def domain(self, value: builtins.str) -> None:
244
- if __debug__:
245
- type_hints = typing.get_type_hints(_typecheckingstub__0456aa4886c478c5fc3157398096bfee936719f2df864f6df5d0d99dfb18c0a6)
246
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
247
- jsii.set(self, "domain", value) # pyright: ignore[reportArgumentType]
248
-
249
251
  @builtins.property
250
252
  @jsii.member(jsii_name="name")
251
253
  def name(self) -> builtins.str:
@@ -313,12 +315,56 @@ class CfnAppMonitor(
313
315
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
314
316
  jsii.set(self, "cwLogEnabled", value) # pyright: ignore[reportArgumentType]
315
317
 
318
+ @builtins.property
319
+ @jsii.member(jsii_name="deobfuscationConfiguration")
320
+ def deobfuscation_configuration(
321
+ self,
322
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAppMonitor.DeobfuscationConfigurationProperty"]]:
323
+ '''A structure that contains the configuration for how an app monitor can deobfuscate stack traces.'''
324
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAppMonitor.DeobfuscationConfigurationProperty"]], jsii.get(self, "deobfuscationConfiguration"))
325
+
326
+ @deobfuscation_configuration.setter
327
+ def deobfuscation_configuration(
328
+ self,
329
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAppMonitor.DeobfuscationConfigurationProperty"]],
330
+ ) -> None:
331
+ if __debug__:
332
+ type_hints = typing.get_type_hints(_typecheckingstub__9f2d704d10058b4d7b134a686b042efc84971acf09b892129589706da314ce17)
333
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
334
+ jsii.set(self, "deobfuscationConfiguration", value) # pyright: ignore[reportArgumentType]
335
+
336
+ @builtins.property
337
+ @jsii.member(jsii_name="domain")
338
+ def domain(self) -> typing.Optional[builtins.str]:
339
+ '''The top-level internet domain name for which your application has administrative authority.'''
340
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "domain"))
341
+
342
+ @domain.setter
343
+ def domain(self, value: typing.Optional[builtins.str]) -> None:
344
+ if __debug__:
345
+ type_hints = typing.get_type_hints(_typecheckingstub__0456aa4886c478c5fc3157398096bfee936719f2df864f6df5d0d99dfb18c0a6)
346
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
347
+ jsii.set(self, "domain", value) # pyright: ignore[reportArgumentType]
348
+
349
+ @builtins.property
350
+ @jsii.member(jsii_name="domainList")
351
+ def domain_list(self) -> typing.Optional[typing.List[builtins.str]]:
352
+ '''The top-level internet domain names for which your application has administrative authority.'''
353
+ return typing.cast(typing.Optional[typing.List[builtins.str]], jsii.get(self, "domainList"))
354
+
355
+ @domain_list.setter
356
+ def domain_list(self, value: typing.Optional[typing.List[builtins.str]]) -> None:
357
+ if __debug__:
358
+ type_hints = typing.get_type_hints(_typecheckingstub__0f86b0a9a53fb7afe4df111651fb954ae88b1fcdc7037dc764fa0b071918819c)
359
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
360
+ jsii.set(self, "domainList", value) # pyright: ignore[reportArgumentType]
361
+
316
362
  @builtins.property
317
363
  @jsii.member(jsii_name="resourcePolicy")
318
364
  def resource_policy(
319
365
  self,
320
366
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAppMonitor.ResourcePolicyProperty"]]:
321
- '''A structure that defines resource policy attached to your app monitor.'''
367
+ '''Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.'''
322
368
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAppMonitor.ResourcePolicyProperty"]], jsii.get(self, "resourcePolicy"))
323
369
 
324
370
  @resource_policy.setter
@@ -640,6 +686,145 @@ class CfnAppMonitor(
640
686
  k + "=" + repr(v) for k, v in self._values.items()
641
687
  )
642
688
 
689
+ @jsii.data_type(
690
+ jsii_type="aws-cdk-lib.aws_rum.CfnAppMonitor.DeobfuscationConfigurationProperty",
691
+ jsii_struct_bases=[],
692
+ name_mapping={"java_script_source_maps": "javaScriptSourceMaps"},
693
+ )
694
+ class DeobfuscationConfigurationProperty:
695
+ def __init__(
696
+ self,
697
+ *,
698
+ java_script_source_maps: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAppMonitor.JavaScriptSourceMapsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
699
+ ) -> None:
700
+ '''A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
701
+
702
+ :param java_script_source_maps: A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.
703
+
704
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-deobfuscationconfiguration.html
705
+ :exampleMetadata: fixture=_generated
706
+
707
+ Example::
708
+
709
+ # The code below shows an example of how to instantiate this type.
710
+ # The values are placeholders you should change.
711
+ from aws_cdk import aws_rum as rum
712
+
713
+ deobfuscation_configuration_property = rum.CfnAppMonitor.DeobfuscationConfigurationProperty(
714
+ java_script_source_maps=rum.CfnAppMonitor.JavaScriptSourceMapsProperty(
715
+ status="status",
716
+
717
+ # the properties below are optional
718
+ s3_uri="s3Uri"
719
+ )
720
+ )
721
+ '''
722
+ if __debug__:
723
+ type_hints = typing.get_type_hints(_typecheckingstub__fdf3e214c72bb6242e27105dcba552227c63b454a171ca355bccf1321a0906ad)
724
+ check_type(argname="argument java_script_source_maps", value=java_script_source_maps, expected_type=type_hints["java_script_source_maps"])
725
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
726
+ if java_script_source_maps is not None:
727
+ self._values["java_script_source_maps"] = java_script_source_maps
728
+
729
+ @builtins.property
730
+ def java_script_source_maps(
731
+ self,
732
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAppMonitor.JavaScriptSourceMapsProperty"]]:
733
+ '''A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.
734
+
735
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-deobfuscationconfiguration.html#cfn-rum-appmonitor-deobfuscationconfiguration-javascriptsourcemaps
736
+ '''
737
+ result = self._values.get("java_script_source_maps")
738
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAppMonitor.JavaScriptSourceMapsProperty"]], result)
739
+
740
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
741
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
742
+
743
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
744
+ return not (rhs == self)
745
+
746
+ def __repr__(self) -> str:
747
+ return "DeobfuscationConfigurationProperty(%s)" % ", ".join(
748
+ k + "=" + repr(v) for k, v in self._values.items()
749
+ )
750
+
751
+ @jsii.data_type(
752
+ jsii_type="aws-cdk-lib.aws_rum.CfnAppMonitor.JavaScriptSourceMapsProperty",
753
+ jsii_struct_bases=[],
754
+ name_mapping={"status": "status", "s3_uri": "s3Uri"},
755
+ )
756
+ class JavaScriptSourceMapsProperty:
757
+ def __init__(
758
+ self,
759
+ *,
760
+ status: builtins.str,
761
+ s3_uri: typing.Optional[builtins.str] = None,
762
+ ) -> None:
763
+ '''A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.
764
+
765
+ :param status: Specifies whether JavaScript error stack traces should be unminified for this app monitor. The default is for JavaScript error stack trace unminification to be DISABLED
766
+ :param s3_uri: The S3Uri of the bucket or folder that stores the source map files. It is required if status is ENABLED.
767
+
768
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-javascriptsourcemaps.html
769
+ :exampleMetadata: fixture=_generated
770
+
771
+ Example::
772
+
773
+ # The code below shows an example of how to instantiate this type.
774
+ # The values are placeholders you should change.
775
+ from aws_cdk import aws_rum as rum
776
+
777
+ java_script_source_maps_property = rum.CfnAppMonitor.JavaScriptSourceMapsProperty(
778
+ status="status",
779
+
780
+ # the properties below are optional
781
+ s3_uri="s3Uri"
782
+ )
783
+ '''
784
+ if __debug__:
785
+ type_hints = typing.get_type_hints(_typecheckingstub__78c04a50ef32713cea26d41602085c025ced86700aa160ec7d04d54d4b8e133d)
786
+ check_type(argname="argument status", value=status, expected_type=type_hints["status"])
787
+ check_type(argname="argument s3_uri", value=s3_uri, expected_type=type_hints["s3_uri"])
788
+ self._values: typing.Dict[builtins.str, typing.Any] = {
789
+ "status": status,
790
+ }
791
+ if s3_uri is not None:
792
+ self._values["s3_uri"] = s3_uri
793
+
794
+ @builtins.property
795
+ def status(self) -> builtins.str:
796
+ '''Specifies whether JavaScript error stack traces should be unminified for this app monitor.
797
+
798
+ The default is for JavaScript error stack trace unminification to be DISABLED
799
+
800
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-javascriptsourcemaps.html#cfn-rum-appmonitor-javascriptsourcemaps-status
801
+ '''
802
+ result = self._values.get("status")
803
+ assert result is not None, "Required property 'status' is missing"
804
+ return typing.cast(builtins.str, result)
805
+
806
+ @builtins.property
807
+ def s3_uri(self) -> typing.Optional[builtins.str]:
808
+ '''The S3Uri of the bucket or folder that stores the source map files.
809
+
810
+ It is required if status is ENABLED.
811
+
812
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-javascriptsourcemaps.html#cfn-rum-appmonitor-javascriptsourcemaps-s3uri
813
+ '''
814
+ result = self._values.get("s3_uri")
815
+ return typing.cast(typing.Optional[builtins.str], result)
816
+
817
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
818
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
819
+
820
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
821
+ return not (rhs == self)
822
+
823
+ def __repr__(self) -> str:
824
+ return "JavaScriptSourceMapsProperty(%s)" % ", ".join(
825
+ k + "=" + repr(v) for k, v in self._values.items()
826
+ )
827
+
643
828
  @jsii.data_type(
644
829
  jsii_type="aws-cdk-lib.aws_rum.CfnAppMonitor.MetricDefinitionProperty",
645
830
  jsii_struct_bases=[],
@@ -961,10 +1146,12 @@ class CfnAppMonitor(
961
1146
  policy_document: builtins.str,
962
1147
  policy_revision_id: typing.Optional[builtins.str] = None,
963
1148
  ) -> None:
964
- '''A structure that defines resource policy attached to your app monitor.
1149
+ '''Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.
965
1150
 
966
- :param policy_document: The JSON to use as the resource policy. The document can be up to 4 KB in size.
967
- :param policy_revision_id: A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you assign a policy revision ID, then later requests about that policy will be rejected with an InvalidPolicyRevisionIdException error if they don't provide the correct current revision ID.
1151
+ Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see `Using resource-based policies with CloudWatch RUM <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html>`_ .
1152
+
1153
+ :param policy_document: The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see `Using resource-based policies with CloudWatch RUM <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html>`_ .
1154
+ :param policy_revision_id: A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you assign a policy revision ID, then later requests about that policy will be rejected with an ``InvalidPolicyRevisionIdException`` error if they don't provide the correct current revision ID.
968
1155
 
969
1156
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-resourcepolicy.html
970
1157
  :exampleMetadata: fixture=_generated
@@ -996,7 +1183,7 @@ class CfnAppMonitor(
996
1183
  def policy_document(self) -> builtins.str:
997
1184
  '''The JSON to use as the resource policy.
998
1185
 
999
- The document can be up to 4 KB in size.
1186
+ The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see `Using resource-based policies with CloudWatch RUM <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html>`_ .
1000
1187
 
1001
1188
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-resourcepolicy.html#cfn-rum-appmonitor-resourcepolicy-policydocument
1002
1189
  '''
@@ -1010,7 +1197,7 @@ class CfnAppMonitor(
1010
1197
 
1011
1198
  You can provide the revision ID of your existing policy to make mutating requests against that policy.
1012
1199
 
1013
- When you assign a policy revision ID, then later requests about that policy will be rejected with an InvalidPolicyRevisionIdException error if they don't provide the correct current revision ID.
1200
+ When you assign a policy revision ID, then later requests about that policy will be rejected with an ``InvalidPolicyRevisionIdException`` error if they don't provide the correct current revision ID.
1014
1201
 
1015
1202
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-resourcepolicy.html#cfn-rum-appmonitor-resourcepolicy-policyrevisionid
1016
1203
  '''
@@ -1033,11 +1220,13 @@ class CfnAppMonitor(
1033
1220
  jsii_type="aws-cdk-lib.aws_rum.CfnAppMonitorProps",
1034
1221
  jsii_struct_bases=[],
1035
1222
  name_mapping={
1036
- "domain": "domain",
1037
1223
  "name": "name",
1038
1224
  "app_monitor_configuration": "appMonitorConfiguration",
1039
1225
  "custom_events": "customEvents",
1040
1226
  "cw_log_enabled": "cwLogEnabled",
1227
+ "deobfuscation_configuration": "deobfuscationConfiguration",
1228
+ "domain": "domain",
1229
+ "domain_list": "domainList",
1041
1230
  "resource_policy": "resourcePolicy",
1042
1231
  "tags": "tags",
1043
1232
  },
@@ -1046,22 +1235,26 @@ class CfnAppMonitorProps:
1046
1235
  def __init__(
1047
1236
  self,
1048
1237
  *,
1049
- domain: builtins.str,
1050
1238
  name: builtins.str,
1051
1239
  app_monitor_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.AppMonitorConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1052
1240
  custom_events: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.CustomEventsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1053
1241
  cw_log_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1242
+ deobfuscation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.DeobfuscationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1243
+ domain: typing.Optional[builtins.str] = None,
1244
+ domain_list: typing.Optional[typing.Sequence[builtins.str]] = None,
1054
1245
  resource_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.ResourcePolicyProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1055
1246
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1056
1247
  ) -> None:
1057
1248
  '''Properties for defining a ``CfnAppMonitor``.
1058
1249
 
1059
- :param domain: The top-level internet domain name for which your application has administrative authority. This parameter is required.
1060
1250
  :param name: A name for the app monitor. This parameter is required.
1061
1251
  :param app_monitor_configuration: A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include ``AppMonitorConfiguration`` , you must set up your own authorization method. For more information, see `Authorize your application to send data to AWS <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html>`_ . If you omit this argument, the sample rate used for CloudWatch RUM is set to 10% of the user sessions.
1062
1252
  :param custom_events: Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are ``DISABLED`` .
1063
1253
  :param cw_log_enabled: Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether CloudWatch RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. If you omit this parameter, the default is ``false`` .
1064
- :param resource_policy: A structure that defines resource policy attached to your app monitor.
1254
+ :param deobfuscation_configuration: A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
1255
+ :param domain: The top-level internet domain name for which your application has administrative authority. This parameter is required.
1256
+ :param domain_list: The top-level internet domain names for which your application has administrative authority. The CreateAppMonitor requires either the domain or the domain list.
1257
+ :param resource_policy: Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see `Using resource-based policies with CloudWatch RUM <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html>`_ .
1065
1258
  :param tags: Assigns one or more tags (key-value pairs) to the app monitor. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters. You can associate as many as 50 tags with an app monitor. For more information, see `Tagging AWS resources <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`_ .
1066
1259
 
1067
1260
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html
@@ -1074,7 +1267,6 @@ class CfnAppMonitorProps:
1074
1267
  from aws_cdk import aws_rum as rum
1075
1268
 
1076
1269
  cfn_app_monitor_props = rum.CfnAppMonitorProps(
1077
- domain="domain",
1078
1270
  name="name",
1079
1271
 
1080
1272
  # the properties below are optional
@@ -1112,6 +1304,16 @@ class CfnAppMonitorProps:
1112
1304
  status="status"
1113
1305
  ),
1114
1306
  cw_log_enabled=False,
1307
+ deobfuscation_configuration=rum.CfnAppMonitor.DeobfuscationConfigurationProperty(
1308
+ java_script_source_maps=rum.CfnAppMonitor.JavaScriptSourceMapsProperty(
1309
+ status="status",
1310
+
1311
+ # the properties below are optional
1312
+ s3_uri="s3Uri"
1313
+ )
1314
+ ),
1315
+ domain="domain",
1316
+ domain_list=["domainList"],
1115
1317
  resource_policy=rum.CfnAppMonitor.ResourcePolicyProperty(
1116
1318
  policy_document="policyDocument",
1117
1319
 
@@ -1126,15 +1328,16 @@ class CfnAppMonitorProps:
1126
1328
  '''
1127
1329
  if __debug__:
1128
1330
  type_hints = typing.get_type_hints(_typecheckingstub__2caf0433822b63bd4f9fca8828d4497f8e2d6471cd21d40d16fd3657ddb662f5)
1129
- check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
1130
1331
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
1131
1332
  check_type(argname="argument app_monitor_configuration", value=app_monitor_configuration, expected_type=type_hints["app_monitor_configuration"])
1132
1333
  check_type(argname="argument custom_events", value=custom_events, expected_type=type_hints["custom_events"])
1133
1334
  check_type(argname="argument cw_log_enabled", value=cw_log_enabled, expected_type=type_hints["cw_log_enabled"])
1335
+ check_type(argname="argument deobfuscation_configuration", value=deobfuscation_configuration, expected_type=type_hints["deobfuscation_configuration"])
1336
+ check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
1337
+ check_type(argname="argument domain_list", value=domain_list, expected_type=type_hints["domain_list"])
1134
1338
  check_type(argname="argument resource_policy", value=resource_policy, expected_type=type_hints["resource_policy"])
1135
1339
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
1136
1340
  self._values: typing.Dict[builtins.str, typing.Any] = {
1137
- "domain": domain,
1138
1341
  "name": name,
1139
1342
  }
1140
1343
  if app_monitor_configuration is not None:
@@ -1143,23 +1346,17 @@ class CfnAppMonitorProps:
1143
1346
  self._values["custom_events"] = custom_events
1144
1347
  if cw_log_enabled is not None:
1145
1348
  self._values["cw_log_enabled"] = cw_log_enabled
1349
+ if deobfuscation_configuration is not None:
1350
+ self._values["deobfuscation_configuration"] = deobfuscation_configuration
1351
+ if domain is not None:
1352
+ self._values["domain"] = domain
1353
+ if domain_list is not None:
1354
+ self._values["domain_list"] = domain_list
1146
1355
  if resource_policy is not None:
1147
1356
  self._values["resource_policy"] = resource_policy
1148
1357
  if tags is not None:
1149
1358
  self._values["tags"] = tags
1150
1359
 
1151
- @builtins.property
1152
- def domain(self) -> builtins.str:
1153
- '''The top-level internet domain name for which your application has administrative authority.
1154
-
1155
- This parameter is required.
1156
-
1157
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html#cfn-rum-appmonitor-domain
1158
- '''
1159
- result = self._values.get("domain")
1160
- assert result is not None, "Required property 'domain' is missing"
1161
- return typing.cast(builtins.str, result)
1162
-
1163
1360
  @builtins.property
1164
1361
  def name(self) -> builtins.str:
1165
1362
  '''A name for the app monitor.
@@ -1215,11 +1412,46 @@ class CfnAppMonitorProps:
1215
1412
  result = self._values.get("cw_log_enabled")
1216
1413
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
1217
1414
 
1415
+ @builtins.property
1416
+ def deobfuscation_configuration(
1417
+ self,
1418
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAppMonitor.DeobfuscationConfigurationProperty]]:
1419
+ '''A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
1420
+
1421
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html#cfn-rum-appmonitor-deobfuscationconfiguration
1422
+ '''
1423
+ result = self._values.get("deobfuscation_configuration")
1424
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAppMonitor.DeobfuscationConfigurationProperty]], result)
1425
+
1426
+ @builtins.property
1427
+ def domain(self) -> typing.Optional[builtins.str]:
1428
+ '''The top-level internet domain name for which your application has administrative authority.
1429
+
1430
+ This parameter is required.
1431
+
1432
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html#cfn-rum-appmonitor-domain
1433
+ '''
1434
+ result = self._values.get("domain")
1435
+ return typing.cast(typing.Optional[builtins.str], result)
1436
+
1437
+ @builtins.property
1438
+ def domain_list(self) -> typing.Optional[typing.List[builtins.str]]:
1439
+ '''The top-level internet domain names for which your application has administrative authority.
1440
+
1441
+ The CreateAppMonitor requires either the domain or the domain list.
1442
+
1443
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html#cfn-rum-appmonitor-domainlist
1444
+ '''
1445
+ result = self._values.get("domain_list")
1446
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
1447
+
1218
1448
  @builtins.property
1219
1449
  def resource_policy(
1220
1450
  self,
1221
1451
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAppMonitor.ResourcePolicyProperty]]:
1222
- '''A structure that defines resource policy attached to your app monitor.
1452
+ '''Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.
1453
+
1454
+ Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see `Using resource-based policies with CloudWatch RUM <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html>`_ .
1223
1455
 
1224
1456
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html#cfn-rum-appmonitor-resourcepolicy
1225
1457
  '''
@@ -1266,11 +1498,13 @@ def _typecheckingstub__be8f88e750c0e7122a036d486a439c075fc32835a9e8ecd39a432f9d8
1266
1498
  scope: _constructs_77d1e7e8.Construct,
1267
1499
  id: builtins.str,
1268
1500
  *,
1269
- domain: builtins.str,
1270
1501
  name: builtins.str,
1271
1502
  app_monitor_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.AppMonitorConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1272
1503
  custom_events: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.CustomEventsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1273
1504
  cw_log_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1505
+ deobfuscation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.DeobfuscationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1506
+ domain: typing.Optional[builtins.str] = None,
1507
+ domain_list: typing.Optional[typing.Sequence[builtins.str]] = None,
1274
1508
  resource_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.ResourcePolicyProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1275
1509
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1276
1510
  ) -> None:
@@ -1289,12 +1523,6 @@ def _typecheckingstub__f3ff9506c9eec23255dd33f8626dae2e4ac799a56ca2372ad12d3677f
1289
1523
  """Type checking stubs"""
1290
1524
  pass
1291
1525
 
1292
- def _typecheckingstub__0456aa4886c478c5fc3157398096bfee936719f2df864f6df5d0d99dfb18c0a6(
1293
- value: builtins.str,
1294
- ) -> None:
1295
- """Type checking stubs"""
1296
- pass
1297
-
1298
1526
  def _typecheckingstub__28bed8e51b4cd861f00044e721965e61478696f88fa5cf4528fece9faad98be4(
1299
1527
  value: builtins.str,
1300
1528
  ) -> None:
@@ -1319,6 +1547,24 @@ def _typecheckingstub__cd674d3834ab7c9a15c2cc3b7dfc188fd561725f3c30ee84200f63547
1319
1547
  """Type checking stubs"""
1320
1548
  pass
1321
1549
 
1550
+ def _typecheckingstub__9f2d704d10058b4d7b134a686b042efc84971acf09b892129589706da314ce17(
1551
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAppMonitor.DeobfuscationConfigurationProperty]],
1552
+ ) -> None:
1553
+ """Type checking stubs"""
1554
+ pass
1555
+
1556
+ def _typecheckingstub__0456aa4886c478c5fc3157398096bfee936719f2df864f6df5d0d99dfb18c0a6(
1557
+ value: typing.Optional[builtins.str],
1558
+ ) -> None:
1559
+ """Type checking stubs"""
1560
+ pass
1561
+
1562
+ def _typecheckingstub__0f86b0a9a53fb7afe4df111651fb954ae88b1fcdc7037dc764fa0b071918819c(
1563
+ value: typing.Optional[typing.List[builtins.str]],
1564
+ ) -> None:
1565
+ """Type checking stubs"""
1566
+ pass
1567
+
1322
1568
  def _typecheckingstub__02ad50a0bedc842a57f77840ff242508a77c0b4d3a7db3dabb035464285b86fa(
1323
1569
  value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAppMonitor.ResourcePolicyProperty]],
1324
1570
  ) -> None:
@@ -1354,6 +1600,21 @@ def _typecheckingstub__dbddfb5cea796155615c50462c2f74dceb1015bc37ceb1d56a4673eee
1354
1600
  """Type checking stubs"""
1355
1601
  pass
1356
1602
 
1603
+ def _typecheckingstub__fdf3e214c72bb6242e27105dcba552227c63b454a171ca355bccf1321a0906ad(
1604
+ *,
1605
+ java_script_source_maps: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.JavaScriptSourceMapsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1606
+ ) -> None:
1607
+ """Type checking stubs"""
1608
+ pass
1609
+
1610
+ def _typecheckingstub__78c04a50ef32713cea26d41602085c025ced86700aa160ec7d04d54d4b8e133d(
1611
+ *,
1612
+ status: builtins.str,
1613
+ s3_uri: typing.Optional[builtins.str] = None,
1614
+ ) -> None:
1615
+ """Type checking stubs"""
1616
+ pass
1617
+
1357
1618
  def _typecheckingstub__001da0942488042bedaa7bac57ce421214804f088803aac4b0f5c16385fb5991(
1358
1619
  *,
1359
1620
  name: builtins.str,
@@ -1386,11 +1647,13 @@ def _typecheckingstub__50574a83877817c5c30ff641cfa13fc211766060d3c8591b640545f55
1386
1647
 
1387
1648
  def _typecheckingstub__2caf0433822b63bd4f9fca8828d4497f8e2d6471cd21d40d16fd3657ddb662f5(
1388
1649
  *,
1389
- domain: builtins.str,
1390
1650
  name: builtins.str,
1391
1651
  app_monitor_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.AppMonitorConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1392
1652
  custom_events: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.CustomEventsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1393
1653
  cw_log_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1654
+ deobfuscation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.DeobfuscationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1655
+ domain: typing.Optional[builtins.str] = None,
1656
+ domain_list: typing.Optional[typing.Sequence[builtins.str]] = None,
1394
1657
  resource_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAppMonitor.ResourcePolicyProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1395
1658
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1396
1659
  ) -> None: