aws-cdk-lib 2.139.1__py3-none-any.whl → 2.141.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 (60) hide show
  1. aws_cdk/__init__.py +8 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.139.1.jsii.tgz → aws-cdk-lib@2.141.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_acmpca/__init__.py +70 -56
  5. aws_cdk/aws_apigateway/__init__.py +126 -53
  6. aws_cdk/aws_applicationautoscaling/__init__.py +1 -4
  7. aws_cdk/aws_arczonalshift/__init__.py +49 -44
  8. aws_cdk/aws_bedrock/__init__.py +2829 -147
  9. aws_cdk/aws_cloudfront/__init__.py +51 -9
  10. aws_cdk/aws_cloudtrail/__init__.py +13 -4
  11. aws_cdk/aws_codecommit/__init__.py +72 -46
  12. aws_cdk/aws_connectcampaigns/__init__.py +34 -4
  13. aws_cdk/aws_datasync/__init__.py +96 -75
  14. aws_cdk/aws_dms/__init__.py +0 -269
  15. aws_cdk/aws_dynamodb/__init__.py +410 -0
  16. aws_cdk/aws_ec2/__init__.py +239 -84
  17. aws_cdk/aws_ecr/__init__.py +32 -7
  18. aws_cdk/aws_ecs/__init__.py +2 -4
  19. aws_cdk/aws_efs/__init__.py +16 -2
  20. aws_cdk/aws_eks/__init__.py +57 -0
  21. aws_cdk/aws_entityresolution/__init__.py +6 -2
  22. aws_cdk/aws_events/__init__.py +115 -0
  23. aws_cdk/aws_events_targets/__init__.py +15 -0
  24. aws_cdk/aws_fis/__init__.py +2 -1
  25. aws_cdk/aws_fms/__init__.py +7 -7
  26. aws_cdk/aws_gamelift/__init__.py +1984 -107
  27. aws_cdk/aws_globalaccelerator/__init__.py +20 -16
  28. aws_cdk/aws_iam/__init__.py +2 -2
  29. aws_cdk/aws_ivs/__init__.py +1 -3
  30. aws_cdk/aws_kinesis/__init__.py +21 -0
  31. aws_cdk/aws_kinesisvideo/__init__.py +6 -4
  32. aws_cdk/aws_kms/__init__.py +33 -6
  33. aws_cdk/aws_lambda/__init__.py +0 -9
  34. aws_cdk/aws_location/__init__.py +8 -4
  35. aws_cdk/aws_medialive/__init__.py +444 -3
  36. aws_cdk/aws_oam/__init__.py +45 -11
  37. aws_cdk/aws_omics/__init__.py +4 -4
  38. aws_cdk/aws_paymentcryptography/__init__.py +1155 -0
  39. aws_cdk/aws_personalize/__init__.py +8 -2
  40. aws_cdk/aws_pinpoint/__init__.py +7 -5
  41. aws_cdk/aws_qbusiness/__init__.py +5583 -0
  42. aws_cdk/aws_quicksight/__init__.py +10063 -1450
  43. aws_cdk/aws_rds/__init__.py +77 -5
  44. aws_cdk/aws_redshiftserverless/__init__.py +13 -9
  45. aws_cdk/aws_route53/__init__.py +350 -0
  46. aws_cdk/aws_route53profiles/__init__.py +1048 -0
  47. aws_cdk/aws_s3/__init__.py +1 -1
  48. aws_cdk/aws_sagemaker/__init__.py +30 -30
  49. aws_cdk/aws_ses/__init__.py +9 -9
  50. aws_cdk/aws_transfer/__init__.py +102 -37
  51. aws_cdk/aws_voiceid/__init__.py +2 -2
  52. aws_cdk/aws_workspacesweb/__init__.py +92 -6
  53. aws_cdk/custom_resources/__init__.py +23 -2
  54. aws_cdk/cx_api/__init__.py +16 -0
  55. {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/METADATA +2 -2
  56. {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/RECORD +60 -57
  57. {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/LICENSE +0 -0
  58. {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/NOTICE +0 -0
  59. {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/WHEEL +0 -0
  60. {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/top_level.txt +0 -0
@@ -4750,7 +4750,7 @@ class CfnLocationObjectStorage(
4750
4750
  :param access_key: Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
4751
4751
  :param bucket_name: Specifies the name of the object storage bucket involved in the transfer.
4752
4752
  :param secret_key: Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
4753
- :param server_certificate: Specifies a file with the certificates that are used to sign the object storage server's certificate (for example, ``file:///home/user/.ssh/storage_sys_certificate.pem`` ). The file you specify must include the following:. - The certificate of the signing certificate authority (CA) - Any intermediate certificates - base64 encoding - A ``.pem`` extension The file can be up to 32768 bytes (before base64 encoding). To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
4753
+ :param server_certificate: Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single ``.pem`` file with a full certificate chain (for example, ``file:///home/user/.ssh/object_storage_certificates.pem`` ). The certificate chain might include: - The object storage system's certificate - All intermediate certificates (if there are any) - The root certificate of the signing CA You can concatenate your certificates into a ``.pem`` file (which can be up to 32768 bytes before base64 encoding). The following example ``cat`` command creates an ``object_storage_certificates.pem`` file that includes three certificates: ``cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem`` To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
4754
4754
  :param server_hostname: Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.
4755
4755
  :param server_port: Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
4756
4756
  :param server_protocol: Specifies the protocol that your object storage server uses to communicate.
@@ -4890,7 +4890,7 @@ class CfnLocationObjectStorage(
4890
4890
  @builtins.property
4891
4891
  @jsii.member(jsii_name="serverCertificate")
4892
4892
  def server_certificate(self) -> typing.Optional[builtins.str]:
4893
- '''Specifies a file with the certificates that are used to sign the object storage server's certificate (for example, ``file:///home/user/.ssh/storage_sys_certificate.pem`` ). The file you specify must include the following:.'''
4893
+ '''Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).'''
4894
4894
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "serverCertificate"))
4895
4895
 
4896
4896
  @server_certificate.setter
@@ -5003,7 +5003,7 @@ class CfnLocationObjectStorageProps:
5003
5003
  :param access_key: Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
5004
5004
  :param bucket_name: Specifies the name of the object storage bucket involved in the transfer.
5005
5005
  :param secret_key: Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
5006
- :param server_certificate: Specifies a file with the certificates that are used to sign the object storage server's certificate (for example, ``file:///home/user/.ssh/storage_sys_certificate.pem`` ). The file you specify must include the following:. - The certificate of the signing certificate authority (CA) - Any intermediate certificates - base64 encoding - A ``.pem`` extension The file can be up to 32768 bytes (before base64 encoding). To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
5006
+ :param server_certificate: Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single ``.pem`` file with a full certificate chain (for example, ``file:///home/user/.ssh/object_storage_certificates.pem`` ). The certificate chain might include: - The object storage system's certificate - All intermediate certificates (if there are any) - The root certificate of the signing CA You can concatenate your certificates into a ``.pem`` file (which can be up to 32768 bytes before base64 encoding). The following example ``cat`` command creates an ``object_storage_certificates.pem`` file that includes three certificates: ``cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem`` To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
5007
5007
  :param server_hostname: Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.
5008
5008
  :param server_port: Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
5009
5009
  :param server_protocol: Specifies the protocol that your object storage server uses to communicate.
@@ -5110,14 +5110,19 @@ class CfnLocationObjectStorageProps:
5110
5110
 
5111
5111
  @builtins.property
5112
5112
  def server_certificate(self) -> typing.Optional[builtins.str]:
5113
- '''Specifies a file with the certificates that are used to sign the object storage server's certificate (for example, ``file:///home/user/.ssh/storage_sys_certificate.pem`` ). The file you specify must include the following:.
5113
+ '''Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).
5114
5114
 
5115
- - The certificate of the signing certificate authority (CA)
5116
- - Any intermediate certificates
5117
- - base64 encoding
5118
- - A ``.pem`` extension
5115
+ You must specify a single ``.pem`` file with a full certificate chain (for example, ``file:///home/user/.ssh/object_storage_certificates.pem`` ).
5119
5116
 
5120
- The file can be up to 32768 bytes (before base64 encoding).
5117
+ The certificate chain might include:
5118
+
5119
+ - The object storage system's certificate
5120
+ - All intermediate certificates (if there are any)
5121
+ - The root certificate of the signing CA
5122
+
5123
+ You can concatenate your certificates into a ``.pem`` file (which can be up to 32768 bytes before base64 encoding). The following example ``cat`` command creates an ``object_storage_certificates.pem`` file that includes three certificates:
5124
+
5125
+ ``cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem``
5121
5126
 
5122
5127
  To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
5123
5128
 
@@ -6755,7 +6760,8 @@ class CfnTask(
6755
6760
  verify_mode="verifyMode"
6756
6761
  ),
6757
6762
  schedule=datasync.CfnTask.TaskScheduleProperty(
6758
- schedule_expression="scheduleExpression"
6763
+ schedule_expression="scheduleExpression",
6764
+ status="status"
6759
6765
  ),
6760
6766
  tags=[CfnTag(
6761
6767
  key="key",
@@ -6813,15 +6819,15 @@ class CfnTask(
6813
6819
  :param scope: Scope in which this resource is defined.
6814
6820
  :param id: Construct identifier for this resource (unique in its scope).
6815
6821
  :param destination_location_arn: The Amazon Resource Name (ARN) of an AWS storage resource's location.
6816
- :param source_location_arn: The Amazon Resource Name (ARN) of the source location for the task.
6817
- :param cloud_watch_log_group_arn: The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task. For more information about how to use CloudWatch Logs with DataSync, see `Monitoring Your Task <https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html#cloudwatchlogs>`_ in the *AWS DataSync User Guide.* For more information about these groups, see `Working with Log Groups and Log Streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html>`_ in the *Amazon CloudWatch Logs User Guide* .
6818
- :param excludes: Specifies a list of filter rules that exclude specific data during your transfer. For more information and examples, see `Filtering data transferred by DataSync <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
6819
- :param includes: Specifies a list of filter rules that include specific data during your transfer. For more information and examples, see `Filtering data transferred by DataSync <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
6820
- :param manifest_config: The configuration of the manifest that lists the files or objects to transfer. For more information, see `Specifying what DataSync transfers by using a manifest <https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html>`_ .
6821
- :param name: The name of a task. This value is a text reference that is used to identify the task in the console.
6822
- :param options: Specifies the configuration options for a task. Some options include preserving file or object metadata and verifying data integrity. You can also override these options before starting an individual run of a task (also known as a *task execution* ). For more information, see `StartTaskExecution <https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html>`_ .
6823
- :param schedule: Specifies a schedule used to periodically transfer files from a source to a destination location. The schedule should be specified in UTC time. For more information, see `Scheduling your task <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html>`_ .
6824
- :param tags: Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. *Tags* are key-value pairs that help you manage, filter, and search for your DataSync resources.
6822
+ :param source_location_arn: Specifies the ARN of your transfer's source location.
6823
+ :param cloud_watch_log_group_arn: Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For more information, see `Monitoring DataSync with Amazon CloudWatch <https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html>`_ .
6824
+ :param excludes: Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see `Specifying what DataSync transfers by using filters <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
6825
+ :param includes: Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see `Specifying what DataSync transfers by using filters <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
6826
+ :param manifest_config: The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see `Specifying what DataSync transfers by using a manifest <https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html>`_ .
6827
+ :param name: Specifies the name of your task.
6828
+ :param options: Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
6829
+ :param schedule: Specifies a schedule for when you want your task to run. For more information, see `Scheduling your task <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html>`_ .
6830
+ :param tags: Specifies the tags that you want to apply to your task. *Tags* are key-value pairs that help you manage, filter, and search for your DataSync resources.
6825
6831
  :param task_report_config: Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see `Monitoring your DataSync transfers with task reports <https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html>`_ . When using this parameter, your caller identity (the role that you're using DataSync with) must have the ``iam:PassRole`` permission. The `AWSDataSyncFullAccess <https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess>`_ policy includes this permission.
6826
6832
  '''
6827
6833
  if __debug__:
@@ -6937,7 +6943,7 @@ class CfnTask(
6937
6943
  @builtins.property
6938
6944
  @jsii.member(jsii_name="sourceLocationArn")
6939
6945
  def source_location_arn(self) -> builtins.str:
6940
- '''The Amazon Resource Name (ARN) of the source location for the task.'''
6946
+ '''Specifies the ARN of your transfer's source location.'''
6941
6947
  return typing.cast(builtins.str, jsii.get(self, "sourceLocationArn"))
6942
6948
 
6943
6949
  @source_location_arn.setter
@@ -6950,7 +6956,7 @@ class CfnTask(
6950
6956
  @builtins.property
6951
6957
  @jsii.member(jsii_name="cloudWatchLogGroupArn")
6952
6958
  def cloud_watch_log_group_arn(self) -> typing.Optional[builtins.str]:
6953
- '''The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.'''
6959
+ '''Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.'''
6954
6960
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "cloudWatchLogGroupArn"))
6955
6961
 
6956
6962
  @cloud_watch_log_group_arn.setter
@@ -6965,7 +6971,7 @@ class CfnTask(
6965
6971
  def excludes(
6966
6972
  self,
6967
6973
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnTask.FilterRuleProperty"]]]]:
6968
- '''Specifies a list of filter rules that exclude specific data during your transfer.'''
6974
+ '''Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer.'''
6969
6975
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnTask.FilterRuleProperty"]]]], jsii.get(self, "excludes"))
6970
6976
 
6971
6977
  @excludes.setter
@@ -6983,7 +6989,7 @@ class CfnTask(
6983
6989
  def includes(
6984
6990
  self,
6985
6991
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnTask.FilterRuleProperty"]]]]:
6986
- '''Specifies a list of filter rules that include specific data during your transfer.'''
6992
+ '''Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer.'''
6987
6993
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnTask.FilterRuleProperty"]]]], jsii.get(self, "includes"))
6988
6994
 
6989
6995
  @includes.setter
@@ -7001,7 +7007,7 @@ class CfnTask(
7001
7007
  def manifest_config(
7002
7008
  self,
7003
7009
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTask.ManifestConfigProperty"]]:
7004
- '''The configuration of the manifest that lists the files or objects to transfer.'''
7010
+ '''The configuration of the manifest that lists the files or objects that you want DataSync to transfer.'''
7005
7011
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTask.ManifestConfigProperty"]], jsii.get(self, "manifestConfig"))
7006
7012
 
7007
7013
  @manifest_config.setter
@@ -7017,7 +7023,7 @@ class CfnTask(
7017
7023
  @builtins.property
7018
7024
  @jsii.member(jsii_name="name")
7019
7025
  def name(self) -> typing.Optional[builtins.str]:
7020
- '''The name of a task.'''
7026
+ '''Specifies the name of your task.'''
7021
7027
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
7022
7028
 
7023
7029
  @name.setter
@@ -7032,10 +7038,7 @@ class CfnTask(
7032
7038
  def options(
7033
7039
  self,
7034
7040
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTask.OptionsProperty"]]:
7035
- '''Specifies the configuration options for a task.
7036
-
7037
- Some options include preserving file or object metadata and verifying data integrity.
7038
- '''
7041
+ '''Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.'''
7039
7042
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTask.OptionsProperty"]], jsii.get(self, "options"))
7040
7043
 
7041
7044
  @options.setter
@@ -7053,7 +7056,7 @@ class CfnTask(
7053
7056
  def schedule(
7054
7057
  self,
7055
7058
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTask.TaskScheduleProperty"]]:
7056
- '''Specifies a schedule used to periodically transfer files from a source to a destination location.'''
7059
+ '''Specifies a schedule for when you want your task to run.'''
7057
7060
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTask.TaskScheduleProperty"]], jsii.get(self, "schedule"))
7058
7061
 
7059
7062
  @schedule.setter
@@ -7069,7 +7072,7 @@ class CfnTask(
7069
7072
  @builtins.property
7070
7073
  @jsii.member(jsii_name="tagsRaw")
7071
7074
  def tags_raw(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
7072
- '''Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.'''
7075
+ '''Specifies the tags that you want to apply to your task.'''
7073
7076
  return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tagsRaw"))
7074
7077
 
7075
7078
  @tags_raw.setter
@@ -8412,15 +8415,19 @@ class CfnTask(
8412
8415
  @jsii.data_type(
8413
8416
  jsii_type="aws-cdk-lib.aws_datasync.CfnTask.TaskScheduleProperty",
8414
8417
  jsii_struct_bases=[],
8415
- name_mapping={"schedule_expression": "scheduleExpression"},
8418
+ name_mapping={"schedule_expression": "scheduleExpression", "status": "status"},
8416
8419
  )
8417
8420
  class TaskScheduleProperty:
8418
- def __init__(self, *, schedule_expression: builtins.str) -> None:
8419
- '''Specifies the schedule you want your task to use for repeated executions.
8420
-
8421
- For more information, see `Schedule Expressions for Rules <https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html>`_ .
8421
+ def __init__(
8422
+ self,
8423
+ *,
8424
+ schedule_expression: typing.Optional[builtins.str] = None,
8425
+ status: typing.Optional[builtins.str] = None,
8426
+ ) -> None:
8427
+ '''Configures your AWS DataSync task to run on a `schedule <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html>`_ (at a minimum interval of 1 hour).
8422
8428
 
8423
- :param schedule_expression: A cron expression that specifies when AWS DataSync initiates a scheduled transfer from a source to a destination location.
8429
+ :param schedule_expression: Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the `*Amazon EventBridge User Guide* <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html>`_ .
8430
+ :param status: Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to perform maintenance on a storage system before you can begin a recurring DataSync transfer. DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see the `*DataSync User Guide* <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html#pause-task-schedule>`_ .
8424
8431
 
8425
8432
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html
8426
8433
  :exampleMetadata: fixture=_generated
@@ -8432,25 +8439,43 @@ class CfnTask(
8432
8439
  from aws_cdk import aws_datasync as datasync
8433
8440
 
8434
8441
  task_schedule_property = datasync.CfnTask.TaskScheduleProperty(
8435
- schedule_expression="scheduleExpression"
8442
+ schedule_expression="scheduleExpression",
8443
+ status="status"
8436
8444
  )
8437
8445
  '''
8438
8446
  if __debug__:
8439
8447
  type_hints = typing.get_type_hints(_typecheckingstub__bdd1c8daa067909640e521c94ab235dbc0cbd0298c594a9205908838932a520f)
8440
8448
  check_type(argname="argument schedule_expression", value=schedule_expression, expected_type=type_hints["schedule_expression"])
8441
- self._values: typing.Dict[builtins.str, typing.Any] = {
8442
- "schedule_expression": schedule_expression,
8443
- }
8449
+ check_type(argname="argument status", value=status, expected_type=type_hints["status"])
8450
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
8451
+ if schedule_expression is not None:
8452
+ self._values["schedule_expression"] = schedule_expression
8453
+ if status is not None:
8454
+ self._values["status"] = status
8444
8455
 
8445
8456
  @builtins.property
8446
- def schedule_expression(self) -> builtins.str:
8447
- '''A cron expression that specifies when AWS DataSync initiates a scheduled transfer from a source to a destination location.
8457
+ def schedule_expression(self) -> typing.Optional[builtins.str]:
8458
+ '''Specifies your task schedule by using a cron expression in UTC time.
8459
+
8460
+ For information about cron expression syntax, see the `*Amazon EventBridge User Guide* <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html>`_ .
8448
8461
 
8449
8462
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html#cfn-datasync-task-taskschedule-scheduleexpression
8450
8463
  '''
8451
8464
  result = self._values.get("schedule_expression")
8452
- assert result is not None, "Required property 'schedule_expression' is missing"
8453
- return typing.cast(builtins.str, result)
8465
+ return typing.cast(typing.Optional[builtins.str], result)
8466
+
8467
+ @builtins.property
8468
+ def status(self) -> typing.Optional[builtins.str]:
8469
+ '''Specifies whether to enable or disable your task schedule.
8470
+
8471
+ Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to perform maintenance on a storage system before you can begin a recurring DataSync transfer.
8472
+
8473
+ DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see the `*DataSync User Guide* <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html#pause-task-schedule>`_ .
8474
+
8475
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html#cfn-datasync-task-taskschedule-status
8476
+ '''
8477
+ result = self._values.get("status")
8478
+ return typing.cast(typing.Optional[builtins.str], result)
8454
8479
 
8455
8480
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
8456
8481
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -8616,15 +8641,15 @@ class CfnTaskProps:
8616
8641
  '''Properties for defining a ``CfnTask``.
8617
8642
 
8618
8643
  :param destination_location_arn: The Amazon Resource Name (ARN) of an AWS storage resource's location.
8619
- :param source_location_arn: The Amazon Resource Name (ARN) of the source location for the task.
8620
- :param cloud_watch_log_group_arn: The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task. For more information about how to use CloudWatch Logs with DataSync, see `Monitoring Your Task <https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html#cloudwatchlogs>`_ in the *AWS DataSync User Guide.* For more information about these groups, see `Working with Log Groups and Log Streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html>`_ in the *Amazon CloudWatch Logs User Guide* .
8621
- :param excludes: Specifies a list of filter rules that exclude specific data during your transfer. For more information and examples, see `Filtering data transferred by DataSync <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8622
- :param includes: Specifies a list of filter rules that include specific data during your transfer. For more information and examples, see `Filtering data transferred by DataSync <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8623
- :param manifest_config: The configuration of the manifest that lists the files or objects to transfer. For more information, see `Specifying what DataSync transfers by using a manifest <https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html>`_ .
8624
- :param name: The name of a task. This value is a text reference that is used to identify the task in the console.
8625
- :param options: Specifies the configuration options for a task. Some options include preserving file or object metadata and verifying data integrity. You can also override these options before starting an individual run of a task (also known as a *task execution* ). For more information, see `StartTaskExecution <https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html>`_ .
8626
- :param schedule: Specifies a schedule used to periodically transfer files from a source to a destination location. The schedule should be specified in UTC time. For more information, see `Scheduling your task <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html>`_ .
8627
- :param tags: Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. *Tags* are key-value pairs that help you manage, filter, and search for your DataSync resources.
8644
+ :param source_location_arn: Specifies the ARN of your transfer's source location.
8645
+ :param cloud_watch_log_group_arn: Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For more information, see `Monitoring DataSync with Amazon CloudWatch <https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html>`_ .
8646
+ :param excludes: Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see `Specifying what DataSync transfers by using filters <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8647
+ :param includes: Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see `Specifying what DataSync transfers by using filters <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8648
+ :param manifest_config: The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see `Specifying what DataSync transfers by using a manifest <https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html>`_ .
8649
+ :param name: Specifies the name of your task.
8650
+ :param options: Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
8651
+ :param schedule: Specifies a schedule for when you want your task to run. For more information, see `Scheduling your task <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html>`_ .
8652
+ :param tags: Specifies the tags that you want to apply to your task. *Tags* are key-value pairs that help you manage, filter, and search for your DataSync resources.
8628
8653
  :param task_report_config: Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see `Monitoring your DataSync transfers with task reports <https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html>`_ . When using this parameter, your caller identity (the role that you're using DataSync with) must have the ``iam:PassRole`` permission. The `AWSDataSyncFullAccess <https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess>`_ policy includes this permission.
8629
8654
 
8630
8655
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html
@@ -8683,7 +8708,8 @@ class CfnTaskProps:
8683
8708
  verify_mode="verifyMode"
8684
8709
  ),
8685
8710
  schedule=datasync.CfnTask.TaskScheduleProperty(
8686
- schedule_expression="scheduleExpression"
8711
+ schedule_expression="scheduleExpression",
8712
+ status="status"
8687
8713
  ),
8688
8714
  tags=[CfnTag(
8689
8715
  key="key",
@@ -8767,7 +8793,7 @@ class CfnTaskProps:
8767
8793
 
8768
8794
  @builtins.property
8769
8795
  def source_location_arn(self) -> builtins.str:
8770
- '''The Amazon Resource Name (ARN) of the source location for the task.
8796
+ '''Specifies the ARN of your transfer's source location.
8771
8797
 
8772
8798
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-sourcelocationarn
8773
8799
  '''
@@ -8777,11 +8803,9 @@ class CfnTaskProps:
8777
8803
 
8778
8804
  @builtins.property
8779
8805
  def cloud_watch_log_group_arn(self) -> typing.Optional[builtins.str]:
8780
- '''The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.
8806
+ '''Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
8781
8807
 
8782
- For more information about how to use CloudWatch Logs with DataSync, see `Monitoring Your Task <https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html#cloudwatchlogs>`_ in the *AWS DataSync User Guide.*
8783
-
8784
- For more information about these groups, see `Working with Log Groups and Log Streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html>`_ in the *Amazon CloudWatch Logs User Guide* .
8808
+ For more information, see `Monitoring DataSync with Amazon CloudWatch <https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html>`_ .
8785
8809
 
8786
8810
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-cloudwatchloggrouparn
8787
8811
  '''
@@ -8792,9 +8816,9 @@ class CfnTaskProps:
8792
8816
  def excludes(
8793
8817
  self,
8794
8818
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnTask.FilterRuleProperty]]]]:
8795
- '''Specifies a list of filter rules that exclude specific data during your transfer.
8819
+ '''Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer.
8796
8820
 
8797
- For more information and examples, see `Filtering data transferred by DataSync <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8821
+ For more information and examples, see `Specifying what DataSync transfers by using filters <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8798
8822
 
8799
8823
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-excludes
8800
8824
  '''
@@ -8805,9 +8829,9 @@ class CfnTaskProps:
8805
8829
  def includes(
8806
8830
  self,
8807
8831
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnTask.FilterRuleProperty]]]]:
8808
- '''Specifies a list of filter rules that include specific data during your transfer.
8832
+ '''Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer.
8809
8833
 
8810
- For more information and examples, see `Filtering data transferred by DataSync <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8834
+ For more information and examples, see `Specifying what DataSync transfers by using filters <https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html>`_ .
8811
8835
 
8812
8836
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-includes
8813
8837
  '''
@@ -8818,7 +8842,7 @@ class CfnTaskProps:
8818
8842
  def manifest_config(
8819
8843
  self,
8820
8844
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnTask.ManifestConfigProperty]]:
8821
- '''The configuration of the manifest that lists the files or objects to transfer.
8845
+ '''The configuration of the manifest that lists the files or objects that you want DataSync to transfer.
8822
8846
 
8823
8847
  For more information, see `Specifying what DataSync transfers by using a manifest <https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html>`_ .
8824
8848
 
@@ -8829,9 +8853,7 @@ class CfnTaskProps:
8829
8853
 
8830
8854
  @builtins.property
8831
8855
  def name(self) -> typing.Optional[builtins.str]:
8832
- '''The name of a task.
8833
-
8834
- This value is a text reference that is used to identify the task in the console.
8856
+ '''Specifies the name of your task.
8835
8857
 
8836
8858
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-name
8837
8859
  '''
@@ -8842,9 +8864,7 @@ class CfnTaskProps:
8842
8864
  def options(
8843
8865
  self,
8844
8866
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnTask.OptionsProperty]]:
8845
- '''Specifies the configuration options for a task. Some options include preserving file or object metadata and verifying data integrity.
8846
-
8847
- You can also override these options before starting an individual run of a task (also known as a *task execution* ). For more information, see `StartTaskExecution <https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html>`_ .
8867
+ '''Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
8848
8868
 
8849
8869
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-options
8850
8870
  '''
@@ -8855,9 +8875,9 @@ class CfnTaskProps:
8855
8875
  def schedule(
8856
8876
  self,
8857
8877
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnTask.TaskScheduleProperty]]:
8858
- '''Specifies a schedule used to periodically transfer files from a source to a destination location.
8878
+ '''Specifies a schedule for when you want your task to run.
8859
8879
 
8860
- The schedule should be specified in UTC time. For more information, see `Scheduling your task <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html>`_ .
8880
+ For more information, see `Scheduling your task <https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html>`_ .
8861
8881
 
8862
8882
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html#cfn-datasync-task-schedule
8863
8883
  '''
@@ -8866,7 +8886,7 @@ class CfnTaskProps:
8866
8886
 
8867
8887
  @builtins.property
8868
8888
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
8869
- '''Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.
8889
+ '''Specifies the tags that you want to apply to your task.
8870
8890
 
8871
8891
  *Tags* are key-value pairs that help you manage, filter, and search for your DataSync resources.
8872
8892
 
@@ -10333,7 +10353,8 @@ def _typecheckingstub__b009bd11595c3338d0fb505588fdbb9ccbeb567f140029bfcac0b3469
10333
10353
 
10334
10354
  def _typecheckingstub__bdd1c8daa067909640e521c94ab235dbc0cbd0298c594a9205908838932a520f(
10335
10355
  *,
10336
- schedule_expression: builtins.str,
10356
+ schedule_expression: typing.Optional[builtins.str] = None,
10357
+ status: typing.Optional[builtins.str] = None,
10337
10358
  ) -> None:
10338
10359
  """Type checking stubs"""
10339
10360
  pass