aws-cdk-lib 2.185.0__py3-none-any.whl → 2.187.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 +383 -145
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.185.0.jsii.tgz → aws-cdk-lib@2.187.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +3 -2
- aws_cdk/aws_amplify/__init__.py +124 -0
- aws_cdk/aws_apigateway/__init__.py +48 -2
- aws_cdk/aws_apigatewayv2/__init__.py +9 -0
- aws_cdk/aws_appconfig/__init__.py +3 -3
- aws_cdk/aws_applicationsignals/__init__.py +363 -3
- aws_cdk/aws_appsync/__init__.py +74 -3
- aws_cdk/aws_bedrock/__init__.py +395 -14
- aws_cdk/aws_cassandra/__init__.py +2 -2
- aws_cdk/aws_cleanrooms/__init__.py +21 -9
- aws_cdk/aws_cloudformation/__init__.py +1 -5
- aws_cdk/aws_cloudfront/__init__.py +15 -1
- aws_cdk/aws_cloudfront_origins/__init__.py +4 -2
- aws_cdk/aws_cloudtrail/__init__.py +4 -18
- aws_cdk/aws_cloudwatch/__init__.py +50 -50
- aws_cdk/aws_codeartifact/__init__.py +20 -33
- aws_cdk/aws_codebuild/__init__.py +9 -0
- aws_cdk/aws_codepipeline/__init__.py +1328 -120
- aws_cdk/aws_cognito/__init__.py +1 -1
- aws_cdk/aws_cognito_identitypool/__init__.py +2303 -0
- aws_cdk/aws_config/__init__.py +2 -5
- aws_cdk/aws_connect/__init__.py +3 -7
- aws_cdk/aws_controltower/__init__.py +18 -26
- aws_cdk/aws_datazone/__init__.py +3540 -10
- aws_cdk/aws_detective/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +37 -0
- aws_cdk/aws_ec2/__init__.py +714 -37
- aws_cdk/aws_ecr/__init__.py +143 -0
- aws_cdk/aws_ecr_assets/__init__.py +115 -4
- aws_cdk/aws_ecs/__init__.py +66 -20
- aws_cdk/aws_eks/__init__.py +114 -0
- aws_cdk/aws_events/__init__.py +26 -6
- aws_cdk/aws_forecast/__init__.py +1 -1
- aws_cdk/aws_fsx/__init__.py +2 -2
- aws_cdk/aws_gamelift/__init__.py +11 -11
- aws_cdk/aws_iam/__init__.py +264 -0
- aws_cdk/aws_identitystore/__init__.py +16 -16
- aws_cdk/aws_imagebuilder/__init__.py +3 -27
- aws_cdk/aws_iotsitewise/__init__.py +623 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +2 -3
- aws_cdk/aws_kms/__init__.py +10 -11
- aws_cdk/aws_lakeformation/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +112 -5
- aws_cdk/aws_lambda_event_sources/__init__.py +65 -3
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
- aws_cdk/aws_lex/__init__.py +981 -5
- aws_cdk/aws_location/__init__.py +24 -7
- aws_cdk/aws_mediaconnect/__init__.py +714 -290
- aws_cdk/aws_msk/__init__.py +8 -2
- aws_cdk/aws_mwaa/__init__.py +9 -9
- aws_cdk/aws_networkfirewall/__init__.py +60 -12
- aws_cdk/aws_oam/__init__.py +8 -37
- aws_cdk/aws_omics/__init__.py +216 -0
- aws_cdk/aws_quicksight/__init__.py +250 -108
- aws_cdk/aws_rds/__init__.py +102 -10
- aws_cdk/aws_redshiftserverless/__init__.py +192 -15
- aws_cdk/aws_route53/__init__.py +2 -2
- aws_cdk/aws_route53recoverycontrol/__init__.py +43 -2
- aws_cdk/aws_rum/__init__.py +315 -52
- aws_cdk/aws_s3_assets/__init__.py +70 -1
- aws_cdk/aws_s3_deployment/__init__.py +4 -0
- aws_cdk/aws_sagemaker/__init__.py +6 -4
- aws_cdk/aws_scheduler/__init__.py +3944 -121
- aws_cdk/aws_scheduler_targets/__init__.py +4460 -0
- aws_cdk/aws_securitylake/__init__.py +2 -2
- aws_cdk/aws_servicecatalog/__init__.py +4 -0
- aws_cdk/aws_sns/__init__.py +1 -1
- aws_cdk/aws_ssmquicksetup/__init__.py +5 -3
- aws_cdk/aws_stepfunctions/__init__.py +8 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
- aws_cdk/aws_synthetics/__init__.py +9 -0
- aws_cdk/aws_systemsmanagersap/__init__.py +150 -0
- aws_cdk/aws_timestream/__init__.py +4 -4
- aws_cdk/aws_wafv2/__init__.py +1117 -1446
- aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
- aws_cdk/cloud_assembly_schema/__init__.py +60 -10
- aws_cdk/cx_api/__init__.py +38 -0
- aws_cdk/pipelines/__init__.py +20 -2
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/METADATA +4 -4
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/RECORD +87 -85
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -1562,6 +1562,108 @@ from .cx_api import (
|
|
|
1562
1562
|
)
|
|
1563
1563
|
|
|
1564
1564
|
|
|
1565
|
+
@jsii.data_type(
|
|
1566
|
+
jsii_type="aws-cdk-lib.AddDockerImageAssetOptions",
|
|
1567
|
+
jsii_struct_bases=[],
|
|
1568
|
+
name_mapping={"display_name": "displayName"},
|
|
1569
|
+
)
|
|
1570
|
+
class AddDockerImageAssetOptions:
|
|
1571
|
+
def __init__(self, *, display_name: typing.Optional[builtins.str] = None) -> None:
|
|
1572
|
+
'''Options for the addDockerImageAsset operation.
|
|
1573
|
+
|
|
1574
|
+
:param display_name: A display name to associate with the asset. Default: - No display name
|
|
1575
|
+
|
|
1576
|
+
:exampleMetadata: fixture=_generated
|
|
1577
|
+
|
|
1578
|
+
Example::
|
|
1579
|
+
|
|
1580
|
+
# The code below shows an example of how to instantiate this type.
|
|
1581
|
+
# The values are placeholders you should change.
|
|
1582
|
+
import aws_cdk as cdk
|
|
1583
|
+
|
|
1584
|
+
add_docker_image_asset_options = cdk.AddDockerImageAssetOptions(
|
|
1585
|
+
display_name="displayName"
|
|
1586
|
+
)
|
|
1587
|
+
'''
|
|
1588
|
+
if __debug__:
|
|
1589
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5a1ac212aad6af3e005718717aa2d00b8a797e24b74644f38d11d9f5ced18b43)
|
|
1590
|
+
check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
|
|
1591
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1592
|
+
if display_name is not None:
|
|
1593
|
+
self._values["display_name"] = display_name
|
|
1594
|
+
|
|
1595
|
+
@builtins.property
|
|
1596
|
+
def display_name(self) -> typing.Optional[builtins.str]:
|
|
1597
|
+
'''A display name to associate with the asset.
|
|
1598
|
+
|
|
1599
|
+
:default: - No display name
|
|
1600
|
+
'''
|
|
1601
|
+
result = self._values.get("display_name")
|
|
1602
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1603
|
+
|
|
1604
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1605
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1606
|
+
|
|
1607
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1608
|
+
return not (rhs == self)
|
|
1609
|
+
|
|
1610
|
+
def __repr__(self) -> str:
|
|
1611
|
+
return "AddDockerImageAssetOptions(%s)" % ", ".join(
|
|
1612
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1613
|
+
)
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
@jsii.data_type(
|
|
1617
|
+
jsii_type="aws-cdk-lib.AddFileAssetOptions",
|
|
1618
|
+
jsii_struct_bases=[],
|
|
1619
|
+
name_mapping={"display_name": "displayName"},
|
|
1620
|
+
)
|
|
1621
|
+
class AddFileAssetOptions:
|
|
1622
|
+
def __init__(self, *, display_name: typing.Optional[builtins.str] = None) -> None:
|
|
1623
|
+
'''Options for the addFileAsset operation.
|
|
1624
|
+
|
|
1625
|
+
:param display_name: A display name to associate with the asset. Default: - No display name
|
|
1626
|
+
|
|
1627
|
+
:exampleMetadata: fixture=_generated
|
|
1628
|
+
|
|
1629
|
+
Example::
|
|
1630
|
+
|
|
1631
|
+
# The code below shows an example of how to instantiate this type.
|
|
1632
|
+
# The values are placeholders you should change.
|
|
1633
|
+
import aws_cdk as cdk
|
|
1634
|
+
|
|
1635
|
+
add_file_asset_options = cdk.AddFileAssetOptions(
|
|
1636
|
+
display_name="displayName"
|
|
1637
|
+
)
|
|
1638
|
+
'''
|
|
1639
|
+
if __debug__:
|
|
1640
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3b7bb14c4d35bab2918fcff6fafc6bf8560391fa80cf7e743756928a3ff744a2)
|
|
1641
|
+
check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
|
|
1642
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1643
|
+
if display_name is not None:
|
|
1644
|
+
self._values["display_name"] = display_name
|
|
1645
|
+
|
|
1646
|
+
@builtins.property
|
|
1647
|
+
def display_name(self) -> typing.Optional[builtins.str]:
|
|
1648
|
+
'''A display name to associate with the asset.
|
|
1649
|
+
|
|
1650
|
+
:default: - No display name
|
|
1651
|
+
'''
|
|
1652
|
+
result = self._values.get("display_name")
|
|
1653
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1654
|
+
|
|
1655
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1656
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1657
|
+
|
|
1658
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1659
|
+
return not (rhs == self)
|
|
1660
|
+
|
|
1661
|
+
def __repr__(self) -> str:
|
|
1662
|
+
return "AddFileAssetOptions(%s)" % ", ".join(
|
|
1663
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1664
|
+
)
|
|
1665
|
+
|
|
1666
|
+
|
|
1565
1667
|
class Annotations(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Annotations"):
|
|
1566
1668
|
'''Includes API for attaching annotations such as warning messages to constructs.
|
|
1567
1669
|
|
|
@@ -2562,13 +2664,9 @@ class AssetManifestBuilder(
|
|
|
2562
2664
|
stack: "Stack",
|
|
2563
2665
|
source_hash: builtins.str,
|
|
2564
2666
|
source: typing.Union[_DockerImageSource_5db2cfa3, typing.Dict[builtins.str, typing.Any]],
|
|
2667
|
+
dest: typing.Union[_DockerImageDestination_132046c7, typing.Dict[builtins.str, typing.Any]],
|
|
2565
2668
|
*,
|
|
2566
|
-
|
|
2567
|
-
repository_name: builtins.str,
|
|
2568
|
-
assume_role_additional_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
2569
|
-
assume_role_arn: typing.Optional[builtins.str] = None,
|
|
2570
|
-
assume_role_external_id: typing.Optional[builtins.str] = None,
|
|
2571
|
-
region: typing.Optional[builtins.str] = None,
|
|
2669
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
2572
2670
|
) -> _DockerImageDestination_132046c7:
|
|
2573
2671
|
'''Add a docker asset source and destination to the manifest.
|
|
2574
2672
|
|
|
@@ -2577,28 +2675,18 @@ class AssetManifestBuilder(
|
|
|
2577
2675
|
:param stack: -
|
|
2578
2676
|
:param source_hash: -
|
|
2579
2677
|
:param source: -
|
|
2580
|
-
:param
|
|
2581
|
-
:param
|
|
2582
|
-
:param assume_role_additional_options: Additional options to pass to STS when assuming the role. - ``RoleArn`` should not be used. Use the dedicated ``assumeRoleArn`` property instead. - ``ExternalId`` should not be used. Use the dedicated ``assumeRoleExternalId`` instead. Default: - No additional options.
|
|
2583
|
-
:param assume_role_arn: The role that needs to be assumed while publishing this asset. Default: - No role will be assumed
|
|
2584
|
-
:param assume_role_external_id: The ExternalId that needs to be supplied while assuming this role. Default: - No ExternalId will be supplied
|
|
2585
|
-
:param region: The region where this asset will need to be published. Default: - Current region
|
|
2678
|
+
:param dest: -
|
|
2679
|
+
:param display_name: A display name to associate with the asset. Default: - No display name
|
|
2586
2680
|
'''
|
|
2587
2681
|
if __debug__:
|
|
2588
2682
|
type_hints = typing.get_type_hints(_typecheckingstub__e4e4609083793a8b31752be2f457b6b1f1220145a70469bafc48a142860684a6)
|
|
2589
2683
|
check_type(argname="argument stack", value=stack, expected_type=type_hints["stack"])
|
|
2590
2684
|
check_type(argname="argument source_hash", value=source_hash, expected_type=type_hints["source_hash"])
|
|
2591
2685
|
check_type(argname="argument source", value=source, expected_type=type_hints["source"])
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
repository_name=repository_name,
|
|
2595
|
-
assume_role_additional_options=assume_role_additional_options,
|
|
2596
|
-
assume_role_arn=assume_role_arn,
|
|
2597
|
-
assume_role_external_id=assume_role_external_id,
|
|
2598
|
-
region=region,
|
|
2599
|
-
)
|
|
2686
|
+
check_type(argname="argument dest", value=dest, expected_type=type_hints["dest"])
|
|
2687
|
+
options = AddDockerImageAssetOptions(display_name=display_name)
|
|
2600
2688
|
|
|
2601
|
-
return typing.cast(_DockerImageDestination_132046c7, jsii.invoke(self, "addDockerImageAsset", [stack, source_hash, source, dest]))
|
|
2689
|
+
return typing.cast(_DockerImageDestination_132046c7, jsii.invoke(self, "addDockerImageAsset", [stack, source_hash, source, dest, options]))
|
|
2602
2690
|
|
|
2603
2691
|
@jsii.member(jsii_name="addFileAsset")
|
|
2604
2692
|
def add_file_asset(
|
|
@@ -2606,13 +2694,9 @@ class AssetManifestBuilder(
|
|
|
2606
2694
|
stack: "Stack",
|
|
2607
2695
|
source_hash: builtins.str,
|
|
2608
2696
|
source: typing.Union[_FileSource_66254048, typing.Dict[builtins.str, typing.Any]],
|
|
2697
|
+
dest: typing.Union[_FileDestination_7d285b38, typing.Dict[builtins.str, typing.Any]],
|
|
2609
2698
|
*,
|
|
2610
|
-
|
|
2611
|
-
object_key: builtins.str,
|
|
2612
|
-
assume_role_additional_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
2613
|
-
assume_role_arn: typing.Optional[builtins.str] = None,
|
|
2614
|
-
assume_role_external_id: typing.Optional[builtins.str] = None,
|
|
2615
|
-
region: typing.Optional[builtins.str] = None,
|
|
2699
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
2616
2700
|
) -> _FileDestination_7d285b38:
|
|
2617
2701
|
'''Add a file asset source and destination to the manifest.
|
|
2618
2702
|
|
|
@@ -2621,38 +2705,27 @@ class AssetManifestBuilder(
|
|
|
2621
2705
|
:param stack: -
|
|
2622
2706
|
:param source_hash: -
|
|
2623
2707
|
:param source: -
|
|
2624
|
-
:param
|
|
2625
|
-
:param
|
|
2626
|
-
:param assume_role_additional_options: Additional options to pass to STS when assuming the role. - ``RoleArn`` should not be used. Use the dedicated ``assumeRoleArn`` property instead. - ``ExternalId`` should not be used. Use the dedicated ``assumeRoleExternalId`` instead. Default: - No additional options.
|
|
2627
|
-
:param assume_role_arn: The role that needs to be assumed while publishing this asset. Default: - No role will be assumed
|
|
2628
|
-
:param assume_role_external_id: The ExternalId that needs to be supplied while assuming this role. Default: - No ExternalId will be supplied
|
|
2629
|
-
:param region: The region where this asset will need to be published. Default: - Current region
|
|
2708
|
+
:param dest: -
|
|
2709
|
+
:param display_name: A display name to associate with the asset. Default: - No display name
|
|
2630
2710
|
'''
|
|
2631
2711
|
if __debug__:
|
|
2632
2712
|
type_hints = typing.get_type_hints(_typecheckingstub__f12f649e9db582bca540895dead136ba4f8ce5c52abc11eb50e5224da26e06f5)
|
|
2633
2713
|
check_type(argname="argument stack", value=stack, expected_type=type_hints["stack"])
|
|
2634
2714
|
check_type(argname="argument source_hash", value=source_hash, expected_type=type_hints["source_hash"])
|
|
2635
2715
|
check_type(argname="argument source", value=source, expected_type=type_hints["source"])
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
object_key=object_key,
|
|
2639
|
-
assume_role_additional_options=assume_role_additional_options,
|
|
2640
|
-
assume_role_arn=assume_role_arn,
|
|
2641
|
-
assume_role_external_id=assume_role_external_id,
|
|
2642
|
-
region=region,
|
|
2643
|
-
)
|
|
2716
|
+
check_type(argname="argument dest", value=dest, expected_type=type_hints["dest"])
|
|
2717
|
+
options = AddFileAssetOptions(display_name=display_name)
|
|
2644
2718
|
|
|
2645
|
-
return typing.cast(_FileDestination_7d285b38, jsii.invoke(self, "addFileAsset", [stack, source_hash, source, dest]))
|
|
2719
|
+
return typing.cast(_FileDestination_7d285b38, jsii.invoke(self, "addFileAsset", [stack, source_hash, source, dest, options]))
|
|
2646
2720
|
|
|
2647
2721
|
@jsii.member(jsii_name="defaultAddDockerImageAsset")
|
|
2648
2722
|
def default_add_docker_image_asset(
|
|
2649
2723
|
self,
|
|
2650
2724
|
stack: "Stack",
|
|
2651
2725
|
asset: typing.Union["DockerImageAssetSource", typing.Dict[builtins.str, typing.Any]],
|
|
2726
|
+
target: typing.Union["AssetManifestDockerImageDestination", typing.Dict[builtins.str, typing.Any]],
|
|
2652
2727
|
*,
|
|
2653
|
-
|
|
2654
|
-
docker_tag_prefix: typing.Optional[builtins.str] = None,
|
|
2655
|
-
role: typing.Optional[typing.Union["RoleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2728
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
2656
2729
|
) -> _DockerImageDestination_132046c7:
|
|
2657
2730
|
'''Add a docker image asset to the manifest with default settings.
|
|
2658
2731
|
|
|
@@ -2660,31 +2733,26 @@ class AssetManifestBuilder(
|
|
|
2660
2733
|
|
|
2661
2734
|
:param stack: -
|
|
2662
2735
|
:param asset: -
|
|
2663
|
-
:param
|
|
2664
|
-
:param
|
|
2665
|
-
:param role: Role to use to perform the upload. Default: - No role
|
|
2736
|
+
:param target: -
|
|
2737
|
+
:param display_name: A display name to associate with the asset. Default: - No display name
|
|
2666
2738
|
'''
|
|
2667
2739
|
if __debug__:
|
|
2668
2740
|
type_hints = typing.get_type_hints(_typecheckingstub__d8572c82a112aaa61153d2b958b8042f9e061141b483b1b0ce6429f9f7c11296)
|
|
2669
2741
|
check_type(argname="argument stack", value=stack, expected_type=type_hints["stack"])
|
|
2670
2742
|
check_type(argname="argument asset", value=asset, expected_type=type_hints["asset"])
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
docker_tag_prefix=docker_tag_prefix,
|
|
2674
|
-
role=role,
|
|
2675
|
-
)
|
|
2743
|
+
check_type(argname="argument target", value=target, expected_type=type_hints["target"])
|
|
2744
|
+
options = AddDockerImageAssetOptions(display_name=display_name)
|
|
2676
2745
|
|
|
2677
|
-
return typing.cast(_DockerImageDestination_132046c7, jsii.invoke(self, "defaultAddDockerImageAsset", [stack, asset, target]))
|
|
2746
|
+
return typing.cast(_DockerImageDestination_132046c7, jsii.invoke(self, "defaultAddDockerImageAsset", [stack, asset, target, options]))
|
|
2678
2747
|
|
|
2679
2748
|
@jsii.member(jsii_name="defaultAddFileAsset")
|
|
2680
2749
|
def default_add_file_asset(
|
|
2681
2750
|
self,
|
|
2682
2751
|
stack: "Stack",
|
|
2683
2752
|
asset: typing.Union["FileAssetSource", typing.Dict[builtins.str, typing.Any]],
|
|
2753
|
+
target: typing.Union["AssetManifestFileDestination", typing.Dict[builtins.str, typing.Any]],
|
|
2684
2754
|
*,
|
|
2685
|
-
|
|
2686
|
-
bucket_prefix: typing.Optional[builtins.str] = None,
|
|
2687
|
-
role: typing.Optional[typing.Union["RoleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2755
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
2688
2756
|
) -> _FileDestination_7d285b38:
|
|
2689
2757
|
'''Add a file asset to the manifest with default settings.
|
|
2690
2758
|
|
|
@@ -2693,19 +2761,17 @@ class AssetManifestBuilder(
|
|
|
2693
2761
|
|
|
2694
2762
|
:param stack: -
|
|
2695
2763
|
:param asset: -
|
|
2696
|
-
:param
|
|
2697
|
-
:param
|
|
2698
|
-
:param role: Role to use for uploading. Default: - current role
|
|
2764
|
+
:param target: -
|
|
2765
|
+
:param display_name: A display name to associate with the asset. Default: - No display name
|
|
2699
2766
|
'''
|
|
2700
2767
|
if __debug__:
|
|
2701
2768
|
type_hints = typing.get_type_hints(_typecheckingstub__085bf08106379af70653604775528303d429c31168f56c2439ed96f6b61197be)
|
|
2702
2769
|
check_type(argname="argument stack", value=stack, expected_type=type_hints["stack"])
|
|
2703
2770
|
check_type(argname="argument asset", value=asset, expected_type=type_hints["asset"])
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
)
|
|
2771
|
+
check_type(argname="argument target", value=target, expected_type=type_hints["target"])
|
|
2772
|
+
options = AddFileAssetOptions(display_name=display_name)
|
|
2707
2773
|
|
|
2708
|
-
return typing.cast(_FileDestination_7d285b38, jsii.invoke(self, "defaultAddFileAsset", [stack, asset, target]))
|
|
2774
|
+
return typing.cast(_FileDestination_7d285b38, jsii.invoke(self, "defaultAddFileAsset", [stack, asset, target, options]))
|
|
2709
2775
|
|
|
2710
2776
|
@jsii.member(jsii_name="emitManifest")
|
|
2711
2777
|
def emit_manifest(
|
|
@@ -10562,14 +10628,16 @@ class ContextProvider(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.ContextPro
|
|
|
10562
10628
|
*,
|
|
10563
10629
|
dummy_value: typing.Any,
|
|
10564
10630
|
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
10631
|
+
must_exist: typing.Optional[builtins.bool] = None,
|
|
10565
10632
|
provider: builtins.str,
|
|
10566
10633
|
include_environment: typing.Optional[builtins.bool] = None,
|
|
10567
10634
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
10568
10635
|
) -> "GetContextValueResult":
|
|
10569
10636
|
'''
|
|
10570
10637
|
:param scope: -
|
|
10571
|
-
:param dummy_value: The value to return if the
|
|
10572
|
-
:param ignore_error_on_missing_context:
|
|
10638
|
+
:param dummy_value: The value to return if the lookup has not yet been performed. Upon first synthesis, the lookups has not yet been performed. The ``getValue()`` operation returns this value instead, so that synthesis can proceed. After synthesis completes the first time, the actual lookup will be performed and synthesis will run again with the *real* value. Dummy values should preferably have valid shapes so that downstream consumers of lookup values don't throw validation exceptions if they encounter a dummy value (or all possible downstream consumers need to effectively check for the well-known shape of the dummy value); throwing an exception would error out the synthesis operation and prevent the lookup and the second, real, synthesis from happening. Connection to mustExist ``dummyValue`` is also used as the official value to return if the lookup has failed and ``mustExist == false``.
|
|
10639
|
+
:param ignore_error_on_missing_context: (deprecated) Ignore a lookup failure and return the ``dummyValue`` instead. ``mustExist`` is the recommended alias for this deprecated property (note that its value is reversed). Default: false
|
|
10640
|
+
:param must_exist: Whether the resource must exist. If this is set (the default), the query fails if the value or resource we tried to look up doesn't exist. If this is ``false`` and the value we tried to look up could not be found, the failure is suppressed and ``dummyValue`` is officially returned instead. When this happens, ``dummyValue`` is encoded into cached context and it will never be refreshed anymore until the user runs ``cdk context --reset <key>``. Note that it is not possible for the CDK app code to make a distinction between "the lookup has not been performed yet" and "the lookup didn't find anything and we returned a default value instead". Context providers This feature must explicitly be supported by context providers. It is currently supported by: - KMS key provider - SSM parameter provider Note to implementors The dummy value should not be returned for all SDK lookup failures. For example, "no network" or "no credentials" or "malformed query" should not lead to the dummy value being returned. Only the case of "no such resource" should. Default: true
|
|
10573
10641
|
:param provider: The context provider to query.
|
|
10574
10642
|
:param include_environment: Whether to include the stack's account and region automatically. Default: true
|
|
10575
10643
|
:param props: Provider-specific properties.
|
|
@@ -10580,6 +10648,7 @@ class ContextProvider(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.ContextPro
|
|
|
10580
10648
|
options = GetContextValueOptions(
|
|
10581
10649
|
dummy_value=dummy_value,
|
|
10582
10650
|
ignore_error_on_missing_context=ignore_error_on_missing_context,
|
|
10651
|
+
must_exist=must_exist,
|
|
10583
10652
|
provider=provider,
|
|
10584
10653
|
include_environment=include_environment,
|
|
10585
10654
|
props=props,
|
|
@@ -12372,6 +12441,7 @@ class DockerImageAssetLocation:
|
|
|
12372
12441
|
"source_hash": "sourceHash",
|
|
12373
12442
|
"asset_name": "assetName",
|
|
12374
12443
|
"directory_name": "directoryName",
|
|
12444
|
+
"display_name": "displayName",
|
|
12375
12445
|
"docker_build_args": "dockerBuildArgs",
|
|
12376
12446
|
"docker_build_secrets": "dockerBuildSecrets",
|
|
12377
12447
|
"docker_build_ssh": "dockerBuildSsh",
|
|
@@ -12393,6 +12463,7 @@ class DockerImageAssetSource:
|
|
|
12393
12463
|
source_hash: builtins.str,
|
|
12394
12464
|
asset_name: typing.Optional[builtins.str] = None,
|
|
12395
12465
|
directory_name: typing.Optional[builtins.str] = None,
|
|
12466
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
12396
12467
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
12397
12468
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
12398
12469
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -12410,6 +12481,7 @@ class DockerImageAssetSource:
|
|
|
12410
12481
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
12411
12482
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
12412
12483
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
12484
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
12413
12485
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
12414
12486
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
12415
12487
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -12437,6 +12509,7 @@ class DockerImageAssetSource:
|
|
|
12437
12509
|
# the properties below are optional
|
|
12438
12510
|
asset_name="assetName",
|
|
12439
12511
|
directory_name="directoryName",
|
|
12512
|
+
display_name="displayName",
|
|
12440
12513
|
docker_build_args={
|
|
12441
12514
|
"docker_build_args_key": "dockerBuildArgs"
|
|
12442
12515
|
},
|
|
@@ -12476,6 +12549,7 @@ class DockerImageAssetSource:
|
|
|
12476
12549
|
check_type(argname="argument source_hash", value=source_hash, expected_type=type_hints["source_hash"])
|
|
12477
12550
|
check_type(argname="argument asset_name", value=asset_name, expected_type=type_hints["asset_name"])
|
|
12478
12551
|
check_type(argname="argument directory_name", value=directory_name, expected_type=type_hints["directory_name"])
|
|
12552
|
+
check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
|
|
12479
12553
|
check_type(argname="argument docker_build_args", value=docker_build_args, expected_type=type_hints["docker_build_args"])
|
|
12480
12554
|
check_type(argname="argument docker_build_secrets", value=docker_build_secrets, expected_type=type_hints["docker_build_secrets"])
|
|
12481
12555
|
check_type(argname="argument docker_build_ssh", value=docker_build_ssh, expected_type=type_hints["docker_build_ssh"])
|
|
@@ -12495,6 +12569,8 @@ class DockerImageAssetSource:
|
|
|
12495
12569
|
self._values["asset_name"] = asset_name
|
|
12496
12570
|
if directory_name is not None:
|
|
12497
12571
|
self._values["directory_name"] = directory_name
|
|
12572
|
+
if display_name is not None:
|
|
12573
|
+
self._values["display_name"] = display_name
|
|
12498
12574
|
if docker_build_args is not None:
|
|
12499
12575
|
self._values["docker_build_args"] = docker_build_args
|
|
12500
12576
|
if docker_build_secrets is not None:
|
|
@@ -12555,6 +12631,18 @@ class DockerImageAssetSource:
|
|
|
12555
12631
|
result = self._values.get("directory_name")
|
|
12556
12632
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
12557
12633
|
|
|
12634
|
+
@builtins.property
|
|
12635
|
+
def display_name(self) -> typing.Optional[builtins.str]:
|
|
12636
|
+
'''A display name for this asset.
|
|
12637
|
+
|
|
12638
|
+
If supplied, the display name will be used in locations where the asset
|
|
12639
|
+
identifier is printed, like in the CLI progress information.
|
|
12640
|
+
|
|
12641
|
+
:default: - The asset hash is used to display the asset
|
|
12642
|
+
'''
|
|
12643
|
+
result = self._values.get("display_name")
|
|
12644
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
12645
|
+
|
|
12558
12646
|
@builtins.property
|
|
12559
12647
|
def docker_build_args(
|
|
12560
12648
|
self,
|
|
@@ -13033,26 +13121,21 @@ class Duration(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Duration"):
|
|
|
13033
13121
|
|
|
13034
13122
|
Example::
|
|
13035
13123
|
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
# cluster: ecs.ICluster
|
|
13039
|
-
# task_definition: ecs.TaskDefinition
|
|
13040
|
-
|
|
13124
|
+
# my_role: iam.Role
|
|
13041
13125
|
|
|
13042
|
-
|
|
13043
|
-
|
|
13126
|
+
cr.AwsCustomResource(self, "Customized",
|
|
13127
|
+
role=my_role, # must be assumable by the `lambda.amazonaws.com` service principal
|
|
13128
|
+
timeout=Duration.minutes(10), # defaults to 2 minutes
|
|
13129
|
+
memory_size=1025, # defaults to 512 if installLatestAwsSdk is true
|
|
13130
|
+
log_group=logs.LogGroup(self, "AwsCustomResourceLogs",
|
|
13131
|
+
retention=logs.RetentionDays.ONE_DAY
|
|
13132
|
+
),
|
|
13133
|
+
function_name="my-custom-name", # defaults to a CloudFormation generated name
|
|
13134
|
+
removal_policy=RemovalPolicy.RETAIN, # defaults to `RemovalPolicy.DESTROY`
|
|
13135
|
+
policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
|
|
13136
|
+
resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
|
|
13137
|
+
)
|
|
13044
13138
|
)
|
|
13045
|
-
|
|
13046
|
-
rule.add_target(targets.EcsTask(
|
|
13047
|
-
cluster=cluster,
|
|
13048
|
-
task_definition=task_definition,
|
|
13049
|
-
task_count=1,
|
|
13050
|
-
container_overrides=[targets.ContainerOverride(
|
|
13051
|
-
container_name="TheContainer",
|
|
13052
|
-
command=["echo", events.EventField.from_path("$.detail.event")]
|
|
13053
|
-
)],
|
|
13054
|
-
enable_execute_command=True
|
|
13055
|
-
))
|
|
13056
13139
|
'''
|
|
13057
13140
|
|
|
13058
13141
|
@jsii.member(jsii_name="days")
|
|
@@ -13896,6 +13979,7 @@ class FileAssetPackaging(enum.Enum):
|
|
|
13896
13979
|
name_mapping={
|
|
13897
13980
|
"source_hash": "sourceHash",
|
|
13898
13981
|
"deploy_time": "deployTime",
|
|
13982
|
+
"display_name": "displayName",
|
|
13899
13983
|
"executable": "executable",
|
|
13900
13984
|
"file_name": "fileName",
|
|
13901
13985
|
"packaging": "packaging",
|
|
@@ -13907,6 +13991,7 @@ class FileAssetSource:
|
|
|
13907
13991
|
*,
|
|
13908
13992
|
source_hash: builtins.str,
|
|
13909
13993
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
13994
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
13910
13995
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
13911
13996
|
file_name: typing.Optional[builtins.str] = None,
|
|
13912
13997
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -13915,6 +14000,7 @@ class FileAssetSource:
|
|
|
13915
14000
|
|
|
13916
14001
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
13917
14002
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
14003
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
13918
14004
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
13919
14005
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
13920
14006
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -13932,6 +14018,7 @@ class FileAssetSource:
|
|
|
13932
14018
|
|
|
13933
14019
|
# the properties below are optional
|
|
13934
14020
|
deploy_time=False,
|
|
14021
|
+
display_name="displayName",
|
|
13935
14022
|
executable=["executable"],
|
|
13936
14023
|
file_name="fileName",
|
|
13937
14024
|
packaging=cdk.FileAssetPackaging.ZIP_DIRECTORY
|
|
@@ -13941,6 +14028,7 @@ class FileAssetSource:
|
|
|
13941
14028
|
type_hints = typing.get_type_hints(_typecheckingstub__6a2ffcc71f7081ed98f77dcff398894a56d300191a4893d6469a2218ffed2957)
|
|
13942
14029
|
check_type(argname="argument source_hash", value=source_hash, expected_type=type_hints["source_hash"])
|
|
13943
14030
|
check_type(argname="argument deploy_time", value=deploy_time, expected_type=type_hints["deploy_time"])
|
|
14031
|
+
check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
|
|
13944
14032
|
check_type(argname="argument executable", value=executable, expected_type=type_hints["executable"])
|
|
13945
14033
|
check_type(argname="argument file_name", value=file_name, expected_type=type_hints["file_name"])
|
|
13946
14034
|
check_type(argname="argument packaging", value=packaging, expected_type=type_hints["packaging"])
|
|
@@ -13949,6 +14037,8 @@ class FileAssetSource:
|
|
|
13949
14037
|
}
|
|
13950
14038
|
if deploy_time is not None:
|
|
13951
14039
|
self._values["deploy_time"] = deploy_time
|
|
14040
|
+
if display_name is not None:
|
|
14041
|
+
self._values["display_name"] = display_name
|
|
13952
14042
|
if executable is not None:
|
|
13953
14043
|
self._values["executable"] = executable
|
|
13954
14044
|
if file_name is not None:
|
|
@@ -13987,6 +14077,18 @@ class FileAssetSource:
|
|
|
13987
14077
|
result = self._values.get("deploy_time")
|
|
13988
14078
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
13989
14079
|
|
|
14080
|
+
@builtins.property
|
|
14081
|
+
def display_name(self) -> typing.Optional[builtins.str]:
|
|
14082
|
+
'''A display name for this asset.
|
|
14083
|
+
|
|
14084
|
+
If supplied, the display name will be used in locations where the asset
|
|
14085
|
+
identifier is printed, like in the CLI progress information.
|
|
14086
|
+
|
|
14087
|
+
:default: - The asset hash is used to display the asset
|
|
14088
|
+
'''
|
|
14089
|
+
result = self._values.get("display_name")
|
|
14090
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
14091
|
+
|
|
13990
14092
|
@builtins.property
|
|
13991
14093
|
def executable(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
13992
14094
|
'''An external command that will produce the packaged asset.
|
|
@@ -15219,6 +15321,7 @@ class GetContextKeyResult:
|
|
|
15219
15321
|
"props": "props",
|
|
15220
15322
|
"dummy_value": "dummyValue",
|
|
15221
15323
|
"ignore_error_on_missing_context": "ignoreErrorOnMissingContext",
|
|
15324
|
+
"must_exist": "mustExist",
|
|
15222
15325
|
},
|
|
15223
15326
|
)
|
|
15224
15327
|
class GetContextValueOptions(GetContextKeyOptions):
|
|
@@ -15230,13 +15333,15 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
15230
15333
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
15231
15334
|
dummy_value: typing.Any,
|
|
15232
15335
|
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
15336
|
+
must_exist: typing.Optional[builtins.bool] = None,
|
|
15233
15337
|
) -> None:
|
|
15234
15338
|
'''
|
|
15235
15339
|
:param provider: The context provider to query.
|
|
15236
15340
|
:param include_environment: Whether to include the stack's account and region automatically. Default: true
|
|
15237
15341
|
:param props: Provider-specific properties.
|
|
15238
|
-
:param dummy_value: The value to return if the
|
|
15239
|
-
:param ignore_error_on_missing_context:
|
|
15342
|
+
:param dummy_value: The value to return if the lookup has not yet been performed. Upon first synthesis, the lookups has not yet been performed. The ``getValue()`` operation returns this value instead, so that synthesis can proceed. After synthesis completes the first time, the actual lookup will be performed and synthesis will run again with the *real* value. Dummy values should preferably have valid shapes so that downstream consumers of lookup values don't throw validation exceptions if they encounter a dummy value (or all possible downstream consumers need to effectively check for the well-known shape of the dummy value); throwing an exception would error out the synthesis operation and prevent the lookup and the second, real, synthesis from happening. Connection to mustExist ``dummyValue`` is also used as the official value to return if the lookup has failed and ``mustExist == false``.
|
|
15343
|
+
:param ignore_error_on_missing_context: (deprecated) Ignore a lookup failure and return the ``dummyValue`` instead. ``mustExist`` is the recommended alias for this deprecated property (note that its value is reversed). Default: false
|
|
15344
|
+
:param must_exist: Whether the resource must exist. If this is set (the default), the query fails if the value or resource we tried to look up doesn't exist. If this is ``false`` and the value we tried to look up could not be found, the failure is suppressed and ``dummyValue`` is officially returned instead. When this happens, ``dummyValue`` is encoded into cached context and it will never be refreshed anymore until the user runs ``cdk context --reset <key>``. Note that it is not possible for the CDK app code to make a distinction between "the lookup has not been performed yet" and "the lookup didn't find anything and we returned a default value instead". Context providers This feature must explicitly be supported by context providers. It is currently supported by: - KMS key provider - SSM parameter provider Note to implementors The dummy value should not be returned for all SDK lookup failures. For example, "no network" or "no credentials" or "malformed query" should not lead to the dummy value being returned. Only the case of "no such resource" should. Default: true
|
|
15240
15345
|
|
|
15241
15346
|
:exampleMetadata: fixture=_generated
|
|
15242
15347
|
|
|
@@ -15256,6 +15361,7 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
15256
15361
|
# the properties below are optional
|
|
15257
15362
|
ignore_error_on_missing_context=False,
|
|
15258
15363
|
include_environment=False,
|
|
15364
|
+
must_exist=False,
|
|
15259
15365
|
props={
|
|
15260
15366
|
"props_key": props
|
|
15261
15367
|
}
|
|
@@ -15268,6 +15374,7 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
15268
15374
|
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
15269
15375
|
check_type(argname="argument dummy_value", value=dummy_value, expected_type=type_hints["dummy_value"])
|
|
15270
15376
|
check_type(argname="argument ignore_error_on_missing_context", value=ignore_error_on_missing_context, expected_type=type_hints["ignore_error_on_missing_context"])
|
|
15377
|
+
check_type(argname="argument must_exist", value=must_exist, expected_type=type_hints["must_exist"])
|
|
15271
15378
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
15272
15379
|
"provider": provider,
|
|
15273
15380
|
"dummy_value": dummy_value,
|
|
@@ -15278,6 +15385,8 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
15278
15385
|
self._values["props"] = props
|
|
15279
15386
|
if ignore_error_on_missing_context is not None:
|
|
15280
15387
|
self._values["ignore_error_on_missing_context"] = ignore_error_on_missing_context
|
|
15388
|
+
if must_exist is not None:
|
|
15389
|
+
self._values["must_exist"] = must_exist
|
|
15281
15390
|
|
|
15282
15391
|
@builtins.property
|
|
15283
15392
|
def provider(self) -> builtins.str:
|
|
@@ -15303,20 +15412,86 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
15303
15412
|
|
|
15304
15413
|
@builtins.property
|
|
15305
15414
|
def dummy_value(self) -> typing.Any:
|
|
15306
|
-
'''The value to return if the
|
|
15415
|
+
'''The value to return if the lookup has not yet been performed.
|
|
15416
|
+
|
|
15417
|
+
Upon first synthesis, the lookups has not yet been performed. The
|
|
15418
|
+
``getValue()`` operation returns this value instead, so that synthesis can
|
|
15419
|
+
proceed. After synthesis completes the first time, the actual lookup will
|
|
15420
|
+
be performed and synthesis will run again with the *real* value.
|
|
15421
|
+
|
|
15422
|
+
Dummy values should preferably have valid shapes so that downstream
|
|
15423
|
+
consumers of lookup values don't throw validation exceptions if they
|
|
15424
|
+
encounter a dummy value (or all possible downstream consumers need to
|
|
15425
|
+
effectively check for the well-known shape of the dummy value); throwing an
|
|
15426
|
+
exception would error out the synthesis operation and prevent the lookup
|
|
15427
|
+
and the second, real, synthesis from happening.
|
|
15428
|
+
|
|
15429
|
+
|
|
15430
|
+
Connection to mustExist
|
|
15431
|
+
|
|
15432
|
+
``dummyValue`` is also used as the official value to return if the lookup has
|
|
15433
|
+
failed and ``mustExist == false``.
|
|
15434
|
+
'''
|
|
15307
15435
|
result = self._values.get("dummy_value")
|
|
15308
15436
|
assert result is not None, "Required property 'dummy_value' is missing"
|
|
15309
15437
|
return typing.cast(typing.Any, result)
|
|
15310
15438
|
|
|
15311
15439
|
@builtins.property
|
|
15312
15440
|
def ignore_error_on_missing_context(self) -> typing.Optional[builtins.bool]:
|
|
15313
|
-
'''
|
|
15441
|
+
'''(deprecated) Ignore a lookup failure and return the ``dummyValue`` instead.
|
|
15442
|
+
|
|
15443
|
+
``mustExist`` is the recommended alias for this deprecated
|
|
15444
|
+
property (note that its value is reversed).
|
|
15314
15445
|
|
|
15315
15446
|
:default: false
|
|
15447
|
+
|
|
15448
|
+
:deprecated: Use mustExist instead
|
|
15449
|
+
|
|
15450
|
+
:stability: deprecated
|
|
15316
15451
|
'''
|
|
15317
15452
|
result = self._values.get("ignore_error_on_missing_context")
|
|
15318
15453
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
15319
15454
|
|
|
15455
|
+
@builtins.property
|
|
15456
|
+
def must_exist(self) -> typing.Optional[builtins.bool]:
|
|
15457
|
+
'''Whether the resource must exist.
|
|
15458
|
+
|
|
15459
|
+
If this is set (the default), the query fails if the value or resource we
|
|
15460
|
+
tried to look up doesn't exist.
|
|
15461
|
+
|
|
15462
|
+
If this is ``false`` and the value we tried to look up could not be found, the
|
|
15463
|
+
failure is suppressed and ``dummyValue`` is officially returned instead.
|
|
15464
|
+
|
|
15465
|
+
When this happens, ``dummyValue`` is encoded into cached context and it will
|
|
15466
|
+
never be refreshed anymore until the user runs ``cdk context --reset <key>``.
|
|
15467
|
+
|
|
15468
|
+
Note that it is not possible for the CDK app code to make a distinction
|
|
15469
|
+
between "the lookup has not been performed yet" and "the lookup didn't
|
|
15470
|
+
find anything and we returned a default value instead".
|
|
15471
|
+
|
|
15472
|
+
|
|
15473
|
+
Context providers
|
|
15474
|
+
|
|
15475
|
+
This feature must explicitly be supported by context providers. It is
|
|
15476
|
+
currently supported by:
|
|
15477
|
+
|
|
15478
|
+
- KMS key provider
|
|
15479
|
+
- SSM parameter provider
|
|
15480
|
+
|
|
15481
|
+
|
|
15482
|
+
|
|
15483
|
+
Note to implementors
|
|
15484
|
+
|
|
15485
|
+
The dummy value should not be returned for all SDK lookup failures. For
|
|
15486
|
+
example, "no network" or "no credentials" or "malformed query" should
|
|
15487
|
+
not lead to the dummy value being returned. Only the case of "no such
|
|
15488
|
+
resource" should.
|
|
15489
|
+
|
|
15490
|
+
:default: true
|
|
15491
|
+
'''
|
|
15492
|
+
result = self._values.get("must_exist")
|
|
15493
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
15494
|
+
|
|
15320
15495
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
15321
15496
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
15322
15497
|
|
|
@@ -16628,6 +16803,7 @@ class IStackSynthesizer(typing_extensions.Protocol):
|
|
|
16628
16803
|
source_hash: builtins.str,
|
|
16629
16804
|
asset_name: typing.Optional[builtins.str] = None,
|
|
16630
16805
|
directory_name: typing.Optional[builtins.str] = None,
|
|
16806
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
16631
16807
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16632
16808
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16633
16809
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -16648,6 +16824,7 @@ class IStackSynthesizer(typing_extensions.Protocol):
|
|
|
16648
16824
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
16649
16825
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
16650
16826
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
16827
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
16651
16828
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
16652
16829
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
16653
16830
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -16669,6 +16846,7 @@ class IStackSynthesizer(typing_extensions.Protocol):
|
|
|
16669
16846
|
*,
|
|
16670
16847
|
source_hash: builtins.str,
|
|
16671
16848
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
16849
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
16672
16850
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
16673
16851
|
file_name: typing.Optional[builtins.str] = None,
|
|
16674
16852
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -16679,6 +16857,7 @@ class IStackSynthesizer(typing_extensions.Protocol):
|
|
|
16679
16857
|
|
|
16680
16858
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
16681
16859
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
16860
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
16682
16861
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
16683
16862
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
16684
16863
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -16734,6 +16913,7 @@ class _IStackSynthesizerProxy:
|
|
|
16734
16913
|
source_hash: builtins.str,
|
|
16735
16914
|
asset_name: typing.Optional[builtins.str] = None,
|
|
16736
16915
|
directory_name: typing.Optional[builtins.str] = None,
|
|
16916
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
16737
16917
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16738
16918
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16739
16919
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -16754,6 +16934,7 @@ class _IStackSynthesizerProxy:
|
|
|
16754
16934
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
16755
16935
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
16756
16936
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
16937
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
16757
16938
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
16758
16939
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
16759
16940
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -16771,6 +16952,7 @@ class _IStackSynthesizerProxy:
|
|
|
16771
16952
|
source_hash=source_hash,
|
|
16772
16953
|
asset_name=asset_name,
|
|
16773
16954
|
directory_name=directory_name,
|
|
16955
|
+
display_name=display_name,
|
|
16774
16956
|
docker_build_args=docker_build_args,
|
|
16775
16957
|
docker_build_secrets=docker_build_secrets,
|
|
16776
16958
|
docker_build_ssh=docker_build_ssh,
|
|
@@ -16793,6 +16975,7 @@ class _IStackSynthesizerProxy:
|
|
|
16793
16975
|
*,
|
|
16794
16976
|
source_hash: builtins.str,
|
|
16795
16977
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
16978
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
16796
16979
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
16797
16980
|
file_name: typing.Optional[builtins.str] = None,
|
|
16798
16981
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -16803,6 +16986,7 @@ class _IStackSynthesizerProxy:
|
|
|
16803
16986
|
|
|
16804
16987
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
16805
16988
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
16989
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
16806
16990
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
16807
16991
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
16808
16992
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -16810,6 +16994,7 @@ class _IStackSynthesizerProxy:
|
|
|
16810
16994
|
asset = FileAssetSource(
|
|
16811
16995
|
source_hash=source_hash,
|
|
16812
16996
|
deploy_time=deploy_time,
|
|
16997
|
+
display_name=display_name,
|
|
16813
16998
|
executable=executable,
|
|
16814
16999
|
file_name=file_name,
|
|
16815
17000
|
packaging=packaging,
|
|
@@ -18334,6 +18519,24 @@ class Names(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Names"):
|
|
|
18334
18519
|
check_type(argname="argument node", value=node, expected_type=type_hints["node"])
|
|
18335
18520
|
return typing.cast(builtins.str, jsii.sinvoke(cls, "nodeUniqueId", [node]))
|
|
18336
18521
|
|
|
18522
|
+
@jsii.member(jsii_name="stackRelativeConstructPath")
|
|
18523
|
+
@builtins.classmethod
|
|
18524
|
+
def stack_relative_construct_path(
|
|
18525
|
+
cls,
|
|
18526
|
+
construct: _constructs_77d1e7e8.IConstruct,
|
|
18527
|
+
) -> builtins.str:
|
|
18528
|
+
'''Return the construct path of the given construct, starting at the nearest enclosing Stack.
|
|
18529
|
+
|
|
18530
|
+
Skips over Nested Stacks, in other words Nested Stacks are included in the construct
|
|
18531
|
+
paths.
|
|
18532
|
+
|
|
18533
|
+
:param construct: -
|
|
18534
|
+
'''
|
|
18535
|
+
if __debug__:
|
|
18536
|
+
type_hints = typing.get_type_hints(_typecheckingstub__307d610951ef0b232f9222edc6ac5421fa347060bc21fb75e850a338e9aa77c7)
|
|
18537
|
+
check_type(argname="argument construct", value=construct, expected_type=type_hints["construct"])
|
|
18538
|
+
return typing.cast(builtins.str, jsii.sinvoke(cls, "stackRelativeConstructPath", [construct]))
|
|
18539
|
+
|
|
18337
18540
|
@jsii.member(jsii_name="uniqueId")
|
|
18338
18541
|
@builtins.classmethod
|
|
18339
18542
|
def unique_id(cls, construct: _constructs_77d1e7e8.IConstruct) -> builtins.str:
|
|
@@ -19357,41 +19560,20 @@ class RemovalPolicy(enum.Enum):
|
|
|
19357
19560
|
|
|
19358
19561
|
Example::
|
|
19359
19562
|
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
# api: appsync.GraphqlApi
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
user = iam.User(self, "User")
|
|
19366
|
-
domain = opensearch.Domain(self, "Domain",
|
|
19367
|
-
version=opensearch.EngineVersion.OPENSEARCH_2_3,
|
|
19368
|
-
removal_policy=RemovalPolicy.DESTROY,
|
|
19369
|
-
fine_grained_access_control=opensearch.AdvancedSecurityOptions(master_user_arn=user.user_arn),
|
|
19370
|
-
encryption_at_rest=opensearch.EncryptionAtRestOptions(enabled=True),
|
|
19371
|
-
node_to_node_encryption=True,
|
|
19372
|
-
enforce_https=True
|
|
19373
|
-
)
|
|
19374
|
-
ds = api.add_open_search_data_source("ds", domain)
|
|
19563
|
+
# my_role: iam.Role
|
|
19375
19564
|
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
})),
|
|
19389
|
-
response_mapping_template=appsync.MappingTemplate.from_string("""[
|
|
19390
|
-
#foreach($entry in $context.result.hits.hits)
|
|
19391
|
-
#if( $velocityCount > 1 ) , #end
|
|
19392
|
-
$utils.toJson($entry.get("_source"))
|
|
19393
|
-
#end
|
|
19394
|
-
]""")
|
|
19565
|
+
cr.AwsCustomResource(self, "Customized",
|
|
19566
|
+
role=my_role, # must be assumable by the `lambda.amazonaws.com` service principal
|
|
19567
|
+
timeout=Duration.minutes(10), # defaults to 2 minutes
|
|
19568
|
+
memory_size=1025, # defaults to 512 if installLatestAwsSdk is true
|
|
19569
|
+
log_group=logs.LogGroup(self, "AwsCustomResourceLogs",
|
|
19570
|
+
retention=logs.RetentionDays.ONE_DAY
|
|
19571
|
+
),
|
|
19572
|
+
function_name="my-custom-name", # defaults to a CloudFormation generated name
|
|
19573
|
+
removal_policy=RemovalPolicy.RETAIN, # defaults to `RemovalPolicy.DESTROY`
|
|
19574
|
+
policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
|
|
19575
|
+
resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
|
|
19576
|
+
)
|
|
19395
19577
|
)
|
|
19396
19578
|
'''
|
|
19397
19579
|
|
|
@@ -22248,6 +22430,7 @@ class StackSynthesizer(
|
|
|
22248
22430
|
source_hash: builtins.str,
|
|
22249
22431
|
asset_name: typing.Optional[builtins.str] = None,
|
|
22250
22432
|
directory_name: typing.Optional[builtins.str] = None,
|
|
22433
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
22251
22434
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
22252
22435
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
22253
22436
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -22274,6 +22457,7 @@ class StackSynthesizer(
|
|
|
22274
22457
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
22275
22458
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
22276
22459
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
22460
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
22277
22461
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
22278
22462
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
22279
22463
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -22296,6 +22480,7 @@ class StackSynthesizer(
|
|
|
22296
22480
|
*,
|
|
22297
22481
|
source_hash: builtins.str,
|
|
22298
22482
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
22483
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
22299
22484
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
22300
22485
|
file_name: typing.Optional[builtins.str] = None,
|
|
22301
22486
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -22312,6 +22497,7 @@ class StackSynthesizer(
|
|
|
22312
22497
|
|
|
22313
22498
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
22314
22499
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
22500
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
22315
22501
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
22316
22502
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
22317
22503
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -22604,6 +22790,7 @@ class _StackSynthesizerProxy(StackSynthesizer):
|
|
|
22604
22790
|
source_hash: builtins.str,
|
|
22605
22791
|
asset_name: typing.Optional[builtins.str] = None,
|
|
22606
22792
|
directory_name: typing.Optional[builtins.str] = None,
|
|
22793
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
22607
22794
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
22608
22795
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
22609
22796
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -22630,6 +22817,7 @@ class _StackSynthesizerProxy(StackSynthesizer):
|
|
|
22630
22817
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
22631
22818
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
22632
22819
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
22820
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
22633
22821
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
22634
22822
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
22635
22823
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -22647,6 +22835,7 @@ class _StackSynthesizerProxy(StackSynthesizer):
|
|
|
22647
22835
|
source_hash=source_hash,
|
|
22648
22836
|
asset_name=asset_name,
|
|
22649
22837
|
directory_name=directory_name,
|
|
22838
|
+
display_name=display_name,
|
|
22650
22839
|
docker_build_args=docker_build_args,
|
|
22651
22840
|
docker_build_secrets=docker_build_secrets,
|
|
22652
22841
|
docker_build_ssh=docker_build_ssh,
|
|
@@ -22669,6 +22858,7 @@ class _StackSynthesizerProxy(StackSynthesizer):
|
|
|
22669
22858
|
*,
|
|
22670
22859
|
source_hash: builtins.str,
|
|
22671
22860
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
22861
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
22672
22862
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
22673
22863
|
file_name: typing.Optional[builtins.str] = None,
|
|
22674
22864
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -22685,6 +22875,7 @@ class _StackSynthesizerProxy(StackSynthesizer):
|
|
|
22685
22875
|
|
|
22686
22876
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
22687
22877
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
22878
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
22688
22879
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
22689
22880
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
22690
22881
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -22692,6 +22883,7 @@ class _StackSynthesizerProxy(StackSynthesizer):
|
|
|
22692
22883
|
asset = FileAssetSource(
|
|
22693
22884
|
source_hash=source_hash,
|
|
22694
22885
|
deploy_time=deploy_time,
|
|
22886
|
+
display_name=display_name,
|
|
22695
22887
|
executable=executable,
|
|
22696
22888
|
file_name=file_name,
|
|
22697
22889
|
packaging=packaging,
|
|
@@ -33558,7 +33750,7 @@ class CfnStackSet(
|
|
|
33558
33750
|
:param max_concurrent_count: The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of ``FailureToleranceCount`` . ``MaxConcurrentCount`` is at most one more than the ``FailureToleranceCount`` . Note that this setting lets you specify the *maximum* for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. Conditional: You must specify either ``MaxConcurrentCount`` or ``MaxConcurrentPercentage`` , but not both.
|
|
33559
33751
|
:param max_concurrent_percentage: The maximum percentage of accounts in which to perform this operation at one time. When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead. Note that this setting lets you specify the *maximum* for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. Conditional: You must specify either ``MaxConcurrentCount`` or ``MaxConcurrentPercentage`` , but not both.
|
|
33560
33752
|
:param region_concurrency_type: The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.
|
|
33561
|
-
:param region_order: The order of the Regions where you want to perform the stack operation.
|
|
33753
|
+
:param region_order: The order of the Regions where you want to perform the stack operation.
|
|
33562
33754
|
|
|
33563
33755
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html
|
|
33564
33756
|
:exampleMetadata: fixture=_generated
|
|
@@ -33690,10 +33882,6 @@ class CfnStackSet(
|
|
|
33690
33882
|
def region_order(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
33691
33883
|
'''The order of the Regions where you want to perform the stack operation.
|
|
33692
33884
|
|
|
33693
|
-
.. epigraph::
|
|
33694
|
-
|
|
33695
|
-
``RegionOrder`` isn't followed if ``AutoDeployment`` is enabled.
|
|
33696
|
-
|
|
33697
33885
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html#cfn-cloudformation-stackset-operationpreferences-regionorder
|
|
33698
33886
|
'''
|
|
33699
33887
|
result = self._values.get("region_order")
|
|
@@ -35478,6 +35666,7 @@ class LegacyStackSynthesizer(
|
|
|
35478
35666
|
source_hash: builtins.str,
|
|
35479
35667
|
asset_name: typing.Optional[builtins.str] = None,
|
|
35480
35668
|
directory_name: typing.Optional[builtins.str] = None,
|
|
35669
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
35481
35670
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
35482
35671
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
35483
35672
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -35504,6 +35693,7 @@ class LegacyStackSynthesizer(
|
|
|
35504
35693
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
35505
35694
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
35506
35695
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
35696
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
35507
35697
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
35508
35698
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
35509
35699
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -35521,6 +35711,7 @@ class LegacyStackSynthesizer(
|
|
|
35521
35711
|
source_hash=source_hash,
|
|
35522
35712
|
asset_name=asset_name,
|
|
35523
35713
|
directory_name=directory_name,
|
|
35714
|
+
display_name=display_name,
|
|
35524
35715
|
docker_build_args=docker_build_args,
|
|
35525
35716
|
docker_build_secrets=docker_build_secrets,
|
|
35526
35717
|
docker_build_ssh=docker_build_ssh,
|
|
@@ -35543,6 +35734,7 @@ class LegacyStackSynthesizer(
|
|
|
35543
35734
|
*,
|
|
35544
35735
|
source_hash: builtins.str,
|
|
35545
35736
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
35737
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
35546
35738
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
35547
35739
|
file_name: typing.Optional[builtins.str] = None,
|
|
35548
35740
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -35559,6 +35751,7 @@ class LegacyStackSynthesizer(
|
|
|
35559
35751
|
|
|
35560
35752
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
35561
35753
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
35754
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
35562
35755
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
35563
35756
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
35564
35757
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -35566,6 +35759,7 @@ class LegacyStackSynthesizer(
|
|
|
35566
35759
|
asset = FileAssetSource(
|
|
35567
35760
|
source_hash=source_hash,
|
|
35568
35761
|
deploy_time=deploy_time,
|
|
35762
|
+
display_name=display_name,
|
|
35569
35763
|
executable=executable,
|
|
35570
35764
|
file_name=file_name,
|
|
35571
35765
|
packaging=packaging,
|
|
@@ -35795,6 +35989,7 @@ class NestedStackSynthesizer(
|
|
|
35795
35989
|
source_hash: builtins.str,
|
|
35796
35990
|
asset_name: typing.Optional[builtins.str] = None,
|
|
35797
35991
|
directory_name: typing.Optional[builtins.str] = None,
|
|
35992
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
35798
35993
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
35799
35994
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
35800
35995
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -35821,6 +36016,7 @@ class NestedStackSynthesizer(
|
|
|
35821
36016
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
35822
36017
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
35823
36018
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
36019
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
35824
36020
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
35825
36021
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
35826
36022
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -35838,6 +36034,7 @@ class NestedStackSynthesizer(
|
|
|
35838
36034
|
source_hash=source_hash,
|
|
35839
36035
|
asset_name=asset_name,
|
|
35840
36036
|
directory_name=directory_name,
|
|
36037
|
+
display_name=display_name,
|
|
35841
36038
|
docker_build_args=docker_build_args,
|
|
35842
36039
|
docker_build_secrets=docker_build_secrets,
|
|
35843
36040
|
docker_build_ssh=docker_build_ssh,
|
|
@@ -35860,6 +36057,7 @@ class NestedStackSynthesizer(
|
|
|
35860
36057
|
*,
|
|
35861
36058
|
source_hash: builtins.str,
|
|
35862
36059
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
36060
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
35863
36061
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
35864
36062
|
file_name: typing.Optional[builtins.str] = None,
|
|
35865
36063
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -35876,6 +36074,7 @@ class NestedStackSynthesizer(
|
|
|
35876
36074
|
|
|
35877
36075
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
35878
36076
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
36077
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
35879
36078
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
35880
36079
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
35881
36080
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -35883,6 +36082,7 @@ class NestedStackSynthesizer(
|
|
|
35883
36082
|
asset = FileAssetSource(
|
|
35884
36083
|
source_hash=source_hash,
|
|
35885
36084
|
deploy_time=deploy_time,
|
|
36085
|
+
display_name=display_name,
|
|
35886
36086
|
executable=executable,
|
|
35887
36087
|
file_name=file_name,
|
|
35888
36088
|
packaging=packaging,
|
|
@@ -36061,6 +36261,7 @@ class CliCredentialsStackSynthesizer(
|
|
|
36061
36261
|
source_hash: builtins.str,
|
|
36062
36262
|
asset_name: typing.Optional[builtins.str] = None,
|
|
36063
36263
|
directory_name: typing.Optional[builtins.str] = None,
|
|
36264
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
36064
36265
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
36065
36266
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
36066
36267
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -36087,6 +36288,7 @@ class CliCredentialsStackSynthesizer(
|
|
|
36087
36288
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
36088
36289
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
36089
36290
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
36291
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
36090
36292
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
36091
36293
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
36092
36294
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -36104,6 +36306,7 @@ class CliCredentialsStackSynthesizer(
|
|
|
36104
36306
|
source_hash=source_hash,
|
|
36105
36307
|
asset_name=asset_name,
|
|
36106
36308
|
directory_name=directory_name,
|
|
36309
|
+
display_name=display_name,
|
|
36107
36310
|
docker_build_args=docker_build_args,
|
|
36108
36311
|
docker_build_secrets=docker_build_secrets,
|
|
36109
36312
|
docker_build_ssh=docker_build_ssh,
|
|
@@ -36126,6 +36329,7 @@ class CliCredentialsStackSynthesizer(
|
|
|
36126
36329
|
*,
|
|
36127
36330
|
source_hash: builtins.str,
|
|
36128
36331
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
36332
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
36129
36333
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
36130
36334
|
file_name: typing.Optional[builtins.str] = None,
|
|
36131
36335
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -36142,6 +36346,7 @@ class CliCredentialsStackSynthesizer(
|
|
|
36142
36346
|
|
|
36143
36347
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
36144
36348
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
36349
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
36145
36350
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
36146
36351
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
36147
36352
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -36149,6 +36354,7 @@ class CliCredentialsStackSynthesizer(
|
|
|
36149
36354
|
asset = FileAssetSource(
|
|
36150
36355
|
source_hash=source_hash,
|
|
36151
36356
|
deploy_time=deploy_time,
|
|
36357
|
+
display_name=display_name,
|
|
36152
36358
|
executable=executable,
|
|
36153
36359
|
file_name=file_name,
|
|
36154
36360
|
packaging=packaging,
|
|
@@ -36319,6 +36525,7 @@ class DefaultStackSynthesizer(
|
|
|
36319
36525
|
source_hash: builtins.str,
|
|
36320
36526
|
asset_name: typing.Optional[builtins.str] = None,
|
|
36321
36527
|
directory_name: typing.Optional[builtins.str] = None,
|
|
36528
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
36322
36529
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
36323
36530
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
36324
36531
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -36345,6 +36552,7 @@ class DefaultStackSynthesizer(
|
|
|
36345
36552
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
36346
36553
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
36347
36554
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
36555
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
36348
36556
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
36349
36557
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
36350
36558
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -36362,6 +36570,7 @@ class DefaultStackSynthesizer(
|
|
|
36362
36570
|
source_hash=source_hash,
|
|
36363
36571
|
asset_name=asset_name,
|
|
36364
36572
|
directory_name=directory_name,
|
|
36573
|
+
display_name=display_name,
|
|
36365
36574
|
docker_build_args=docker_build_args,
|
|
36366
36575
|
docker_build_secrets=docker_build_secrets,
|
|
36367
36576
|
docker_build_ssh=docker_build_ssh,
|
|
@@ -36384,6 +36593,7 @@ class DefaultStackSynthesizer(
|
|
|
36384
36593
|
*,
|
|
36385
36594
|
source_hash: builtins.str,
|
|
36386
36595
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
36596
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
36387
36597
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
36388
36598
|
file_name: typing.Optional[builtins.str] = None,
|
|
36389
36599
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -36400,6 +36610,7 @@ class DefaultStackSynthesizer(
|
|
|
36400
36610
|
|
|
36401
36611
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
36402
36612
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
36613
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
36403
36614
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
36404
36615
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
36405
36616
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -36407,6 +36618,7 @@ class DefaultStackSynthesizer(
|
|
|
36407
36618
|
asset = FileAssetSource(
|
|
36408
36619
|
source_hash=source_hash,
|
|
36409
36620
|
deploy_time=deploy_time,
|
|
36621
|
+
display_name=display_name,
|
|
36410
36622
|
executable=executable,
|
|
36411
36623
|
file_name=file_name,
|
|
36412
36624
|
packaging=packaging,
|
|
@@ -36636,6 +36848,7 @@ class BootstraplessSynthesizer(
|
|
|
36636
36848
|
source_hash: builtins.str,
|
|
36637
36849
|
asset_name: typing.Optional[builtins.str] = None,
|
|
36638
36850
|
directory_name: typing.Optional[builtins.str] = None,
|
|
36851
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
36639
36852
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
36640
36853
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
36641
36854
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -36662,6 +36875,7 @@ class BootstraplessSynthesizer(
|
|
|
36662
36875
|
:param source_hash: The hash of the contents of the docker build context. This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change. NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).
|
|
36663
36876
|
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
36664
36877
|
:param directory_name: The directory where the Dockerfile is stored, must be relative to the cloud assembly root. Default: - Exactly one of ``directoryName`` and ``executable`` is required
|
|
36878
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
36665
36879
|
:param docker_build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build args are passed
|
|
36666
36880
|
:param docker_build_secrets: Build secrets to pass to the ``docker build`` command. Since Docker build secrets are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Only allowed when ``directoryName`` is specified. Default: - no build secrets are passed
|
|
36667
36881
|
:param docker_build_ssh: SSH agent socket or keys to pass to the ``docker buildx`` command. Default: - no ssh arg is passed
|
|
@@ -36679,6 +36893,7 @@ class BootstraplessSynthesizer(
|
|
|
36679
36893
|
source_hash=source_hash,
|
|
36680
36894
|
asset_name=asset_name,
|
|
36681
36895
|
directory_name=directory_name,
|
|
36896
|
+
display_name=display_name,
|
|
36682
36897
|
docker_build_args=docker_build_args,
|
|
36683
36898
|
docker_build_secrets=docker_build_secrets,
|
|
36684
36899
|
docker_build_ssh=docker_build_ssh,
|
|
@@ -36701,6 +36916,7 @@ class BootstraplessSynthesizer(
|
|
|
36701
36916
|
*,
|
|
36702
36917
|
source_hash: builtins.str,
|
|
36703
36918
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
36919
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
36704
36920
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
36705
36921
|
file_name: typing.Optional[builtins.str] = None,
|
|
36706
36922
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -36717,6 +36933,7 @@ class BootstraplessSynthesizer(
|
|
|
36717
36933
|
|
|
36718
36934
|
:param source_hash: A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
|
|
36719
36935
|
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
36936
|
+
:param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. Default: - The asset hash is used to display the asset
|
|
36720
36937
|
:param executable: An external command that will produce the packaged asset. The command should produce the location of a ZIP file on ``stdout``. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
36721
36938
|
:param file_name: The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, depending on the packaging type. Default: - Exactly one of ``fileName`` and ``executable`` is required
|
|
36722
36939
|
:param packaging: Which type of packaging to perform. Default: - Required if ``fileName`` is specified.
|
|
@@ -36724,6 +36941,7 @@ class BootstraplessSynthesizer(
|
|
|
36724
36941
|
_asset = FileAssetSource(
|
|
36725
36942
|
source_hash=source_hash,
|
|
36726
36943
|
deploy_time=deploy_time,
|
|
36944
|
+
display_name=display_name,
|
|
36727
36945
|
executable=executable,
|
|
36728
36946
|
file_name=file_name,
|
|
36729
36947
|
packaging=packaging,
|
|
@@ -36744,6 +36962,8 @@ class BootstraplessSynthesizer(
|
|
|
36744
36962
|
|
|
36745
36963
|
|
|
36746
36964
|
__all__ = [
|
|
36965
|
+
"AddDockerImageAssetOptions",
|
|
36966
|
+
"AddFileAssetOptions",
|
|
36747
36967
|
"Annotations",
|
|
36748
36968
|
"App",
|
|
36749
36969
|
"AppProps",
|
|
@@ -37057,6 +37277,7 @@ __all__ = [
|
|
|
37057
37277
|
"aws_codestarconnections",
|
|
37058
37278
|
"aws_codestarnotifications",
|
|
37059
37279
|
"aws_cognito",
|
|
37280
|
+
"aws_cognito_identitypool",
|
|
37060
37281
|
"aws_comprehend",
|
|
37061
37282
|
"aws_config",
|
|
37062
37283
|
"aws_connect",
|
|
@@ -37235,6 +37456,7 @@ __all__ = [
|
|
|
37235
37456
|
"aws_sagemaker",
|
|
37236
37457
|
"aws_sam",
|
|
37237
37458
|
"aws_scheduler",
|
|
37459
|
+
"aws_scheduler_targets",
|
|
37238
37460
|
"aws_sdb",
|
|
37239
37461
|
"aws_secretsmanager",
|
|
37240
37462
|
"aws_securityhub",
|
|
@@ -37351,6 +37573,7 @@ from . import aws_codestar
|
|
|
37351
37573
|
from . import aws_codestarconnections
|
|
37352
37574
|
from . import aws_codestarnotifications
|
|
37353
37575
|
from . import aws_cognito
|
|
37576
|
+
from . import aws_cognito_identitypool
|
|
37354
37577
|
from . import aws_comprehend
|
|
37355
37578
|
from . import aws_config
|
|
37356
37579
|
from . import aws_connect
|
|
@@ -37529,6 +37752,7 @@ from . import aws_s3tables
|
|
|
37529
37752
|
from . import aws_sagemaker
|
|
37530
37753
|
from . import aws_sam
|
|
37531
37754
|
from . import aws_scheduler
|
|
37755
|
+
from . import aws_scheduler_targets
|
|
37532
37756
|
from . import aws_sdb
|
|
37533
37757
|
from . import aws_secretsmanager
|
|
37534
37758
|
from . import aws_securityhub
|
|
@@ -37577,6 +37801,20 @@ from . import pipelines
|
|
|
37577
37801
|
from . import region_info
|
|
37578
37802
|
from . import triggers
|
|
37579
37803
|
|
|
37804
|
+
def _typecheckingstub__5a1ac212aad6af3e005718717aa2d00b8a797e24b74644f38d11d9f5ced18b43(
|
|
37805
|
+
*,
|
|
37806
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
37807
|
+
) -> None:
|
|
37808
|
+
"""Type checking stubs"""
|
|
37809
|
+
pass
|
|
37810
|
+
|
|
37811
|
+
def _typecheckingstub__3b7bb14c4d35bab2918fcff6fafc6bf8560391fa80cf7e743756928a3ff744a2(
|
|
37812
|
+
*,
|
|
37813
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
37814
|
+
) -> None:
|
|
37815
|
+
"""Type checking stubs"""
|
|
37816
|
+
pass
|
|
37817
|
+
|
|
37580
37818
|
def _typecheckingstub__cfddeb4c359528028785fb7ca8a01e86bcda81d53c82cdaef6ad18dd0520ab91(
|
|
37581
37819
|
scope: _constructs_77d1e7e8.IConstruct,
|
|
37582
37820
|
) -> None:
|
|
@@ -37710,13 +37948,9 @@ def _typecheckingstub__e4e4609083793a8b31752be2f457b6b1f1220145a70469bafc48a1428
|
|
|
37710
37948
|
stack: Stack,
|
|
37711
37949
|
source_hash: builtins.str,
|
|
37712
37950
|
source: typing.Union[_DockerImageSource_5db2cfa3, typing.Dict[builtins.str, typing.Any]],
|
|
37951
|
+
dest: typing.Union[_DockerImageDestination_132046c7, typing.Dict[builtins.str, typing.Any]],
|
|
37713
37952
|
*,
|
|
37714
|
-
|
|
37715
|
-
repository_name: builtins.str,
|
|
37716
|
-
assume_role_additional_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
37717
|
-
assume_role_arn: typing.Optional[builtins.str] = None,
|
|
37718
|
-
assume_role_external_id: typing.Optional[builtins.str] = None,
|
|
37719
|
-
region: typing.Optional[builtins.str] = None,
|
|
37953
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
37720
37954
|
) -> None:
|
|
37721
37955
|
"""Type checking stubs"""
|
|
37722
37956
|
pass
|
|
@@ -37725,13 +37959,9 @@ def _typecheckingstub__f12f649e9db582bca540895dead136ba4f8ce5c52abc11eb50e5224da
|
|
|
37725
37959
|
stack: Stack,
|
|
37726
37960
|
source_hash: builtins.str,
|
|
37727
37961
|
source: typing.Union[_FileSource_66254048, typing.Dict[builtins.str, typing.Any]],
|
|
37962
|
+
dest: typing.Union[_FileDestination_7d285b38, typing.Dict[builtins.str, typing.Any]],
|
|
37728
37963
|
*,
|
|
37729
|
-
|
|
37730
|
-
object_key: builtins.str,
|
|
37731
|
-
assume_role_additional_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
37732
|
-
assume_role_arn: typing.Optional[builtins.str] = None,
|
|
37733
|
-
assume_role_external_id: typing.Optional[builtins.str] = None,
|
|
37734
|
-
region: typing.Optional[builtins.str] = None,
|
|
37964
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
37735
37965
|
) -> None:
|
|
37736
37966
|
"""Type checking stubs"""
|
|
37737
37967
|
pass
|
|
@@ -37739,10 +37969,9 @@ def _typecheckingstub__f12f649e9db582bca540895dead136ba4f8ce5c52abc11eb50e5224da
|
|
|
37739
37969
|
def _typecheckingstub__d8572c82a112aaa61153d2b958b8042f9e061141b483b1b0ce6429f9f7c11296(
|
|
37740
37970
|
stack: Stack,
|
|
37741
37971
|
asset: typing.Union[DockerImageAssetSource, typing.Dict[builtins.str, typing.Any]],
|
|
37972
|
+
target: typing.Union[AssetManifestDockerImageDestination, typing.Dict[builtins.str, typing.Any]],
|
|
37742
37973
|
*,
|
|
37743
|
-
|
|
37744
|
-
docker_tag_prefix: typing.Optional[builtins.str] = None,
|
|
37745
|
-
role: typing.Optional[typing.Union[RoleOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
37974
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
37746
37975
|
) -> None:
|
|
37747
37976
|
"""Type checking stubs"""
|
|
37748
37977
|
pass
|
|
@@ -37750,10 +37979,9 @@ def _typecheckingstub__d8572c82a112aaa61153d2b958b8042f9e061141b483b1b0ce6429f9f
|
|
|
37750
37979
|
def _typecheckingstub__085bf08106379af70653604775528303d429c31168f56c2439ed96f6b61197be(
|
|
37751
37980
|
stack: Stack,
|
|
37752
37981
|
asset: typing.Union[FileAssetSource, typing.Dict[builtins.str, typing.Any]],
|
|
37982
|
+
target: typing.Union[AssetManifestFileDestination, typing.Dict[builtins.str, typing.Any]],
|
|
37753
37983
|
*,
|
|
37754
|
-
|
|
37755
|
-
bucket_prefix: typing.Optional[builtins.str] = None,
|
|
37756
|
-
role: typing.Optional[typing.Union[RoleOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
37984
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
37757
37985
|
) -> None:
|
|
37758
37986
|
"""Type checking stubs"""
|
|
37759
37987
|
pass
|
|
@@ -38621,6 +38849,7 @@ def _typecheckingstub__cbcd83febe5237c988f26712b8a838ca5d2e34ea47490d008757c21a6
|
|
|
38621
38849
|
*,
|
|
38622
38850
|
dummy_value: typing.Any,
|
|
38623
38851
|
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
38852
|
+
must_exist: typing.Optional[builtins.bool] = None,
|
|
38624
38853
|
provider: builtins.str,
|
|
38625
38854
|
include_environment: typing.Optional[builtins.bool] = None,
|
|
38626
38855
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
@@ -38799,6 +39028,7 @@ def _typecheckingstub__9dc551978a96bea78751c4b4d32e87775d67d2a68f351884cf05c35d5
|
|
|
38799
39028
|
source_hash: builtins.str,
|
|
38800
39029
|
asset_name: typing.Optional[builtins.str] = None,
|
|
38801
39030
|
directory_name: typing.Optional[builtins.str] = None,
|
|
39031
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
38802
39032
|
docker_build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
38803
39033
|
docker_build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
38804
39034
|
docker_build_ssh: typing.Optional[builtins.str] = None,
|
|
@@ -38999,6 +39229,7 @@ def _typecheckingstub__6a2ffcc71f7081ed98f77dcff398894a56d300191a4893d6469a2218f
|
|
|
38999
39229
|
*,
|
|
39000
39230
|
source_hash: builtins.str,
|
|
39001
39231
|
deploy_time: typing.Optional[builtins.bool] = None,
|
|
39232
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
39002
39233
|
executable: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
39003
39234
|
file_name: typing.Optional[builtins.str] = None,
|
|
39004
39235
|
packaging: typing.Optional[FileAssetPackaging] = None,
|
|
@@ -39275,6 +39506,7 @@ def _typecheckingstub__16ea3024419c210903405ca05f7de1bb3fad517c101a7a84926fb5e09
|
|
|
39275
39506
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
39276
39507
|
dummy_value: typing.Any,
|
|
39277
39508
|
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
39509
|
+
must_exist: typing.Optional[builtins.bool] = None,
|
|
39278
39510
|
) -> None:
|
|
39279
39511
|
"""Type checking stubs"""
|
|
39280
39512
|
pass
|
|
@@ -39704,6 +39936,12 @@ def _typecheckingstub__569ac5c6adbac9575b4137a0343aea0625df007d849957bfacf2e65a0
|
|
|
39704
39936
|
"""Type checking stubs"""
|
|
39705
39937
|
pass
|
|
39706
39938
|
|
|
39939
|
+
def _typecheckingstub__307d610951ef0b232f9222edc6ac5421fa347060bc21fb75e850a338e9aa77c7(
|
|
39940
|
+
construct: _constructs_77d1e7e8.IConstruct,
|
|
39941
|
+
) -> None:
|
|
39942
|
+
"""Type checking stubs"""
|
|
39943
|
+
pass
|
|
39944
|
+
|
|
39707
39945
|
def _typecheckingstub__8c1ba4bae2d17f227472b42e48bc60d8c4a5dd7a3c60793d3b332fc432589917(
|
|
39708
39946
|
construct: _constructs_77d1e7e8.IConstruct,
|
|
39709
39947
|
) -> None:
|