aws-cdk-lib 2.143.1__py3-none-any.whl → 2.145.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 +1 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.143.1.jsii.tgz → aws-cdk-lib@2.145.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +27 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +28 -0
- aws_cdk/aws_appconfig/__init__.py +132 -1
- aws_cdk/aws_autoscaling/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +149 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +65 -9
- aws_cdk/aws_codebuild/__init__.py +801 -16
- aws_cdk/aws_config/__init__.py +1305 -45
- aws_cdk/aws_dynamodb/__init__.py +309 -3
- aws_cdk/aws_ec2/__init__.py +112 -31
- aws_cdk/aws_ecs_patterns/__init__.py +89 -7
- aws_cdk/aws_eks/__init__.py +185 -41
- aws_cdk/aws_fsx/__init__.py +4 -4
- aws_cdk/aws_glue/__init__.py +39 -0
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +605 -42
- aws_cdk/aws_lambda_nodejs/__init__.py +160 -13
- aws_cdk/aws_logs/__init__.py +114 -8
- aws_cdk/aws_logs_destinations/__init__.py +11 -9
- aws_cdk/aws_mediaconnect/__init__.py +2 -6
- aws_cdk/aws_medialive/__init__.py +20 -2
- aws_cdk/aws_mediapackagev2/__init__.py +476 -0
- aws_cdk/aws_rds/__init__.py +27 -19
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_s3/__init__.py +21 -0
- aws_cdk/aws_s3_deployment/__init__.py +3 -2
- aws_cdk/aws_securityhub/__init__.py +2415 -374
- aws_cdk/aws_securitylake/__init__.py +179 -314
- aws_cdk/aws_sqs/__init__.py +2 -2
- aws_cdk/aws_stepfunctions/__init__.py +53 -24
- aws_cdk/aws_stepfunctions_tasks/__init__.py +763 -16
- aws_cdk/pipelines/__init__.py +2 -0
- aws_cdk/triggers/__init__.py +65 -9
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/RECORD +43 -43
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -2075,7 +2075,7 @@ class ArnComponents:
|
|
|
2075
2075
|
|
|
2076
2076
|
# create the record
|
|
2077
2077
|
route53.CrossAccountZoneDelegationRecord(self, "delegate",
|
|
2078
|
-
delegated_zone=sub_zone,
|
|
2078
|
+
delegated_zone=sub_zone, # Note that an imported HostedZone is not supported as Name Servers info will not be available
|
|
2079
2079
|
parent_hosted_zone_name="someexample.com", # or you can use parentHostedZoneId
|
|
2080
2080
|
delegation_role=delegation_role
|
|
2081
2081
|
)
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -19,7 +19,7 @@ import aws_cdk.asset_node_proxy_agent_v6._jsii
|
|
|
19
19
|
import constructs._jsii
|
|
20
20
|
|
|
21
21
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
22
|
-
"aws-cdk-lib", "2.
|
|
22
|
+
"aws-cdk-lib", "2.145.0", __name__[0:-6], "aws-cdk-lib@2.145.0.jsii.tgz"
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
__all__ = [
|
|
Binary file
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
* [Lambda Authorizer](#lambda-authorizer)
|
|
19
19
|
* [IAM Authorizers](#iam-authorizer)
|
|
20
|
+
* [Import Issues](#import-issues)
|
|
21
|
+
|
|
22
|
+
* [DotNet Namespace](#dotnet-namespace)
|
|
23
|
+
* [Java Package](#java-package)
|
|
20
24
|
|
|
21
25
|
## Introduction
|
|
22
26
|
|
|
@@ -287,6 +291,29 @@ user.attach_inline_policy(iam.Policy(self, "AllowInvoke",
|
|
|
287
291
|
]
|
|
288
292
|
))
|
|
289
293
|
```
|
|
294
|
+
|
|
295
|
+
## Import Issues
|
|
296
|
+
|
|
297
|
+
`jsiirc.json` file is missing during the stablization process of this module, which caused import issues for DotNet and Java users who attempt to use this module. Unfortunately, to guarantee backward compatibility, we cannot simply correct the namespace for DotNet or package for Java. The following outlines the workaround.
|
|
298
|
+
|
|
299
|
+
### DotNet Namespace
|
|
300
|
+
|
|
301
|
+
Instead of the conventional namespace `Amazon.CDK.AWS.Apigatewayv2.Authorizers`, you would need to use the following namespace:
|
|
302
|
+
|
|
303
|
+
```cs
|
|
304
|
+
using Amazon.CDK.AwsApigatewayv2Authorizers;;
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Java Package
|
|
308
|
+
|
|
309
|
+
Instead of conventional package `import software.amazon.awscdk.services.apigatewayv2_authorizers.*`, you would need to use the following package:
|
|
310
|
+
|
|
311
|
+
```java
|
|
312
|
+
import software.amazon.awscdk.aws_apigatewayv2_authorizers.*;
|
|
313
|
+
|
|
314
|
+
// If you want to import a specific construct
|
|
315
|
+
import software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketIamAuthorizer;
|
|
316
|
+
```
|
|
290
317
|
'''
|
|
291
318
|
from pkgutil import extend_path
|
|
292
319
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -7,12 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
* [Lambda Integration](#lambda)
|
|
9
9
|
* [HTTP Proxy Integration](#http-proxy)
|
|
10
|
+
* [StepFunctions Integration](#stepfunctions-integration)
|
|
10
11
|
* [Private Integration](#private-integration)
|
|
11
12
|
* [Request Parameters](#request-parameters)
|
|
12
13
|
* [WebSocket APIs](#websocket-apis)
|
|
13
14
|
|
|
14
15
|
* [Lambda WebSocket Integration](#lambda-websocket-integration)
|
|
15
16
|
* [AWS WebSocket Integration](#aws-websocket-integration)
|
|
17
|
+
* [Import Issues](#import-issues)
|
|
18
|
+
|
|
19
|
+
* [DotNet Namespace](#dotnet-namespace)
|
|
20
|
+
* [Java Package](#java-package)
|
|
16
21
|
|
|
17
22
|
## HTTP APIs
|
|
18
23
|
|
|
@@ -316,6 +321,29 @@ web_socket_api.add_route("$connect",
|
|
|
316
321
|
|
|
317
322
|
You can also set additional properties to change the behavior of your integration, such as `contentHandling`.
|
|
318
323
|
See [Working with binary media types for WebSocket APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-develop-binary-media-types.html).
|
|
324
|
+
|
|
325
|
+
## Import Issues
|
|
326
|
+
|
|
327
|
+
`jsiirc.json` file is missing during the stablization process of this module, which caused import issues for DotNet and Java users who attempt to use this module. Unfortunately, to guarantee backward compatibility, we cannot simply correct the namespace for DotNet or package for Java. The following outlines the workaround.
|
|
328
|
+
|
|
329
|
+
### DotNet Namespace
|
|
330
|
+
|
|
331
|
+
Instead of the conventional namespace `Amazon.CDK.AWS.Apigatewayv2.Integrations`, you would need to use the following namespace:
|
|
332
|
+
|
|
333
|
+
```cs
|
|
334
|
+
using Amazon.CDK.AwsApigatewayv2Integrations;
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Java Package
|
|
338
|
+
|
|
339
|
+
Instead of conventional package `import software.amazon.awscdk.services.apigatewayv2_integrations.*`, you would need to use the following package:
|
|
340
|
+
|
|
341
|
+
```java
|
|
342
|
+
import software.amazon.awscdk.aws_apigatewayv2_integrations.*;
|
|
343
|
+
|
|
344
|
+
// If you want to import a specific construct
|
|
345
|
+
import software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketAwsIntegration;
|
|
346
|
+
```
|
|
319
347
|
'''
|
|
320
348
|
from pkgutil import extend_path
|
|
321
349
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -79,6 +79,25 @@ appconfig.Environment(self, "MyEnvironment",
|
|
|
79
79
|
Environment monitors also support L1 `CfnEnvironment.MonitorsProperty` constructs through the `fromCfnMonitorsProperty` method.
|
|
80
80
|
However, this is not the recommended approach for CloudWatch alarms because a role will not be auto-generated if not provided.
|
|
81
81
|
|
|
82
|
+
See [About the AWS AppConfig data plane service](https://docs.aws.amazon.com/appconfig/latest/userguide/about-data-plane.html) for more information.
|
|
83
|
+
|
|
84
|
+
### Permissions
|
|
85
|
+
|
|
86
|
+
You can grant read permission on the environment's configurations with the grantReadConfig method as follows:
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
import aws_cdk.aws_iam as iam
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
app = appconfig.Application(self, "MyAppConfig")
|
|
93
|
+
env = appconfig.Environment(self, "MyEnvironment",
|
|
94
|
+
application=app
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
user = iam.User(self, "MyUser")
|
|
98
|
+
env.grant_read_config(user)
|
|
99
|
+
```
|
|
100
|
+
|
|
82
101
|
## Deployment Strategy
|
|
83
102
|
|
|
84
103
|
[AWS AppConfig Deployment Strategy Documentation](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-deployment-strategy.html)
|
|
@@ -679,7 +698,10 @@ from ..aws_codepipeline import IPipeline as _IPipeline_0931f838
|
|
|
679
698
|
from ..aws_ecs import TaskDefinition as _TaskDefinition_a541a103
|
|
680
699
|
from ..aws_events import IEventBus as _IEventBus_88d13111
|
|
681
700
|
from ..aws_iam import (
|
|
682
|
-
|
|
701
|
+
Grant as _Grant_a7ae64f8,
|
|
702
|
+
IGrantable as _IGrantable_71c4f5de,
|
|
703
|
+
IRole as _IRole_235f5d8e,
|
|
704
|
+
PolicyDocument as _PolicyDocument_3ac34393,
|
|
683
705
|
)
|
|
684
706
|
from ..aws_kms import IKey as _IKey_5f11635f
|
|
685
707
|
from ..aws_lambda import (
|
|
@@ -7727,6 +7749,29 @@ class IEnvironment(_IResource_c80c4260, typing_extensions.Protocol):
|
|
|
7727
7749
|
'''
|
|
7728
7750
|
...
|
|
7729
7751
|
|
|
7752
|
+
@jsii.member(jsii_name="grant")
|
|
7753
|
+
def grant(
|
|
7754
|
+
self,
|
|
7755
|
+
grantee: _IGrantable_71c4f5de,
|
|
7756
|
+
*actions: builtins.str,
|
|
7757
|
+
) -> _Grant_a7ae64f8:
|
|
7758
|
+
'''Adds an IAM policy statement associated with this environment to an IAM principal's policy.
|
|
7759
|
+
|
|
7760
|
+
:param grantee: the principal (no-op if undefined).
|
|
7761
|
+
:param actions: the set of actions to allow (i.e., 'appconfig:GetLatestConfiguration', 'appconfig:StartConfigurationSession', etc.).
|
|
7762
|
+
'''
|
|
7763
|
+
...
|
|
7764
|
+
|
|
7765
|
+
@jsii.member(jsii_name="grantReadConfig")
|
|
7766
|
+
def grant_read_config(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
7767
|
+
'''Permits an IAM principal to perform read operations on this environment's configurations.
|
|
7768
|
+
|
|
7769
|
+
Actions: GetLatestConfiguration, StartConfigurationSession.
|
|
7770
|
+
|
|
7771
|
+
:param grantee: Principal to grant read rights to.
|
|
7772
|
+
'''
|
|
7773
|
+
...
|
|
7774
|
+
|
|
7730
7775
|
@jsii.member(jsii_name="on")
|
|
7731
7776
|
def on(
|
|
7732
7777
|
self,
|
|
@@ -7982,6 +8027,36 @@ class _IEnvironmentProxy(
|
|
|
7982
8027
|
check_type(argname="argument extension", value=extension, expected_type=type_hints["extension"])
|
|
7983
8028
|
return typing.cast(None, jsii.invoke(self, "addExtension", [extension]))
|
|
7984
8029
|
|
|
8030
|
+
@jsii.member(jsii_name="grant")
|
|
8031
|
+
def grant(
|
|
8032
|
+
self,
|
|
8033
|
+
grantee: _IGrantable_71c4f5de,
|
|
8034
|
+
*actions: builtins.str,
|
|
8035
|
+
) -> _Grant_a7ae64f8:
|
|
8036
|
+
'''Adds an IAM policy statement associated with this environment to an IAM principal's policy.
|
|
8037
|
+
|
|
8038
|
+
:param grantee: the principal (no-op if undefined).
|
|
8039
|
+
:param actions: the set of actions to allow (i.e., 'appconfig:GetLatestConfiguration', 'appconfig:StartConfigurationSession', etc.).
|
|
8040
|
+
'''
|
|
8041
|
+
if __debug__:
|
|
8042
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f223f0108afb5683d5788fc1fb9f93cbd4c76cb5698d6aae016951683e8148ee)
|
|
8043
|
+
check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
|
|
8044
|
+
check_type(argname="argument actions", value=actions, expected_type=typing.Tuple[type_hints["actions"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
8045
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grant", [grantee, *actions]))
|
|
8046
|
+
|
|
8047
|
+
@jsii.member(jsii_name="grantReadConfig")
|
|
8048
|
+
def grant_read_config(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
8049
|
+
'''Permits an IAM principal to perform read operations on this environment's configurations.
|
|
8050
|
+
|
|
8051
|
+
Actions: GetLatestConfiguration, StartConfigurationSession.
|
|
8052
|
+
|
|
8053
|
+
:param grantee: Principal to grant read rights to.
|
|
8054
|
+
'''
|
|
8055
|
+
if __debug__:
|
|
8056
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9980f2056195344785f7b36a405e0d1227ad963e409c454217caf9b0e4ab2c9d)
|
|
8057
|
+
check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
|
|
8058
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantReadConfig", [grantee]))
|
|
8059
|
+
|
|
7985
8060
|
@jsii.member(jsii_name="on")
|
|
7986
8061
|
def on(
|
|
7987
8062
|
self,
|
|
@@ -11480,6 +11555,36 @@ class Environment(
|
|
|
11480
11555
|
check_type(argname="argument extension", value=extension, expected_type=type_hints["extension"])
|
|
11481
11556
|
return typing.cast(None, jsii.invoke(self, "addExtension", [extension]))
|
|
11482
11557
|
|
|
11558
|
+
@jsii.member(jsii_name="grant")
|
|
11559
|
+
def grant(
|
|
11560
|
+
self,
|
|
11561
|
+
grantee: _IGrantable_71c4f5de,
|
|
11562
|
+
*actions: builtins.str,
|
|
11563
|
+
) -> _Grant_a7ae64f8:
|
|
11564
|
+
'''Adds an IAM policy statement associated with this environment to an IAM principal's policy.
|
|
11565
|
+
|
|
11566
|
+
:param grantee: -
|
|
11567
|
+
:param actions: -
|
|
11568
|
+
'''
|
|
11569
|
+
if __debug__:
|
|
11570
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9c65f9ec077d5abb2638f74671e3f2d65ef4fed80c0e32561b7b807b917e7d53)
|
|
11571
|
+
check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
|
|
11572
|
+
check_type(argname="argument actions", value=actions, expected_type=typing.Tuple[type_hints["actions"], ...]) # pyright: ignore [reportGeneralTypeIssues]
|
|
11573
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grant", [grantee, *actions]))
|
|
11574
|
+
|
|
11575
|
+
@jsii.member(jsii_name="grantReadConfig")
|
|
11576
|
+
def grant_read_config(self, identity: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
11577
|
+
'''Permits an IAM principal to perform read operations on this environment's configurations.
|
|
11578
|
+
|
|
11579
|
+
Actions: GetLatestConfiguration, StartConfigurationSession.
|
|
11580
|
+
|
|
11581
|
+
:param identity: -
|
|
11582
|
+
'''
|
|
11583
|
+
if __debug__:
|
|
11584
|
+
type_hints = typing.get_type_hints(_typecheckingstub__790a777ba7325eb4b088cf4fe3be2b4fdcc0c100050d537316abc7125c7f326f)
|
|
11585
|
+
check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
|
|
11586
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantReadConfig", [identity]))
|
|
11587
|
+
|
|
11483
11588
|
@jsii.member(jsii_name="on")
|
|
11484
11589
|
def on(
|
|
11485
11590
|
self,
|
|
@@ -13912,6 +14017,19 @@ def _typecheckingstub__21f3fd9d8706d2da33872e0f177690ef7904e1a5bffb8f09838105674
|
|
|
13912
14017
|
"""Type checking stubs"""
|
|
13913
14018
|
pass
|
|
13914
14019
|
|
|
14020
|
+
def _typecheckingstub__f223f0108afb5683d5788fc1fb9f93cbd4c76cb5698d6aae016951683e8148ee(
|
|
14021
|
+
grantee: _IGrantable_71c4f5de,
|
|
14022
|
+
*actions: builtins.str,
|
|
14023
|
+
) -> None:
|
|
14024
|
+
"""Type checking stubs"""
|
|
14025
|
+
pass
|
|
14026
|
+
|
|
14027
|
+
def _typecheckingstub__9980f2056195344785f7b36a405e0d1227ad963e409c454217caf9b0e4ab2c9d(
|
|
14028
|
+
grantee: _IGrantable_71c4f5de,
|
|
14029
|
+
) -> None:
|
|
14030
|
+
"""Type checking stubs"""
|
|
14031
|
+
pass
|
|
14032
|
+
|
|
13915
14033
|
def _typecheckingstub__a99dab2b60d71d853252dc1cd4c58e0db20f0d3344869d8b3c0078d823053f47(
|
|
13916
14034
|
action_point: ActionPoint,
|
|
13917
14035
|
event_destination: IEventDestination,
|
|
@@ -14591,6 +14709,19 @@ def _typecheckingstub__46eeb9c815b4c9f3f9ff6e64ae0bba20fa3057be7b74747b611ea6726
|
|
|
14591
14709
|
"""Type checking stubs"""
|
|
14592
14710
|
pass
|
|
14593
14711
|
|
|
14712
|
+
def _typecheckingstub__9c65f9ec077d5abb2638f74671e3f2d65ef4fed80c0e32561b7b807b917e7d53(
|
|
14713
|
+
grantee: _IGrantable_71c4f5de,
|
|
14714
|
+
*actions: builtins.str,
|
|
14715
|
+
) -> None:
|
|
14716
|
+
"""Type checking stubs"""
|
|
14717
|
+
pass
|
|
14718
|
+
|
|
14719
|
+
def _typecheckingstub__790a777ba7325eb4b088cf4fe3be2b4fdcc0c100050d537316abc7125c7f326f(
|
|
14720
|
+
identity: _IGrantable_71c4f5de,
|
|
14721
|
+
) -> None:
|
|
14722
|
+
"""Type checking stubs"""
|
|
14723
|
+
pass
|
|
14724
|
+
|
|
14594
14725
|
def _typecheckingstub__0c5b20c6ba105fc862af761c49db56fe32fde770ccf217e82ae6d4ae54bada0f(
|
|
14595
14726
|
action_point: ActionPoint,
|
|
14596
14727
|
event_destination: IEventDestination,
|
|
@@ -2574,7 +2574,7 @@ class CfnAutoScalingGroup(
|
|
|
2574
2574
|
:param metrics_collection: Enables the monitoring of group metrics of an Auto Scaling group. By default, these metrics are disabled.
|
|
2575
2575
|
:param mixed_instances_policy: An embedded object that specifies a mixed instances policy. The policy includes properties that not only define the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances (optional), and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities, but also the properties that specify the instance configuration information—the launch template and instance types. The policy can also include a weight for each instance type and different launch templates for individual instance types. For more information, see `Auto Scaling groups with multiple instance types and purchase options <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
2576
2576
|
:param new_instances_protected_from_scale_in: Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see `Use instance scale-in protection <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
2577
|
-
:param notification_configuration: (deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Auto
|
|
2577
|
+
:param notification_configuration: (deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Configure Amazon EC2 Auto Scaling resources <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html>`_. For more information, see `Get Amazon SNS notifications when your Auto Scaling group scales <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html>`_ in the *Amazon EC2 Auto Scaling User Guide*.
|
|
2578
2578
|
:param notification_configurations: Configures an Auto Scaling group to send notifications when specified events take place.
|
|
2579
2579
|
:param placement_group: The name of the placement group into which to launch your instances. For more information, see `Placement groups <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html>`_ in the *Amazon EC2 User Guide for Linux Instances* . .. epigraph:: A *cluster* placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a cluster placement group.
|
|
2580
2580
|
:param service_linked_role_arn: The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS service on your behalf. By default, Amazon EC2 Auto Scaling uses a service-linked role named ``AWSServiceRoleForAutoScaling`` , which it creates if it does not exist. For more information, see `Service-linked roles <https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
@@ -2998,7 +2998,7 @@ class CfnAutoScalingGroup(
|
|
|
2998
2998
|
def notification_configuration(
|
|
2999
2999
|
self,
|
|
3000
3000
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAutoScalingGroup.NotificationConfigurationProperty"]]:
|
|
3001
|
-
'''(deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Auto
|
|
3001
|
+
'''(deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Configure Amazon EC2 Auto Scaling resources <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html>`_. For more information, see `Get Amazon SNS notifications when your Auto Scaling group scales <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html>`_ in the *Amazon EC2 Auto Scaling User Guide*.
|
|
3002
3002
|
|
|
3003
3003
|
:deprecated: this property has been deprecated
|
|
3004
3004
|
|
|
@@ -5810,7 +5810,7 @@ class CfnAutoScalingGroupProps:
|
|
|
5810
5810
|
:param metrics_collection: Enables the monitoring of group metrics of an Auto Scaling group. By default, these metrics are disabled.
|
|
5811
5811
|
:param mixed_instances_policy: An embedded object that specifies a mixed instances policy. The policy includes properties that not only define the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances (optional), and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities, but also the properties that specify the instance configuration information—the launch template and instance types. The policy can also include a weight for each instance type and different launch templates for individual instance types. For more information, see `Auto Scaling groups with multiple instance types and purchase options <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
5812
5812
|
:param new_instances_protected_from_scale_in: Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see `Use instance scale-in protection <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
5813
|
-
:param notification_configuration: (deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Auto
|
|
5813
|
+
:param notification_configuration: (deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Configure Amazon EC2 Auto Scaling resources <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html>`_. For more information, see `Get Amazon SNS notifications when your Auto Scaling group scales <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html>`_ in the *Amazon EC2 Auto Scaling User Guide*.
|
|
5814
5814
|
:param notification_configurations: Configures an Auto Scaling group to send notifications when specified events take place.
|
|
5815
5815
|
:param placement_group: The name of the placement group into which to launch your instances. For more information, see `Placement groups <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html>`_ in the *Amazon EC2 User Guide for Linux Instances* . .. epigraph:: A *cluster* placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a cluster placement group.
|
|
5816
5816
|
:param service_linked_role_arn: The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS service on your behalf. By default, Amazon EC2 Auto Scaling uses a service-linked role named ``AWSServiceRoleForAutoScaling`` , which it creates if it does not exist. For more information, see `Service-linked roles <https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
@@ -6368,7 +6368,7 @@ class CfnAutoScalingGroupProps:
|
|
|
6368
6368
|
def notification_configuration(
|
|
6369
6369
|
self,
|
|
6370
6370
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAutoScalingGroup.NotificationConfigurationProperty]]:
|
|
6371
|
-
'''(deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Auto
|
|
6371
|
+
'''(deprecated) A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the `AWS::AutoScaling::AutoScalingGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html>`_ resource. For an example template snippet, see `Configure Amazon EC2 Auto Scaling resources <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html>`_. For more information, see `Get Amazon SNS notifications when your Auto Scaling group scales <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html>`_ in the *Amazon EC2 Auto Scaling User Guide*.
|
|
6372
6372
|
|
|
6373
6373
|
:deprecated: this property has been deprecated
|
|
6374
6374
|
|
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -6746,6 +6746,12 @@ class FoundationModelIdentifier(
|
|
|
6746
6746
|
'''Base model "amazon.titan-embed-text-v1:2:8k".'''
|
|
6747
6747
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_EMBED_TEXT_V1_2_8K"))
|
|
6748
6748
|
|
|
6749
|
+
@jsii.python.classproperty
|
|
6750
|
+
@jsii.member(jsii_name="AMAZON_TITAN_EMBED_TEXT_V2_0")
|
|
6751
|
+
def AMAZON_TITAN_EMBED_TEXT_V2_0(cls) -> "FoundationModelIdentifier":
|
|
6752
|
+
'''Base model "amazon.titan-embed-text-v2:0".'''
|
|
6753
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_EMBED_TEXT_V2_0"))
|
|
6754
|
+
|
|
6749
6755
|
@jsii.python.classproperty
|
|
6750
6756
|
@jsii.member(jsii_name="AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1")
|
|
6751
6757
|
def AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1(cls) -> "FoundationModelIdentifier":
|
|
@@ -6782,6 +6788,12 @@ class FoundationModelIdentifier(
|
|
|
6782
6788
|
'''Base model "amazon.titan-text-express-v1".'''
|
|
6783
6789
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_TEXT_G1_EXPRESS_V1"))
|
|
6784
6790
|
|
|
6791
|
+
@jsii.python.classproperty
|
|
6792
|
+
@jsii.member(jsii_name="AMAZON_TITAN_TEXT_G1_LITE_V1")
|
|
6793
|
+
def AMAZON_TITAN_TEXT_G1_LITE_V1(cls) -> "FoundationModelIdentifier":
|
|
6794
|
+
'''Base model "amazon.titan-text-lite-v1".'''
|
|
6795
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_TEXT_G1_LITE_V1"))
|
|
6796
|
+
|
|
6785
6797
|
@jsii.python.classproperty
|
|
6786
6798
|
@jsii.member(jsii_name="AMAZON_TITAN_TEXT_LITE_V1")
|
|
6787
6799
|
def AMAZON_TITAN_TEXT_LITE_V1(cls) -> "FoundationModelIdentifier":
|
|
@@ -6794,6 +6806,12 @@ class FoundationModelIdentifier(
|
|
|
6794
6806
|
'''Base model "amazon.titan-text-lite-v1:0:4k".'''
|
|
6795
6807
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_TEXT_LITE_V1_0_4K"))
|
|
6796
6808
|
|
|
6809
|
+
@jsii.python.classproperty
|
|
6810
|
+
@jsii.member(jsii_name="AMAZON_TITAN_TEXT_PREMIER_V1")
|
|
6811
|
+
def AMAZON_TITAN_TEXT_PREMIER_V1(cls) -> "FoundationModelIdentifier":
|
|
6812
|
+
'''Base model "amazon.titan-text-premier-v1:0".'''
|
|
6813
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_TEXT_PREMIER_V1"))
|
|
6814
|
+
|
|
6797
6815
|
@jsii.python.classproperty
|
|
6798
6816
|
@jsii.member(jsii_name="AMAZON_TITAN_TG1_LARGE")
|
|
6799
6817
|
def AMAZON_TITAN_TG1_LARGE(cls) -> "FoundationModelIdentifier":
|
|
@@ -6919,6 +6937,18 @@ class FoundationModelIdentifier(
|
|
|
6919
6937
|
'''Base model "cohere.command-light-text-v14".'''
|
|
6920
6938
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "COHERE_COMMAND_LIGHT_V14"))
|
|
6921
6939
|
|
|
6940
|
+
@jsii.python.classproperty
|
|
6941
|
+
@jsii.member(jsii_name="COHERE_COMMAND_R_PLUS_V1")
|
|
6942
|
+
def COHERE_COMMAND_R_PLUS_V1(cls) -> "FoundationModelIdentifier":
|
|
6943
|
+
'''Base model "cohere.command-r-v1:0".'''
|
|
6944
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "COHERE_COMMAND_R_PLUS_V1"))
|
|
6945
|
+
|
|
6946
|
+
@jsii.python.classproperty
|
|
6947
|
+
@jsii.member(jsii_name="COHERE_COMMAND_R_V1")
|
|
6948
|
+
def COHERE_COMMAND_R_V1(cls) -> "FoundationModelIdentifier":
|
|
6949
|
+
'''Base model "cohere.command-r-v1:0".'''
|
|
6950
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "COHERE_COMMAND_R_V1"))
|
|
6951
|
+
|
|
6922
6952
|
@jsii.python.classproperty
|
|
6923
6953
|
@jsii.member(jsii_name="COHERE_COMMAND_TEXT_V14_7_4K")
|
|
6924
6954
|
def COHERE_COMMAND_TEXT_V14_7_4_K(cls) -> "FoundationModelIdentifier":
|
|
@@ -6991,6 +7021,24 @@ class FoundationModelIdentifier(
|
|
|
6991
7021
|
'''Base model "meta.llama2-70b-chat-v1".'''
|
|
6992
7022
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_CHAT_70B_V1"))
|
|
6993
7023
|
|
|
7024
|
+
@jsii.python.classproperty
|
|
7025
|
+
@jsii.member(jsii_name="META_LLAMA_3_70_INSTRUCT_V1")
|
|
7026
|
+
def META_LLAMA_3_70_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
|
|
7027
|
+
'''Base model "meta.llama3-70b-instruct-v1:0".'''
|
|
7028
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_70_INSTRUCT_V1"))
|
|
7029
|
+
|
|
7030
|
+
@jsii.python.classproperty
|
|
7031
|
+
@jsii.member(jsii_name="META_LLAMA_3_8B_INSTRUCT_V1")
|
|
7032
|
+
def META_LLAMA_3_8_B_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
|
|
7033
|
+
'''Base model "meta.llama3-8b-instruct-v1:0".'''
|
|
7034
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_8B_INSTRUCT_V1"))
|
|
7035
|
+
|
|
7036
|
+
@jsii.python.classproperty
|
|
7037
|
+
@jsii.member(jsii_name="MISTRAL_LARGE_V0_1")
|
|
7038
|
+
def MISTRAL_LARGE_V0_1(cls) -> "FoundationModelIdentifier":
|
|
7039
|
+
'''Base model "mistral.mistral-large-2402-v1:0".'''
|
|
7040
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_LARGE_V0_1"))
|
|
7041
|
+
|
|
6994
7042
|
@jsii.python.classproperty
|
|
6995
7043
|
@jsii.member(jsii_name="MISTRAL_MISTRAL_7B_INSTRUCT_V0_2")
|
|
6996
7044
|
def MISTRAL_MISTRAL_7_B_INSTRUCT_V0_2(cls) -> "FoundationModelIdentifier":
|