aws-cdk-lib 2.208.0__py3-none-any.whl → 2.209.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 +31 -3
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.208.0.jsii.tgz → aws-cdk-lib@2.209.0.jsii.tgz} +0 -0
- aws_cdk/aws_bedrock/__init__.py +36 -30
- aws_cdk/aws_ec2/__init__.py +5 -5
- aws_cdk/aws_ecs/__init__.py +1436 -49
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +27 -15
- aws_cdk/aws_lambda/__init__.py +76 -67
- aws_cdk/aws_rds/__init__.py +6 -0
- aws_cdk/aws_route53/__init__.py +97 -41
- aws_cdk/cloud_assembly_schema/__init__.py +28 -2
- aws_cdk/custom_resources/__init__.py +1 -1
- {aws_cdk_lib-2.208.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.208.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/RECORD +18 -18
- {aws_cdk_lib-2.208.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.208.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.208.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.208.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -3552,6 +3552,7 @@ class Aws(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Aws"):
|
|
|
3552
3552
|
name_mapping={
|
|
3553
3553
|
"cloud_formation_execution_role_arn": "cloudFormationExecutionRoleArn",
|
|
3554
3554
|
"deploy_role_arn": "deployRoleArn",
|
|
3555
|
+
"qualifier": "qualifier",
|
|
3555
3556
|
},
|
|
3556
3557
|
)
|
|
3557
3558
|
class BootstraplessSynthesizerProps:
|
|
@@ -3560,11 +3561,13 @@ class BootstraplessSynthesizerProps:
|
|
|
3560
3561
|
*,
|
|
3561
3562
|
cloud_formation_execution_role_arn: typing.Optional[builtins.str] = None,
|
|
3562
3563
|
deploy_role_arn: typing.Optional[builtins.str] = None,
|
|
3564
|
+
qualifier: typing.Optional[builtins.str] = None,
|
|
3563
3565
|
) -> None:
|
|
3564
3566
|
'''Construction properties of ``BootstraplessSynthesizer``.
|
|
3565
3567
|
|
|
3566
3568
|
:param cloud_formation_execution_role_arn: The CFN execution Role ARN to use. Default: - No CloudFormation role (use CLI credentials)
|
|
3567
3569
|
:param deploy_role_arn: The deploy Role ARN to use. Default: - No deploy role (use CLI credentials)
|
|
3570
|
+
:param qualifier: The qualifier used to specialize strings. Can be used to specify custom bootstrapped role names Default: 'hnb659fds'
|
|
3568
3571
|
|
|
3569
3572
|
:exampleMetadata: fixture=_generated
|
|
3570
3573
|
|
|
@@ -3576,18 +3579,22 @@ class BootstraplessSynthesizerProps:
|
|
|
3576
3579
|
|
|
3577
3580
|
bootstrapless_synthesizer_props = cdk.BootstraplessSynthesizerProps(
|
|
3578
3581
|
cloud_formation_execution_role_arn="cloudFormationExecutionRoleArn",
|
|
3579
|
-
deploy_role_arn="deployRoleArn"
|
|
3582
|
+
deploy_role_arn="deployRoleArn",
|
|
3583
|
+
qualifier="qualifier"
|
|
3580
3584
|
)
|
|
3581
3585
|
'''
|
|
3582
3586
|
if __debug__:
|
|
3583
3587
|
type_hints = typing.get_type_hints(_typecheckingstub__3f56ec309bd76e41562731f3b986025649d4592e71caa79fed875d7020f66bfc)
|
|
3584
3588
|
check_type(argname="argument cloud_formation_execution_role_arn", value=cloud_formation_execution_role_arn, expected_type=type_hints["cloud_formation_execution_role_arn"])
|
|
3585
3589
|
check_type(argname="argument deploy_role_arn", value=deploy_role_arn, expected_type=type_hints["deploy_role_arn"])
|
|
3590
|
+
check_type(argname="argument qualifier", value=qualifier, expected_type=type_hints["qualifier"])
|
|
3586
3591
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3587
3592
|
if cloud_formation_execution_role_arn is not None:
|
|
3588
3593
|
self._values["cloud_formation_execution_role_arn"] = cloud_formation_execution_role_arn
|
|
3589
3594
|
if deploy_role_arn is not None:
|
|
3590
3595
|
self._values["deploy_role_arn"] = deploy_role_arn
|
|
3596
|
+
if qualifier is not None:
|
|
3597
|
+
self._values["qualifier"] = qualifier
|
|
3591
3598
|
|
|
3592
3599
|
@builtins.property
|
|
3593
3600
|
def cloud_formation_execution_role_arn(self) -> typing.Optional[builtins.str]:
|
|
@@ -3607,6 +3614,17 @@ class BootstraplessSynthesizerProps:
|
|
|
3607
3614
|
result = self._values.get("deploy_role_arn")
|
|
3608
3615
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
3609
3616
|
|
|
3617
|
+
@builtins.property
|
|
3618
|
+
def qualifier(self) -> typing.Optional[builtins.str]:
|
|
3619
|
+
'''The qualifier used to specialize strings.
|
|
3620
|
+
|
|
3621
|
+
Can be used to specify custom bootstrapped role names
|
|
3622
|
+
|
|
3623
|
+
:default: 'hnb659fds'
|
|
3624
|
+
'''
|
|
3625
|
+
result = self._values.get("qualifier")
|
|
3626
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3627
|
+
|
|
3610
3628
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3611
3629
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3612
3630
|
|
|
@@ -11614,7 +11632,12 @@ class CustomResourceProviderRuntime(enum.Enum):
|
|
|
11614
11632
|
:stability: deprecated
|
|
11615
11633
|
'''
|
|
11616
11634
|
NODEJS_16_X = "NODEJS_16_X"
|
|
11617
|
-
'''Node.js 16.x.
|
|
11635
|
+
'''(deprecated) Node.js 16.x.
|
|
11636
|
+
|
|
11637
|
+
:deprecated: Use latest version
|
|
11638
|
+
|
|
11639
|
+
:stability: deprecated
|
|
11640
|
+
'''
|
|
11618
11641
|
NODEJS_18_X = "NODEJS_18_X"
|
|
11619
11642
|
'''Node.js 18.x.'''
|
|
11620
11643
|
NODEJS_20_X = "NODEJS_20_X"
|
|
@@ -37436,7 +37459,8 @@ class BootstraplessSynthesizer(
|
|
|
37436
37459
|
|
|
37437
37460
|
bootstrapless_synthesizer = cdk.BootstraplessSynthesizer(
|
|
37438
37461
|
cloud_formation_execution_role_arn="cloudFormationExecutionRoleArn",
|
|
37439
|
-
deploy_role_arn="deployRoleArn"
|
|
37462
|
+
deploy_role_arn="deployRoleArn",
|
|
37463
|
+
qualifier="qualifier"
|
|
37440
37464
|
)
|
|
37441
37465
|
'''
|
|
37442
37466
|
|
|
@@ -37445,14 +37469,17 @@ class BootstraplessSynthesizer(
|
|
|
37445
37469
|
*,
|
|
37446
37470
|
cloud_formation_execution_role_arn: typing.Optional[builtins.str] = None,
|
|
37447
37471
|
deploy_role_arn: typing.Optional[builtins.str] = None,
|
|
37472
|
+
qualifier: typing.Optional[builtins.str] = None,
|
|
37448
37473
|
) -> None:
|
|
37449
37474
|
'''
|
|
37450
37475
|
:param cloud_formation_execution_role_arn: The CFN execution Role ARN to use. Default: - No CloudFormation role (use CLI credentials)
|
|
37451
37476
|
:param deploy_role_arn: The deploy Role ARN to use. Default: - No deploy role (use CLI credentials)
|
|
37477
|
+
:param qualifier: The qualifier used to specialize strings. Can be used to specify custom bootstrapped role names Default: 'hnb659fds'
|
|
37452
37478
|
'''
|
|
37453
37479
|
props = BootstraplessSynthesizerProps(
|
|
37454
37480
|
cloud_formation_execution_role_arn=cloud_formation_execution_role_arn,
|
|
37455
37481
|
deploy_role_arn=deploy_role_arn,
|
|
37482
|
+
qualifier=qualifier,
|
|
37456
37483
|
)
|
|
37457
37484
|
|
|
37458
37485
|
jsii.create(self.__class__, self, [props])
|
|
@@ -38696,6 +38723,7 @@ def _typecheckingstub__3f56ec309bd76e41562731f3b986025649d4592e71caa79fed875d702
|
|
|
38696
38723
|
*,
|
|
38697
38724
|
cloud_formation_execution_role_arn: typing.Optional[builtins.str] = None,
|
|
38698
38725
|
deploy_role_arn: typing.Optional[builtins.str] = None,
|
|
38726
|
+
qualifier: typing.Optional[builtins.str] = None,
|
|
38699
38727
|
) -> None:
|
|
38700
38728
|
"""Type checking stubs"""
|
|
38701
38729
|
pass
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -34,7 +34,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
34
34
|
import constructs._jsii
|
|
35
35
|
|
|
36
36
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
37
|
-
"aws-cdk-lib", "2.
|
|
37
|
+
"aws-cdk-lib", "2.209.0", __name__[0:-6], "aws-cdk-lib@2.209.0.jsii.tgz"
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
__all__ = [
|
|
Binary file
|
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -3539,27 +3539,30 @@ class CfnApplicationInferenceProfile(
|
|
|
3539
3539
|
|
|
3540
3540
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html
|
|
3541
3541
|
:cloudformationResource: AWS::Bedrock::ApplicationInferenceProfile
|
|
3542
|
-
:exampleMetadata: fixture=
|
|
3542
|
+
:exampleMetadata: fixture=default infused
|
|
3543
3543
|
|
|
3544
3544
|
Example::
|
|
3545
3545
|
|
|
3546
|
-
#
|
|
3547
|
-
|
|
3548
|
-
|
|
3546
|
+
# Create or reference an existing L1 CfnApplicationInferenceProfile
|
|
3547
|
+
cfn_profile = aws_bedrock_cfn.CfnApplicationInferenceProfile(self, "CfnProfile",
|
|
3548
|
+
inference_profile_name="my-cfn-profile",
|
|
3549
|
+
model_source=aws_bedrock_cfn.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty(
|
|
3550
|
+
copy_from=bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0.invokable_arn
|
|
3551
|
+
),
|
|
3552
|
+
description="Profile created via L1 construct"
|
|
3553
|
+
)
|
|
3549
3554
|
|
|
3550
|
-
|
|
3551
|
-
|
|
3555
|
+
# Import the L1 construct as an L2 ApplicationInferenceProfile
|
|
3556
|
+
imported_from_cfn = bedrock.ApplicationInferenceProfile.from_cfn_application_inference_profile(cfn_profile)
|
|
3552
3557
|
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
)
|
|
3558
|
-
tags=[CfnTag(
|
|
3559
|
-
key="key",
|
|
3560
|
-
value="value"
|
|
3561
|
-
)]
|
|
3558
|
+
# Grant permissions to use the imported profile
|
|
3559
|
+
lambda_function = lambda_.Function(self, "MyFunction",
|
|
3560
|
+
runtime=lambda_.Runtime.PYTHON_3_11,
|
|
3561
|
+
handler="index.handler",
|
|
3562
|
+
code=lambda_.Code.from_inline("def handler(event, context): return \"Hello\"")
|
|
3562
3563
|
)
|
|
3564
|
+
|
|
3565
|
+
imported_from_cfn.grant_profile_usage(lambda_function)
|
|
3563
3566
|
'''
|
|
3564
3567
|
|
|
3565
3568
|
def __init__(
|
|
@@ -3899,27 +3902,30 @@ class CfnApplicationInferenceProfileProps:
|
|
|
3899
3902
|
:param tags: A list of tags associated with the inference profile.
|
|
3900
3903
|
|
|
3901
3904
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html
|
|
3902
|
-
:exampleMetadata: fixture=
|
|
3905
|
+
:exampleMetadata: fixture=default infused
|
|
3903
3906
|
|
|
3904
3907
|
Example::
|
|
3905
3908
|
|
|
3906
|
-
#
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
+
# Create or reference an existing L1 CfnApplicationInferenceProfile
|
|
3910
|
+
cfn_profile = aws_bedrock_cfn.CfnApplicationInferenceProfile(self, "CfnProfile",
|
|
3911
|
+
inference_profile_name="my-cfn-profile",
|
|
3912
|
+
model_source=aws_bedrock_cfn.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty(
|
|
3913
|
+
copy_from=bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0.invokable_arn
|
|
3914
|
+
),
|
|
3915
|
+
description="Profile created via L1 construct"
|
|
3916
|
+
)
|
|
3909
3917
|
|
|
3910
|
-
|
|
3911
|
-
|
|
3918
|
+
# Import the L1 construct as an L2 ApplicationInferenceProfile
|
|
3919
|
+
imported_from_cfn = bedrock.ApplicationInferenceProfile.from_cfn_application_inference_profile(cfn_profile)
|
|
3912
3920
|
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
)
|
|
3918
|
-
tags=[CfnTag(
|
|
3919
|
-
key="key",
|
|
3920
|
-
value="value"
|
|
3921
|
-
)]
|
|
3921
|
+
# Grant permissions to use the imported profile
|
|
3922
|
+
lambda_function = lambda_.Function(self, "MyFunction",
|
|
3923
|
+
runtime=lambda_.Runtime.PYTHON_3_11,
|
|
3924
|
+
handler="index.handler",
|
|
3925
|
+
code=lambda_.Code.from_inline("def handler(event, context): return \"Hello\"")
|
|
3922
3926
|
)
|
|
3927
|
+
|
|
3928
|
+
imported_from_cfn.grant_profile_usage(lambda_function)
|
|
3923
3929
|
'''
|
|
3924
3930
|
if __debug__:
|
|
3925
3931
|
type_hints = typing.get_type_hints(_typecheckingstub__396027668dce29a45dd42acb9bb8358fa9135a15e45d6925e8a78acced3bd78d)
|
aws_cdk/aws_ec2/__init__.py
CHANGED
|
@@ -91143,15 +91143,15 @@ class ResolveSsmParameterAtLaunchImage(
|
|
|
91143
91143
|
jsii.create(self.__class__, self, [parameter_name, props])
|
|
91144
91144
|
|
|
91145
91145
|
@jsii.member(jsii_name="getImage")
|
|
91146
|
-
def get_image(self,
|
|
91146
|
+
def get_image(self, _scope: _constructs_77d1e7e8.Construct) -> MachineImageConfig:
|
|
91147
91147
|
'''Return the image to use in the given context.
|
|
91148
91148
|
|
|
91149
|
-
:param
|
|
91149
|
+
:param _scope: -
|
|
91150
91150
|
'''
|
|
91151
91151
|
if __debug__:
|
|
91152
91152
|
type_hints = typing.get_type_hints(_typecheckingstub__d20c701794e8ce600958b0084cd7254773f41a44aeda9ef5a9b369a5688d8019)
|
|
91153
|
-
check_type(argname="argument
|
|
91154
|
-
return typing.cast(MachineImageConfig, jsii.invoke(self, "getImage", [
|
|
91153
|
+
check_type(argname="argument _scope", value=_scope, expected_type=type_hints["_scope"])
|
|
91154
|
+
return typing.cast(MachineImageConfig, jsii.invoke(self, "getImage", [_scope]))
|
|
91155
91155
|
|
|
91156
91156
|
@builtins.property
|
|
91157
91157
|
@jsii.member(jsii_name="parameterName")
|
|
@@ -116417,7 +116417,7 @@ def _typecheckingstub__ae85933c688e38a0dd9faa69a685488b55c8c19f918eabcacbd33c964
|
|
|
116417
116417
|
pass
|
|
116418
116418
|
|
|
116419
116419
|
def _typecheckingstub__d20c701794e8ce600958b0084cd7254773f41a44aeda9ef5a9b369a5688d8019(
|
|
116420
|
-
|
|
116420
|
+
_scope: _constructs_77d1e7e8.Construct,
|
|
116421
116421
|
) -> None:
|
|
116422
116422
|
"""Type checking stubs"""
|
|
116423
116423
|
pass
|