aws-cdk-lib 2.206.0__py3-none-any.whl → 2.207.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +96 -15
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.206.0.jsii.tgz → aws-cdk-lib@2.207.0.jsii.tgz} +0 -0
- aws_cdk/aws_aiops/__init__.py +66 -76
- aws_cdk/aws_autoscaling/__init__.py +20 -0
- aws_cdk/aws_bedrock/__init__.py +126 -70
- aws_cdk/aws_certificatemanager/__init__.py +3 -3
- aws_cdk/aws_cleanrooms/__init__.py +6 -2
- aws_cdk/aws_cloudformation/__init__.py +28 -15
- aws_cdk/aws_cloudwatch/__init__.py +574 -33
- aws_cdk/aws_datasync/__init__.py +14 -15
- aws_cdk/aws_ec2/__init__.py +6 -2
- aws_cdk/aws_ecs/__init__.py +67 -18
- aws_cdk/aws_iotsitewise/__init__.py +13 -9
- aws_cdk/aws_kms/__init__.py +19 -17
- aws_cdk/aws_logs/__init__.py +4725 -763
- aws_cdk/aws_mediapackagev2/__init__.py +69 -48
- aws_cdk/aws_opsworkscm/__init__.py +2 -4
- aws_cdk/aws_rds/__init__.py +150 -17
- aws_cdk/aws_s3/__init__.py +9 -6
- aws_cdk/aws_sagemaker/__init__.py +3 -3
- aws_cdk/aws_ssm/__init__.py +58 -33
- aws_cdk/aws_transfer/__init__.py +21 -11
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/RECORD +29 -29
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_datasync/__init__.py
CHANGED
|
@@ -4643,7 +4643,7 @@ class CfnLocationNFS(
|
|
|
4643
4643
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
4644
4644
|
:param on_prem_config: Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server. You can specify more than one agent. For more information, see `Using multiple DataSync agents <https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents>`_ .
|
|
4645
4645
|
:param mount_options: Specifies the options that DataSync can use to mount your NFS file server.
|
|
4646
|
-
:param server_hostname: Specifies the DNS name or IP
|
|
4646
|
+
:param server_hostname: Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.
|
|
4647
4647
|
:param subdirectory: Specifies the export path in your NFS file server that you want DataSync to mount. This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see `Accessing NFS file servers <https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs>`_ .
|
|
4648
4648
|
:param tags: Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.
|
|
4649
4649
|
'''
|
|
@@ -4759,7 +4759,7 @@ class CfnLocationNFS(
|
|
|
4759
4759
|
@builtins.property
|
|
4760
4760
|
@jsii.member(jsii_name="serverHostname")
|
|
4761
4761
|
def server_hostname(self) -> typing.Optional[builtins.str]:
|
|
4762
|
-
'''Specifies the DNS name or IP
|
|
4762
|
+
'''Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.'''
|
|
4763
4763
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "serverHostname"))
|
|
4764
4764
|
|
|
4765
4765
|
@server_hostname.setter
|
|
@@ -4939,7 +4939,7 @@ class CfnLocationNFSProps:
|
|
|
4939
4939
|
|
|
4940
4940
|
:param on_prem_config: Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server. You can specify more than one agent. For more information, see `Using multiple DataSync agents <https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents>`_ .
|
|
4941
4941
|
:param mount_options: Specifies the options that DataSync can use to mount your NFS file server.
|
|
4942
|
-
:param server_hostname: Specifies the DNS name or IP
|
|
4942
|
+
:param server_hostname: Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.
|
|
4943
4943
|
:param subdirectory: Specifies the export path in your NFS file server that you want DataSync to mount. This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see `Accessing NFS file servers <https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs>`_ .
|
|
4944
4944
|
:param tags: Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.
|
|
4945
4945
|
|
|
@@ -5015,7 +5015,7 @@ class CfnLocationNFSProps:
|
|
|
5015
5015
|
|
|
5016
5016
|
@builtins.property
|
|
5017
5017
|
def server_hostname(self) -> typing.Optional[builtins.str]:
|
|
5018
|
-
'''Specifies the DNS name or IP
|
|
5018
|
+
'''Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.
|
|
5019
5019
|
|
|
5020
5020
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-serverhostname
|
|
5021
5021
|
'''
|
|
@@ -5129,7 +5129,7 @@ class CfnLocationObjectStorage(
|
|
|
5129
5129
|
:param custom_secret_config: Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. .. epigraph:: You can use either ``CmkSecretConfig`` (with ``SecretKey`` ) or ``CustomSecretConfig`` (without ``SecretKey`` ) to provide credentials for a ``CreateLocationObjectStorage`` request. Do not provide both parameters for the same request.
|
|
5130
5130
|
:param secret_key: Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server. .. epigraph:: If you provide a secret using ``SecretKey`` , but do not provide secret configuration details using ``CmkSecretConfig`` or ``CustomSecretConfig`` , then DataSync stores the token using your AWS account's Secrets Manager secret.
|
|
5131
5131
|
: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`` .
|
|
5132
|
-
:param server_hostname: Specifies the domain name or IP
|
|
5132
|
+
:param server_hostname: Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.
|
|
5133
5133
|
:param server_port: Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
|
|
5134
5134
|
:param server_protocol: Specifies the protocol that your object storage server uses to communicate. If not specified, the default value is ``HTTPS`` .
|
|
5135
5135
|
:param subdirectory: Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
|
|
@@ -5341,7 +5341,7 @@ class CfnLocationObjectStorage(
|
|
|
5341
5341
|
@builtins.property
|
|
5342
5342
|
@jsii.member(jsii_name="serverHostname")
|
|
5343
5343
|
def server_hostname(self) -> typing.Optional[builtins.str]:
|
|
5344
|
-
'''Specifies the domain name or IP
|
|
5344
|
+
'''Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.'''
|
|
5345
5345
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "serverHostname"))
|
|
5346
5346
|
|
|
5347
5347
|
@server_hostname.setter
|
|
@@ -5659,7 +5659,7 @@ class CfnLocationObjectStorageProps:
|
|
|
5659
5659
|
:param custom_secret_config: Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. .. epigraph:: You can use either ``CmkSecretConfig`` (with ``SecretKey`` ) or ``CustomSecretConfig`` (without ``SecretKey`` ) to provide credentials for a ``CreateLocationObjectStorage`` request. Do not provide both parameters for the same request.
|
|
5660
5660
|
:param secret_key: Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server. .. epigraph:: If you provide a secret using ``SecretKey`` , but do not provide secret configuration details using ``CmkSecretConfig`` or ``CustomSecretConfig`` , then DataSync stores the token using your AWS account's Secrets Manager secret.
|
|
5661
5661
|
: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`` .
|
|
5662
|
-
:param server_hostname: Specifies the domain name or IP
|
|
5662
|
+
:param server_hostname: Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.
|
|
5663
5663
|
:param server_port: Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
|
|
5664
5664
|
:param server_protocol: Specifies the protocol that your object storage server uses to communicate. If not specified, the default value is ``HTTPS`` .
|
|
5665
5665
|
:param subdirectory: Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
|
|
@@ -5842,7 +5842,7 @@ class CfnLocationObjectStorageProps:
|
|
|
5842
5842
|
|
|
5843
5843
|
@builtins.property
|
|
5844
5844
|
def server_hostname(self) -> typing.Optional[builtins.str]:
|
|
5845
|
-
'''Specifies the domain name or IP
|
|
5845
|
+
'''Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.
|
|
5846
5846
|
|
|
5847
5847
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-serverhostname
|
|
5848
5848
|
'''
|
|
@@ -6381,7 +6381,7 @@ class CfnLocationSMB(
|
|
|
6381
6381
|
:param kerberos_principal: Specifies a service principal name (SPN), which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server. SPNs are case sensitive and must include a prepended cifs/. For example, an SPN might look like cifs/kerberosuser@EXAMPLE.COM. Your task execution will fail if the SPN that you provide for this parameter doesn't match exactly what's in your keytab or krb5.conf files.
|
|
6382
6382
|
:param mount_options: Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
|
|
6383
6383
|
:param password: Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if ``AuthenticationType`` is set to ``NTLM`` .
|
|
6384
|
-
:param server_hostname: Specifies the domain name or IP address of the SMB file server that your DataSync agent connects to.
|
|
6384
|
+
:param server_hostname: Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to. .. epigraph:: If you're using Kerberos authentication, you must specify a domain name.
|
|
6385
6385
|
:param subdirectory: Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, ``/path/to/subdirectory`` ). Make sure that other SMB clients in your network can also mount this path. To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see `Providing DataSync access to SMB file servers <https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions>`_ .
|
|
6386
6386
|
:param tags: Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.
|
|
6387
6387
|
:param user: Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. This parameter applies only if ``AuthenticationType`` is set to ``NTLM`` . For information about choosing a user with the right level of access for your transfer, see `Providing DataSync access to SMB file servers <https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions>`_ .
|
|
@@ -6595,7 +6595,7 @@ class CfnLocationSMB(
|
|
|
6595
6595
|
@builtins.property
|
|
6596
6596
|
@jsii.member(jsii_name="serverHostname")
|
|
6597
6597
|
def server_hostname(self) -> typing.Optional[builtins.str]:
|
|
6598
|
-
'''Specifies the domain name or IP address of the SMB file server that your DataSync agent connects to.'''
|
|
6598
|
+
'''Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to.'''
|
|
6599
6599
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "serverHostname"))
|
|
6600
6600
|
|
|
6601
6601
|
@server_hostname.setter
|
|
@@ -6761,7 +6761,7 @@ class CfnLocationSMBProps:
|
|
|
6761
6761
|
:param kerberos_principal: Specifies a service principal name (SPN), which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server. SPNs are case sensitive and must include a prepended cifs/. For example, an SPN might look like cifs/kerberosuser@EXAMPLE.COM. Your task execution will fail if the SPN that you provide for this parameter doesn't match exactly what's in your keytab or krb5.conf files.
|
|
6762
6762
|
:param mount_options: Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
|
|
6763
6763
|
:param password: Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if ``AuthenticationType`` is set to ``NTLM`` .
|
|
6764
|
-
:param server_hostname: Specifies the domain name or IP address of the SMB file server that your DataSync agent connects to.
|
|
6764
|
+
:param server_hostname: Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to. .. epigraph:: If you're using Kerberos authentication, you must specify a domain name.
|
|
6765
6765
|
:param subdirectory: Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, ``/path/to/subdirectory`` ). Make sure that other SMB clients in your network can also mount this path. To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see `Providing DataSync access to SMB file servers <https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions>`_ .
|
|
6766
6766
|
:param tags: Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.
|
|
6767
6767
|
:param user: Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. This parameter applies only if ``AuthenticationType`` is set to ``NTLM`` . For information about choosing a user with the right level of access for your transfer, see `Providing DataSync access to SMB file servers <https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions>`_ .
|
|
@@ -6941,12 +6941,11 @@ class CfnLocationSMBProps:
|
|
|
6941
6941
|
|
|
6942
6942
|
@builtins.property
|
|
6943
6943
|
def server_hostname(self) -> typing.Optional[builtins.str]:
|
|
6944
|
-
'''Specifies the domain name or IP address of the SMB file server that your DataSync agent connects to.
|
|
6944
|
+
'''Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to.
|
|
6945
6945
|
|
|
6946
|
-
|
|
6946
|
+
.. epigraph::
|
|
6947
6947
|
|
|
6948
|
-
|
|
6949
|
-
- If you're using Kerberos authentication, you must specify a domain name.
|
|
6948
|
+
If you're using Kerberos authentication, you must specify a domain name.
|
|
6950
6949
|
|
|
6951
6950
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationsmb.html#cfn-datasync-locationsmb-serverhostname
|
|
6952
6951
|
'''
|
aws_cdk/aws_ec2/__init__.py
CHANGED
|
@@ -24427,7 +24427,7 @@ class CfnInstanceConnectEndpoint(
|
|
|
24427
24427
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
24428
24428
|
:param subnet_id: The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
|
|
24429
24429
|
:param client_token: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
|
24430
|
-
:param preserve_client_ip: Indicates whether the client IP address is preserved as the source. The following are the possible values. - ``true`` - Use the client IP address as the source. - ``false`` - Use the network interface IP address as the source. Default: ``false``
|
|
24430
|
+
:param preserve_client_ip: Indicates whether the client IP address is preserved as the source. The following are the possible values. - ``true`` - Use the client IP address as the source. - ``false`` - Use the network interface IP address as the source. .. epigraph:: ``PreserveClientIp`` is only supported on IPv4 EC2 Instance Connect Endpoints. To use ``PreserveClientIp`` , the value for ``IpAddressType`` must be ``ipv4`` . Default: ``false``
|
|
24431
24431
|
:param security_group_ids: One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
|
|
24432
24432
|
:param tags: The tags to apply to the EC2 Instance Connect Endpoint during creation.
|
|
24433
24433
|
'''
|
|
@@ -24597,7 +24597,7 @@ class CfnInstanceConnectEndpointProps:
|
|
|
24597
24597
|
|
|
24598
24598
|
:param subnet_id: The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
|
|
24599
24599
|
:param client_token: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
|
24600
|
-
:param preserve_client_ip: Indicates whether the client IP address is preserved as the source. The following are the possible values. - ``true`` - Use the client IP address as the source. - ``false`` - Use the network interface IP address as the source. Default: ``false``
|
|
24600
|
+
:param preserve_client_ip: Indicates whether the client IP address is preserved as the source. The following are the possible values. - ``true`` - Use the client IP address as the source. - ``false`` - Use the network interface IP address as the source. .. epigraph:: ``PreserveClientIp`` is only supported on IPv4 EC2 Instance Connect Endpoints. To use ``PreserveClientIp`` , the value for ``IpAddressType`` must be ``ipv4`` . Default: ``false``
|
|
24601
24601
|
:param security_group_ids: One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
|
|
24602
24602
|
:param tags: The tags to apply to the EC2 Instance Connect Endpoint during creation.
|
|
24603
24603
|
|
|
@@ -24670,6 +24670,10 @@ class CfnInstanceConnectEndpointProps:
|
|
|
24670
24670
|
- ``true`` - Use the client IP address as the source.
|
|
24671
24671
|
- ``false`` - Use the network interface IP address as the source.
|
|
24672
24672
|
|
|
24673
|
+
.. epigraph::
|
|
24674
|
+
|
|
24675
|
+
``PreserveClientIp`` is only supported on IPv4 EC2 Instance Connect Endpoints. To use ``PreserveClientIp`` , the value for ``IpAddressType`` must be ``ipv4`` .
|
|
24676
|
+
|
|
24673
24677
|
Default: ``false``
|
|
24674
24678
|
|
|
24675
24679
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html#cfn-ec2-instanceconnectendpoint-preserveclientip
|
aws_cdk/aws_ecs/__init__.py
CHANGED
|
@@ -8701,9 +8701,9 @@ class CfnService(
|
|
|
8701
8701
|
:param capacity_provider_strategy: The capacity provider strategy to use for the service. If a ``capacityProviderStrategy`` is specified, the ``launchType`` parameter must be omitted. If no ``capacityProviderStrategy`` or ``launchType`` is specified, the ``defaultCapacityProviderStrategy`` for the cluster is used. A capacity provider strategy can contain a maximum of 20 capacity providers. .. epigraph:: To remove this property from your service resource, specify an empty ``CapacityProviderStrategyItem`` array.
|
|
8702
8702
|
:param cluster: The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed.
|
|
8703
8703
|
:param deployment_configuration: Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
|
|
8704
|
-
:param deployment_controller: The deployment controller to use for the service.
|
|
8704
|
+
:param deployment_controller: The deployment controller to use for the service.
|
|
8705
8705
|
:param desired_count: The number of instantiations of the specified task definition to place and keep running in your service. For new services, if a desired count is not specified, a default value of ``1`` is used. When using the ``DAEMON`` scheduling strategy, the desired count is not required. For existing services, if a desired count is not specified, it is omitted from the operation.
|
|
8706
|
-
:param enable_ecs_managed_tags: Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging your Amazon ECS resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ in the *Amazon Elastic Container Service Developer Guide* . When you use Amazon ECS managed tags, you
|
|
8706
|
+
:param enable_ecs_managed_tags: Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging your Amazon ECS resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ in the *Amazon Elastic Container Service Developer Guide* . When you use Amazon ECS managed tags, you must set the ``propagateTags`` request parameter.
|
|
8707
8707
|
:param enable_execute_command: Determines whether the execute command functionality is turned on for the service. If ``true`` , the execute command functionality is turned on for all containers in tasks as part of the service.
|
|
8708
8708
|
:param health_check_grace_period_seconds: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't specify a health check grace period value, the default value of ``0`` is used. If you don't use any of the health checks, then ``healthCheckGracePeriodSeconds`` is unused. If your service's tasks take a while to start and respond to health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
|
|
8709
8709
|
:param launch_type: The launch type on which to run your service. For more information, see `Amazon ECS Launch Types <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
@@ -9555,7 +9555,7 @@ class CfnService(
|
|
|
9555
9555
|
|
|
9556
9556
|
When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback parameter to have Amazon ECS to roll back your service to the last completed deployment after a failure.
|
|
9557
9557
|
|
|
9558
|
-
You can only use the ``DeploymentAlarms`` method to detect failures when the ``DeploymentController`` is set to ``ECS``
|
|
9558
|
+
You can only use the ``DeploymentAlarms`` method to detect failures when the ``DeploymentController`` is set to ``ECS`` .
|
|
9559
9559
|
|
|
9560
9560
|
For more information, see `Rolling update <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html>`_ in the **Amazon Elastic Container Service Developer Guide** .
|
|
9561
9561
|
|
|
@@ -9930,7 +9930,7 @@ class CfnService(
|
|
|
9930
9930
|
def __init__(self, *, type: typing.Optional[builtins.str] = None) -> None:
|
|
9931
9931
|
'''The deployment controller to use for the service.
|
|
9932
9932
|
|
|
9933
|
-
:param type: The deployment controller type to use.
|
|
9933
|
+
:param type: The deployment controller type to use. The deployment controller is the mechanism that determines how tasks are deployed for your service. The valid options are: - ECS When you create a service which uses the ``ECS`` deployment controller, you can choose between the following deployment strategies: - ``ROLLING`` : When you create a service which uses the *rolling update* ( ``ROLLING`` ) deployment strategy, the Amazon ECS service scheduler replaces the currently running tasks with new tasks. The number of tasks that Amazon ECS adds or removes from the service during a rolling update is controlled by the service deployment configuration. Rolling update deployments are best suited for the following scenarios: - Gradual service updates: You need to update your service incrementally without taking the entire service offline at once. - Limited resource requirements: You want to avoid the additional resource costs of running two complete environments simultaneously (as required by blue/green deployments). - Acceptable deployment time: Your application can tolerate a longer deployment process, as rolling updates replace tasks one by one. - No need for instant roll back: Your service can tolerate a rollback process that takes minutes rather than seconds. - Simple deployment process: You prefer a straightforward deployment approach without the complexity of managing multiple environments, target groups, and listeners. - No load balancer requirement: Your service doesn't use or require a load balancer, Application Load Balancer , Network Load Balancer , or Service Connect (which are required for blue/green deployments). - Stateful applications: Your application maintains state that makes it difficult to run two parallel environments. - Cost sensitivity: You want to minimize deployment costs by not running duplicate environments during deployment. Rolling updates are the default deployment strategy for services and provide a balance between deployment safety and resource efficiency for many common application scenarios. - ``BLUE_GREEN`` : A *blue/green* deployment strategy ( ``BLUE_GREEN`` ) is a release methodology that reduces downtime and risk by running two identical production environments called blue and green. With Amazon ECS blue/green deployments, you can validate new service revisions before directing production traffic to them. This approach provides a safer way to deploy changes with the ability to quickly roll back if needed. Amazon ECS blue/green deployments are best suited for the following scenarios: - Service validation: When you need to validate new service revisions before directing production traffic to them - Zero downtime: When your service requires zero-downtime deployments - Instant roll back: When you need the ability to quickly roll back if issues are detected - Load balancer requirement: When your service uses Application Load Balancer , Network Load Balancer , or Service Connect - External Use a third-party deployment controller. - Blue/green deployment (powered by CodeDeploy ) CodeDeploy installs an updated version of the application as a new replacement task set and reroutes production traffic from the original application task set to the replacement task set. The original task set is terminated after a successful deployment. Use this deployment controller to verify a new deployment of a service before sending production traffic to it. When updating the deployment controller for a service, consider the following depending on the type of migration you're performing. - If you have a template that contains the ``EXTERNAL`` deployment controller information as well as ``TaskSet`` and ``PrimaryTaskSet`` resources, and you remove the task set resources from the template when updating from ``EXTERNAL`` to ``ECS`` , the ``DescribeTaskSet`` and ``DeleteTaskSet`` API calls will return a 400 error after the deployment controller is updated to ``ECS`` . This results in a delete failure on the task set resources, even though the stack transitions to ``UPDATE_COMPLETE`` status. For more information, see `Resource removed from stack but not deleted <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-resource-removed-not-deleted>`_ in the AWS CloudFormation User Guide. To fix this issue, delete the task sets directly using the Amazon ECS ``DeleteTaskSet`` API. For more information about how to delete a task set, see `DeleteTaskSet <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskSet.html>`_ in the Amazon Elastic Container Service API Reference. - If you're migrating from ``CODE_DEPLOY`` to ``ECS`` with a new task definition and AWS CloudFormation performs a rollback operation, the Amazon ECS ``UpdateService`` request fails with the following error: Resource handler returned message: "Invalid request provided: Unable to update task definition on services with a CODE_DEPLOY deployment controller. - After a successful migration from ``ECS`` to ``EXTERNAL`` deployment controller, you need to manually remove the ``ACTIVE`` task set, because Amazon ECS no longer manages the deployment. For information about how to delete a task set, see `DeleteTaskSet <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskSet.html>`_ in the Amazon Elastic Container Service API Reference.
|
|
9934
9934
|
|
|
9935
9935
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcontroller.html
|
|
9936
9936
|
:exampleMetadata: fixture=_generated
|
|
@@ -9954,11 +9954,53 @@ class CfnService(
|
|
|
9954
9954
|
|
|
9955
9955
|
@builtins.property
|
|
9956
9956
|
def type(self) -> typing.Optional[builtins.str]:
|
|
9957
|
-
'''The deployment controller type to use.
|
|
9957
|
+
'''The deployment controller type to use.
|
|
9958
9958
|
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
-
|
|
9959
|
+
The deployment controller is the mechanism that determines how tasks are deployed for your service. The valid options are:
|
|
9960
|
+
|
|
9961
|
+
- ECS
|
|
9962
|
+
|
|
9963
|
+
When you create a service which uses the ``ECS`` deployment controller, you can choose between the following deployment strategies:
|
|
9964
|
+
|
|
9965
|
+
- ``ROLLING`` : When you create a service which uses the *rolling update* ( ``ROLLING`` ) deployment strategy, the Amazon ECS service scheduler replaces the currently running tasks with new tasks. The number of tasks that Amazon ECS adds or removes from the service during a rolling update is controlled by the service deployment configuration.
|
|
9966
|
+
|
|
9967
|
+
Rolling update deployments are best suited for the following scenarios:
|
|
9968
|
+
|
|
9969
|
+
- Gradual service updates: You need to update your service incrementally without taking the entire service offline at once.
|
|
9970
|
+
- Limited resource requirements: You want to avoid the additional resource costs of running two complete environments simultaneously (as required by blue/green deployments).
|
|
9971
|
+
- Acceptable deployment time: Your application can tolerate a longer deployment process, as rolling updates replace tasks one by one.
|
|
9972
|
+
- No need for instant roll back: Your service can tolerate a rollback process that takes minutes rather than seconds.
|
|
9973
|
+
- Simple deployment process: You prefer a straightforward deployment approach without the complexity of managing multiple environments, target groups, and listeners.
|
|
9974
|
+
- No load balancer requirement: Your service doesn't use or require a load balancer, Application Load Balancer , Network Load Balancer , or Service Connect (which are required for blue/green deployments).
|
|
9975
|
+
- Stateful applications: Your application maintains state that makes it difficult to run two parallel environments.
|
|
9976
|
+
- Cost sensitivity: You want to minimize deployment costs by not running duplicate environments during deployment.
|
|
9977
|
+
|
|
9978
|
+
Rolling updates are the default deployment strategy for services and provide a balance between deployment safety and resource efficiency for many common application scenarios.
|
|
9979
|
+
|
|
9980
|
+
- ``BLUE_GREEN`` : A *blue/green* deployment strategy ( ``BLUE_GREEN`` ) is a release methodology that reduces downtime and risk by running two identical production environments called blue and green. With Amazon ECS blue/green deployments, you can validate new service revisions before directing production traffic to them. This approach provides a safer way to deploy changes with the ability to quickly roll back if needed.
|
|
9981
|
+
|
|
9982
|
+
Amazon ECS blue/green deployments are best suited for the following scenarios:
|
|
9983
|
+
|
|
9984
|
+
- Service validation: When you need to validate new service revisions before directing production traffic to them
|
|
9985
|
+
- Zero downtime: When your service requires zero-downtime deployments
|
|
9986
|
+
- Instant roll back: When you need the ability to quickly roll back if issues are detected
|
|
9987
|
+
- Load balancer requirement: When your service uses Application Load Balancer , Network Load Balancer , or Service Connect
|
|
9988
|
+
- External
|
|
9989
|
+
|
|
9990
|
+
Use a third-party deployment controller.
|
|
9991
|
+
|
|
9992
|
+
- Blue/green deployment (powered by CodeDeploy )
|
|
9993
|
+
|
|
9994
|
+
CodeDeploy installs an updated version of the application as a new replacement task set and reroutes production traffic from the original application task set to the replacement task set. The original task set is terminated after a successful deployment. Use this deployment controller to verify a new deployment of a service before sending production traffic to it.
|
|
9995
|
+
|
|
9996
|
+
When updating the deployment controller for a service, consider the following depending on the type of migration you're performing.
|
|
9997
|
+
|
|
9998
|
+
- If you have a template that contains the ``EXTERNAL`` deployment controller information as well as ``TaskSet`` and ``PrimaryTaskSet`` resources, and you remove the task set resources from the template when updating from ``EXTERNAL`` to ``ECS`` , the ``DescribeTaskSet`` and ``DeleteTaskSet`` API calls will return a 400 error after the deployment controller is updated to ``ECS`` . This results in a delete failure on the task set resources, even though the stack transitions to ``UPDATE_COMPLETE`` status. For more information, see `Resource removed from stack but not deleted <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-resource-removed-not-deleted>`_ in the AWS CloudFormation User Guide. To fix this issue, delete the task sets directly using the Amazon ECS ``DeleteTaskSet`` API. For more information about how to delete a task set, see `DeleteTaskSet <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskSet.html>`_ in the Amazon Elastic Container Service API Reference.
|
|
9999
|
+
- If you're migrating from ``CODE_DEPLOY`` to ``ECS`` with a new task definition and AWS CloudFormation performs a rollback operation, the Amazon ECS ``UpdateService`` request fails with the following error:
|
|
10000
|
+
|
|
10001
|
+
Resource handler returned message: "Invalid request provided: Unable to update task definition on services with a CODE_DEPLOY deployment controller.
|
|
10002
|
+
|
|
10003
|
+
- After a successful migration from ``ECS`` to ``EXTERNAL`` deployment controller, you need to manually remove the ``ACTIVE`` task set, because Amazon ECS no longer manages the deployment. For information about how to delete a task set, see `DeleteTaskSet <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskSet.html>`_ in the Amazon Elastic Container Service API Reference.
|
|
9962
10004
|
|
|
9963
10005
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcontroller.html#cfn-ecs-service-deploymentcontroller-type
|
|
9964
10006
|
'''
|
|
@@ -12429,9 +12471,9 @@ class CfnServiceProps:
|
|
|
12429
12471
|
:param capacity_provider_strategy: The capacity provider strategy to use for the service. If a ``capacityProviderStrategy`` is specified, the ``launchType`` parameter must be omitted. If no ``capacityProviderStrategy`` or ``launchType`` is specified, the ``defaultCapacityProviderStrategy`` for the cluster is used. A capacity provider strategy can contain a maximum of 20 capacity providers. .. epigraph:: To remove this property from your service resource, specify an empty ``CapacityProviderStrategyItem`` array.
|
|
12430
12472
|
:param cluster: The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed.
|
|
12431
12473
|
:param deployment_configuration: Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
|
|
12432
|
-
:param deployment_controller: The deployment controller to use for the service.
|
|
12474
|
+
:param deployment_controller: The deployment controller to use for the service.
|
|
12433
12475
|
:param desired_count: The number of instantiations of the specified task definition to place and keep running in your service. For new services, if a desired count is not specified, a default value of ``1`` is used. When using the ``DAEMON`` scheduling strategy, the desired count is not required. For existing services, if a desired count is not specified, it is omitted from the operation.
|
|
12434
|
-
:param enable_ecs_managed_tags: Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging your Amazon ECS resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ in the *Amazon Elastic Container Service Developer Guide* . When you use Amazon ECS managed tags, you
|
|
12476
|
+
:param enable_ecs_managed_tags: Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see `Tagging your Amazon ECS resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ in the *Amazon Elastic Container Service Developer Guide* . When you use Amazon ECS managed tags, you must set the ``propagateTags`` request parameter.
|
|
12435
12477
|
:param enable_execute_command: Determines whether the execute command functionality is turned on for the service. If ``true`` , the execute command functionality is turned on for all containers in tasks as part of the service.
|
|
12436
12478
|
:param health_check_grace_period_seconds: The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't specify a health check grace period value, the default value of ``0`` is used. If you don't use any of the health checks, then ``healthCheckGracePeriodSeconds`` is unused. If your service's tasks take a while to start and respond to health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
|
|
12437
12479
|
:param launch_type: The launch type on which to run your service. For more information, see `Amazon ECS Launch Types <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
@@ -12771,8 +12813,6 @@ class CfnServiceProps:
|
|
|
12771
12813
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnService.DeploymentControllerProperty]]:
|
|
12772
12814
|
'''The deployment controller to use for the service.
|
|
12773
12815
|
|
|
12774
|
-
If no deployment controller is specified, the default value of ``ECS`` is used.
|
|
12775
|
-
|
|
12776
12816
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-deploymentcontroller
|
|
12777
12817
|
'''
|
|
12778
12818
|
result = self._values.get("deployment_controller")
|
|
@@ -12799,7 +12839,7 @@ class CfnServiceProps:
|
|
|
12799
12839
|
|
|
12800
12840
|
For more information, see `Tagging your Amazon ECS resources <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
12801
12841
|
|
|
12802
|
-
When you use Amazon ECS managed tags, you
|
|
12842
|
+
When you use Amazon ECS managed tags, you must set the ``propagateTags`` request parameter.
|
|
12803
12843
|
|
|
12804
12844
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-enableecsmanagedtags
|
|
12805
12845
|
'''
|
|
@@ -33949,11 +33989,7 @@ class NetworkMode(enum.Enum):
|
|
|
33949
33989
|
single container instance when port mappings are used.
|
|
33950
33990
|
'''
|
|
33951
33991
|
NAT = "NAT"
|
|
33952
|
-
'''The task utilizes
|
|
33953
|
-
|
|
33954
|
-
This is the only supported network mode for Windows containers. For more information, see
|
|
33955
|
-
`Task Definition Parameters <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#network_mode>`_.
|
|
33956
|
-
'''
|
|
33992
|
+
'''The task utilizes Docker's built-in virtual network which runs inside each Windows container instance.'''
|
|
33957
33993
|
|
|
33958
33994
|
|
|
33959
33995
|
class OperatingSystemFamily(
|
|
@@ -34049,6 +34085,18 @@ class OperatingSystemFamily(
|
|
|
34049
34085
|
'''WINDOWS_SERVER_2022_FULL.'''
|
|
34050
34086
|
return typing.cast("OperatingSystemFamily", jsii.sget(cls, "WINDOWS_SERVER_2022_FULL"))
|
|
34051
34087
|
|
|
34088
|
+
@jsii.python.classproperty
|
|
34089
|
+
@jsii.member(jsii_name="WINDOWS_SERVER_2025_CORE")
|
|
34090
|
+
def WINDOWS_SERVER_2025_CORE(cls) -> "OperatingSystemFamily":
|
|
34091
|
+
'''WINDOWS_SERVER_2025_CORE.'''
|
|
34092
|
+
return typing.cast("OperatingSystemFamily", jsii.sget(cls, "WINDOWS_SERVER_2025_CORE"))
|
|
34093
|
+
|
|
34094
|
+
@jsii.python.classproperty
|
|
34095
|
+
@jsii.member(jsii_name="WINDOWS_SERVER_2025_FULL")
|
|
34096
|
+
def WINDOWS_SERVER_2025_FULL(cls) -> "OperatingSystemFamily":
|
|
34097
|
+
'''WINDOWS_SERVER_2025_FULL.'''
|
|
34098
|
+
return typing.cast("OperatingSystemFamily", jsii.sget(cls, "WINDOWS_SERVER_2025_FULL"))
|
|
34099
|
+
|
|
34052
34100
|
@jsii.python.classproperty
|
|
34053
34101
|
@jsii.member(jsii_name="WINDOWS_SERVER_20H2_CORE")
|
|
34054
34102
|
def WINDOWS_SERVER_20_H2_CORE(cls) -> "OperatingSystemFamily":
|
|
@@ -39861,6 +39909,7 @@ class VolumeFrom:
|
|
|
39861
39909
|
class WindowsOptimizedVersion(enum.Enum):
|
|
39862
39910
|
'''ECS-optimized Windows version list.'''
|
|
39863
39911
|
|
|
39912
|
+
SERVER_2025 = "SERVER_2025"
|
|
39864
39913
|
SERVER_2022 = "SERVER_2022"
|
|
39865
39914
|
SERVER_2019 = "SERVER_2019"
|
|
39866
39915
|
SERVER_2016 = "SERVER_2016"
|
|
@@ -4765,7 +4765,7 @@ class CfnGateway(
|
|
|
4765
4765
|
:param gateway_name: A unique name for the gateway.
|
|
4766
4766
|
:param gateway_platform: The gateway's platform. You can only specify one platform in a gateway.
|
|
4767
4767
|
:param gateway_capability_summaries: A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines data sources for the gateway. To retrieve a capability configuration's definition, use `DescribeGatewayCapabilityConfiguration <https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html>`_ .
|
|
4768
|
-
:param gateway_version: The version of the gateway
|
|
4768
|
+
:param gateway_version: The version of the gateway you want to create.
|
|
4769
4769
|
:param tags: A list of key-value pairs that contain metadata for the gateway. For more information, see `Tagging your AWS IoT SiteWise resources <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html>`_ in the *AWS IoT SiteWise User Guide* .
|
|
4770
4770
|
'''
|
|
4771
4771
|
if __debug__:
|
|
@@ -4884,7 +4884,7 @@ class CfnGateway(
|
|
|
4884
4884
|
@builtins.property
|
|
4885
4885
|
@jsii.member(jsii_name="gatewayVersion")
|
|
4886
4886
|
def gateway_version(self) -> typing.Optional[builtins.str]:
|
|
4887
|
-
'''The version of the gateway.'''
|
|
4887
|
+
'''The version of the gateway you want to create.'''
|
|
4888
4888
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "gatewayVersion"))
|
|
4889
4889
|
|
|
4890
4890
|
@gateway_version.setter
|
|
@@ -4924,7 +4924,7 @@ class CfnGateway(
|
|
|
4924
4924
|
) -> None:
|
|
4925
4925
|
'''Contains a summary of a gateway capability configuration.
|
|
4926
4926
|
|
|
4927
|
-
:param capability_namespace: The namespace of the capability configuration. For example, if you configure OPC
|
|
4927
|
+
:param capability_namespace: The namespace of the capability configuration. For example, if you configure OPC UA sources for an MQTT-enabled gateway, your OPC-UA capability configuration has the namespace ``iotsitewise:opcuacollector:3`` .
|
|
4928
4928
|
:param capability_configuration: The JSON document that defines the configuration for the gateway capability. For more information, see `Configuring data sources (CLI) <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/configure-sources.html#configure-source-cli>`_ in the *AWS IoT SiteWise User Guide* .
|
|
4929
4929
|
|
|
4930
4930
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewaycapabilitysummary.html
|
|
@@ -4957,7 +4957,7 @@ class CfnGateway(
|
|
|
4957
4957
|
def capability_namespace(self) -> builtins.str:
|
|
4958
4958
|
'''The namespace of the capability configuration.
|
|
4959
4959
|
|
|
4960
|
-
For example, if you configure OPC
|
|
4960
|
+
For example, if you configure OPC UA sources for an MQTT-enabled gateway, your OPC-UA capability configuration has the namespace ``iotsitewise:opcuacollector:3`` .
|
|
4961
4961
|
|
|
4962
4962
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewaycapabilitysummary.html#cfn-iotsitewise-gateway-gatewaycapabilitysummary-capabilitynamespace
|
|
4963
4963
|
'''
|
|
@@ -5004,7 +5004,13 @@ class CfnGateway(
|
|
|
5004
5004
|
greengrass_v2: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGateway.GreengrassV2Property", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5005
5005
|
siemens_ie: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGateway.SiemensIEProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5006
5006
|
) -> None:
|
|
5007
|
-
'''
|
|
5007
|
+
'''The gateway's platform configuration. You can only specify one platform type in a gateway.
|
|
5008
|
+
|
|
5009
|
+
(Legacy only) For Greengrass V1 gateways, specify the ``greengrass`` parameter with a valid Greengrass group ARN.
|
|
5010
|
+
|
|
5011
|
+
For Greengrass V2 gateways, specify the ``greengrassV2`` parameter with a valid core device thing name. If creating a V3 gateway ( ``gatewayVersion=3`` ), you must also specify the ``coreDeviceOperatingSystem`` .
|
|
5012
|
+
|
|
5013
|
+
For Siemens Industrial Edge gateways, specify the ``siemensIE`` parameter with a valid IoT Core thing name.
|
|
5008
5014
|
|
|
5009
5015
|
:param greengrass:
|
|
5010
5016
|
:param greengrass_v2: A gateway that runs on AWS IoT Greengrass V2 .
|
|
@@ -5297,7 +5303,7 @@ class CfnGatewayProps:
|
|
|
5297
5303
|
:param gateway_name: A unique name for the gateway.
|
|
5298
5304
|
:param gateway_platform: The gateway's platform. You can only specify one platform in a gateway.
|
|
5299
5305
|
:param gateway_capability_summaries: A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines data sources for the gateway. To retrieve a capability configuration's definition, use `DescribeGatewayCapabilityConfiguration <https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html>`_ .
|
|
5300
|
-
:param gateway_version: The version of the gateway
|
|
5306
|
+
:param gateway_version: The version of the gateway you want to create.
|
|
5301
5307
|
:param tags: A list of key-value pairs that contain metadata for the gateway. For more information, see `Tagging your AWS IoT SiteWise resources <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html>`_ in the *AWS IoT SiteWise User Guide* .
|
|
5302
5308
|
|
|
5303
5309
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html
|
|
@@ -5397,9 +5403,7 @@ class CfnGatewayProps:
|
|
|
5397
5403
|
|
|
5398
5404
|
@builtins.property
|
|
5399
5405
|
def gateway_version(self) -> typing.Optional[builtins.str]:
|
|
5400
|
-
'''The version of the gateway.
|
|
5401
|
-
|
|
5402
|
-
A value of ``3`` indicates an MQTT-enabled, V3 gateway, while ``2`` indicates a Classic streams, V2 gateway.
|
|
5406
|
+
'''The version of the gateway you want to create.
|
|
5403
5407
|
|
|
5404
5408
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html#cfn-iotsitewise-gateway-gatewayversion
|
|
5405
5409
|
'''
|
aws_cdk/aws_kms/__init__.py
CHANGED
|
@@ -2751,29 +2751,31 @@ class KeyProps:
|
|
|
2751
2751
|
:param removal_policy: Whether the encryption key should be retained when it is removed from the Stack. This is useful when one wants to retain access to data that was encrypted with a key that is being retired. Default: RemovalPolicy.Retain
|
|
2752
2752
|
:param rotation_period: The period between each automatic rotation. Default: - set by CFN to 365 days.
|
|
2753
2753
|
|
|
2754
|
-
:exampleMetadata: infused
|
|
2754
|
+
:exampleMetadata: fixture=default infused
|
|
2755
2755
|
|
|
2756
2756
|
Example::
|
|
2757
2757
|
|
|
2758
|
-
|
|
2759
|
-
|
|
2758
|
+
cmk = kms.Key(self, "cmk")
|
|
2759
|
+
claude_model = bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_SONNET_V1_0
|
|
2760
2760
|
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2761
|
+
variant1 = bedrock.PromptVariant.text(
|
|
2762
|
+
variant_name="variant1",
|
|
2763
|
+
model=claude_model,
|
|
2764
|
+
prompt_variables=["topic"],
|
|
2765
|
+
prompt_text="This is my first text prompt. Please summarize our conversation on: {{topic}}.",
|
|
2766
|
+
inference_configuration=bedrock.PromptInferenceConfiguration.text(
|
|
2767
|
+
temperature=1,
|
|
2768
|
+
top_p=0.999,
|
|
2769
|
+
max_tokens=2000
|
|
2770
|
+
)
|
|
2765
2771
|
)
|
|
2766
2772
|
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
)
|
|
2774
|
-
deploy_stage = pipeline.add_stage(
|
|
2775
|
-
stage_name="Deploy",
|
|
2776
|
-
actions=[deploy_action]
|
|
2773
|
+
prompt1 = bedrock.Prompt(self, "prompt1",
|
|
2774
|
+
prompt_name="prompt1",
|
|
2775
|
+
description="my first prompt",
|
|
2776
|
+
default_variant=variant1,
|
|
2777
|
+
variants=[variant1],
|
|
2778
|
+
kms_key=cmk
|
|
2777
2779
|
)
|
|
2778
2780
|
'''
|
|
2779
2781
|
if __debug__:
|