aws-cdk-lib 2.157.0__py3-none-any.whl → 2.159.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 +52 -20
- aws_cdk/_jsii/__init__.py +17 -2
- aws_cdk/_jsii/{aws-cdk-lib@2.157.0.jsii.tgz → aws-cdk-lib@2.159.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +16 -1
- aws_cdk/assertions/__init__.py +16 -1
- aws_cdk/aws_accessanalyzer/__init__.py +16 -1
- aws_cdk/aws_acmpca/__init__.py +16 -1
- aws_cdk/aws_amazonmq/__init__.py +16 -1
- aws_cdk/aws_amplify/__init__.py +38 -9
- aws_cdk/aws_amplifyuibuilder/__init__.py +16 -1
- aws_cdk/aws_apigateway/__init__.py +16 -1
- aws_cdk/aws_apigatewayv2/__init__.py +46 -1
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +16 -1
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +16 -1
- aws_cdk/aws_appconfig/__init__.py +19 -4
- aws_cdk/aws_appflow/__init__.py +16 -1
- aws_cdk/aws_appintegrations/__init__.py +16 -1
- aws_cdk/aws_applicationautoscaling/__init__.py +16 -1
- aws_cdk/aws_applicationinsights/__init__.py +560 -5
- aws_cdk/aws_applicationsignals/__init__.py +186 -143
- aws_cdk/aws_appmesh/__init__.py +16 -1
- aws_cdk/aws_apprunner/__init__.py +16 -1
- aws_cdk/aws_appstream/__init__.py +16 -1
- aws_cdk/aws_appsync/__init__.py +16 -1
- aws_cdk/aws_apptest/__init__.py +16 -1
- aws_cdk/aws_aps/__init__.py +16 -1
- aws_cdk/aws_arczonalshift/__init__.py +16 -1
- aws_cdk/aws_athena/__init__.py +31 -16
- aws_cdk/aws_auditmanager/__init__.py +21 -6
- aws_cdk/aws_autoscaling/__init__.py +16 -1
- aws_cdk/aws_autoscaling_common/__init__.py +16 -1
- aws_cdk/aws_autoscaling_hooktargets/__init__.py +16 -1
- aws_cdk/aws_autoscalingplans/__init__.py +16 -1
- aws_cdk/aws_b2bi/__init__.py +16 -1
- aws_cdk/aws_backup/__init__.py +16 -1
- aws_cdk/aws_backupgateway/__init__.py +16 -1
- aws_cdk/aws_batch/__init__.py +16 -1
- aws_cdk/aws_bcmdataexports/__init__.py +16 -1
- aws_cdk/aws_bedrock/__init__.py +23 -8
- aws_cdk/aws_billingconductor/__init__.py +16 -1
- aws_cdk/aws_budgets/__init__.py +16 -1
- aws_cdk/aws_cassandra/__init__.py +16 -1
- aws_cdk/aws_ce/__init__.py +16 -1
- aws_cdk/aws_certificatemanager/__init__.py +16 -1
- aws_cdk/aws_chatbot/__init__.py +16 -1
- aws_cdk/aws_cleanrooms/__init__.py +16 -1
- aws_cdk/aws_cleanroomsml/__init__.py +16 -1
- aws_cdk/aws_cloud9/__init__.py +16 -1
- aws_cdk/aws_cloudformation/__init__.py +16 -1
- aws_cdk/aws_cloudfront/__init__.py +16 -1
- aws_cdk/aws_cloudfront/experimental/__init__.py +16 -1
- aws_cdk/aws_cloudfront_origins/__init__.py +16 -1
- aws_cdk/aws_cloudtrail/__init__.py +16 -1
- aws_cdk/aws_cloudwatch/__init__.py +16 -1
- aws_cdk/aws_cloudwatch_actions/__init__.py +16 -1
- aws_cdk/aws_codeartifact/__init__.py +16 -1
- aws_cdk/aws_codebuild/__init__.py +55 -19
- aws_cdk/aws_codecommit/__init__.py +16 -1
- aws_cdk/aws_codeconnections/__init__.py +17 -2
- aws_cdk/aws_codedeploy/__init__.py +16 -1
- aws_cdk/aws_codeguruprofiler/__init__.py +16 -1
- aws_cdk/aws_codegurureviewer/__init__.py +16 -1
- aws_cdk/aws_codepipeline/__init__.py +16 -1
- aws_cdk/aws_codepipeline_actions/__init__.py +16 -1
- aws_cdk/aws_codestar/__init__.py +16 -1
- aws_cdk/aws_codestarconnections/__init__.py +16 -1
- aws_cdk/aws_codestarnotifications/__init__.py +16 -1
- aws_cdk/aws_cognito/__init__.py +406 -204
- aws_cdk/aws_comprehend/__init__.py +16 -1
- aws_cdk/aws_config/__init__.py +16 -1
- aws_cdk/aws_connect/__init__.py +1695 -153
- aws_cdk/aws_connectcampaigns/__init__.py +16 -1
- aws_cdk/aws_controltower/__init__.py +16 -1
- aws_cdk/aws_cur/__init__.py +16 -1
- aws_cdk/aws_customerprofiles/__init__.py +16 -1
- aws_cdk/aws_databrew/__init__.py +16 -1
- aws_cdk/aws_datapipeline/__init__.py +16 -1
- aws_cdk/aws_datasync/__init__.py +16 -1
- aws_cdk/aws_datazone/__init__.py +681 -41
- aws_cdk/aws_dax/__init__.py +16 -1
- aws_cdk/aws_deadline/__init__.py +16 -1
- aws_cdk/aws_detective/__init__.py +16 -1
- aws_cdk/aws_devicefarm/__init__.py +16 -1
- aws_cdk/aws_devopsguru/__init__.py +16 -1
- aws_cdk/aws_directoryservice/__init__.py +16 -1
- aws_cdk/aws_dlm/__init__.py +16 -1
- aws_cdk/aws_dms/__init__.py +16 -1
- aws_cdk/aws_docdb/__init__.py +22 -2
- aws_cdk/aws_docdbelastic/__init__.py +16 -1
- aws_cdk/aws_dynamodb/__init__.py +21 -6
- aws_cdk/aws_ec2/__init__.py +137 -37
- aws_cdk/aws_ecr/__init__.py +30 -7
- aws_cdk/aws_ecr_assets/__init__.py +16 -1
- aws_cdk/aws_ecs/__init__.py +36 -21
- aws_cdk/aws_ecs_patterns/__init__.py +16 -1
- aws_cdk/aws_efs/__init__.py +16 -1
- aws_cdk/aws_eks/__init__.py +16 -1
- aws_cdk/aws_elasticache/__init__.py +16 -1
- aws_cdk/aws_elasticbeanstalk/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +183 -21
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancingv2_targets/__init__.py +16 -1
- aws_cdk/aws_elasticsearch/__init__.py +16 -1
- aws_cdk/aws_emr/__init__.py +24 -9
- aws_cdk/aws_emrcontainers/__init__.py +16 -1
- aws_cdk/aws_emrserverless/__init__.py +16 -1
- aws_cdk/aws_entityresolution/__init__.py +16 -1
- aws_cdk/aws_events/__init__.py +35 -18
- aws_cdk/aws_events_targets/__init__.py +181 -86
- aws_cdk/aws_eventschemas/__init__.py +16 -1
- aws_cdk/aws_evidently/__init__.py +16 -1
- aws_cdk/aws_finspace/__init__.py +16 -1
- aws_cdk/aws_fis/__init__.py +16 -1
- aws_cdk/aws_fms/__init__.py +75 -1
- aws_cdk/aws_forecast/__init__.py +16 -1
- aws_cdk/aws_frauddetector/__init__.py +16 -1
- aws_cdk/aws_fsx/__init__.py +19 -4
- aws_cdk/aws_gamelift/__init__.py +56 -53
- aws_cdk/aws_globalaccelerator/__init__.py +38 -30
- aws_cdk/aws_globalaccelerator_endpoints/__init__.py +16 -1
- aws_cdk/aws_glue/__init__.py +16 -1
- aws_cdk/aws_grafana/__init__.py +16 -1
- aws_cdk/aws_greengrass/__init__.py +16 -1
- aws_cdk/aws_greengrassv2/__init__.py +16 -1
- aws_cdk/aws_groundstation/__init__.py +16 -1
- aws_cdk/aws_guardduty/__init__.py +16 -1
- aws_cdk/aws_healthimaging/__init__.py +16 -1
- aws_cdk/aws_healthlake/__init__.py +16 -1
- aws_cdk/aws_iam/__init__.py +38 -21
- aws_cdk/aws_identitystore/__init__.py +16 -1
- aws_cdk/aws_imagebuilder/__init__.py +16 -1
- aws_cdk/aws_inspector/__init__.py +16 -1
- aws_cdk/aws_inspectorv2/__init__.py +16 -1
- aws_cdk/aws_internetmonitor/__init__.py +16 -1
- aws_cdk/aws_iot/__init__.py +16 -1
- aws_cdk/aws_iot1click/__init__.py +16 -1
- aws_cdk/aws_iotanalytics/__init__.py +16 -1
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -1
- aws_cdk/aws_iotevents/__init__.py +16 -1
- aws_cdk/aws_iotfleethub/__init__.py +16 -1
- aws_cdk/aws_iotfleetwise/__init__.py +435 -1
- aws_cdk/aws_iotsitewise/__init__.py +106 -2
- aws_cdk/aws_iotthingsgraph/__init__.py +16 -1
- aws_cdk/aws_iottwinmaker/__init__.py +16 -1
- aws_cdk/aws_iotwireless/__init__.py +221 -1
- aws_cdk/aws_ivs/__init__.py +16 -1
- aws_cdk/aws_ivschat/__init__.py +16 -1
- aws_cdk/aws_kafkaconnect/__init__.py +16 -1
- aws_cdk/aws_kendra/__init__.py +16 -1
- aws_cdk/aws_kendraranking/__init__.py +16 -1
- aws_cdk/aws_kinesis/__init__.py +16 -1
- aws_cdk/aws_kinesisanalytics/__init__.py +16 -1
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +16 -1
- aws_cdk/aws_kinesisfirehose/__init__.py +16 -1
- aws_cdk/aws_kinesisvideo/__init__.py +16 -1
- aws_cdk/aws_kms/__init__.py +16 -1
- aws_cdk/aws_lakeformation/__init__.py +16 -1
- aws_cdk/aws_lambda/__init__.py +145 -17
- aws_cdk/aws_lambda_destinations/__init__.py +16 -1
- aws_cdk/aws_lambda_event_sources/__init__.py +16 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +16 -1
- aws_cdk/aws_launchwizard/__init__.py +16 -1
- aws_cdk/aws_lex/__init__.py +31 -2
- aws_cdk/aws_licensemanager/__init__.py +16 -1
- aws_cdk/aws_lightsail/__init__.py +16 -1
- aws_cdk/aws_location/__init__.py +16 -1
- aws_cdk/aws_logs/__init__.py +17 -2
- aws_cdk/aws_logs_destinations/__init__.py +16 -1
- aws_cdk/aws_lookoutequipment/__init__.py +16 -1
- aws_cdk/aws_lookoutmetrics/__init__.py +16 -1
- aws_cdk/aws_lookoutvision/__init__.py +16 -1
- aws_cdk/aws_m2/__init__.py +16 -1
- aws_cdk/aws_macie/__init__.py +16 -1
- aws_cdk/aws_managedblockchain/__init__.py +16 -1
- aws_cdk/aws_mediaconnect/__init__.py +127 -1
- aws_cdk/aws_mediaconvert/__init__.py +16 -1
- aws_cdk/aws_medialive/__init__.py +8004 -3263
- aws_cdk/aws_mediapackage/__init__.py +16 -1
- aws_cdk/aws_mediapackagev2/__init__.py +16 -1
- aws_cdk/aws_mediastore/__init__.py +16 -1
- aws_cdk/aws_mediatailor/__init__.py +16 -1
- aws_cdk/aws_memorydb/__init__.py +16 -1
- aws_cdk/aws_msk/__init__.py +303 -480
- aws_cdk/aws_mwaa/__init__.py +16 -1
- aws_cdk/aws_neptune/__init__.py +16 -1
- aws_cdk/aws_neptunegraph/__init__.py +16 -1
- aws_cdk/aws_networkfirewall/__init__.py +16 -1
- aws_cdk/aws_networkmanager/__init__.py +16 -1
- aws_cdk/aws_nimblestudio/__init__.py +16 -1
- aws_cdk/aws_oam/__init__.py +16 -1
- aws_cdk/aws_omics/__init__.py +16 -1
- aws_cdk/aws_opensearchserverless/__init__.py +16 -1
- aws_cdk/aws_opensearchservice/__init__.py +22 -1
- aws_cdk/aws_opsworks/__init__.py +16 -1
- aws_cdk/aws_opsworkscm/__init__.py +16 -1
- aws_cdk/aws_organizations/__init__.py +16 -1
- aws_cdk/aws_osis/__init__.py +16 -1
- aws_cdk/aws_panorama/__init__.py +16 -1
- aws_cdk/aws_paymentcryptography/__init__.py +16 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +16 -1
- aws_cdk/aws_pcaconnectorscep/__init__.py +85 -31
- aws_cdk/aws_personalize/__init__.py +16 -1
- aws_cdk/aws_pinpoint/__init__.py +16 -1
- aws_cdk/aws_pinpointemail/__init__.py +16 -1
- aws_cdk/aws_pipes/__init__.py +65 -1
- aws_cdk/aws_proton/__init__.py +16 -1
- aws_cdk/aws_qbusiness/__init__.py +27 -15
- aws_cdk/aws_qldb/__init__.py +16 -1
- aws_cdk/aws_quicksight/__init__.py +654 -100
- aws_cdk/aws_ram/__init__.py +16 -1
- aws_cdk/aws_rds/__init__.py +78 -32
- aws_cdk/aws_redshift/__init__.py +16 -1
- aws_cdk/aws_redshiftserverless/__init__.py +16 -1
- aws_cdk/aws_refactorspaces/__init__.py +16 -1
- aws_cdk/aws_rekognition/__init__.py +16 -1
- aws_cdk/aws_resiliencehub/__init__.py +16 -1
- aws_cdk/aws_resourceexplorer2/__init__.py +16 -1
- aws_cdk/aws_resourcegroups/__init__.py +16 -1
- aws_cdk/aws_robomaker/__init__.py +16 -1
- aws_cdk/aws_rolesanywhere/__init__.py +16 -1
- aws_cdk/aws_route53/__init__.py +16 -1
- aws_cdk/aws_route53_patterns/__init__.py +16 -1
- aws_cdk/aws_route53_targets/__init__.py +16 -1
- aws_cdk/aws_route53profiles/__init__.py +16 -1
- aws_cdk/aws_route53recoverycontrol/__init__.py +16 -1
- aws_cdk/aws_route53recoveryreadiness/__init__.py +16 -1
- aws_cdk/aws_route53resolver/__init__.py +16 -1
- aws_cdk/aws_rum/__init__.py +16 -1
- aws_cdk/aws_s3/__init__.py +231 -34
- aws_cdk/aws_s3_assets/__init__.py +16 -1
- aws_cdk/aws_s3_deployment/__init__.py +16 -1
- aws_cdk/aws_s3_notifications/__init__.py +16 -1
- aws_cdk/aws_s3express/__init__.py +16 -1
- aws_cdk/aws_s3objectlambda/__init__.py +18 -3
- aws_cdk/aws_s3outposts/__init__.py +16 -1
- aws_cdk/aws_sagemaker/__init__.py +888 -59
- aws_cdk/aws_sam/__init__.py +16 -1
- aws_cdk/aws_scheduler/__init__.py +16 -1
- aws_cdk/aws_sdb/__init__.py +16 -1
- aws_cdk/aws_secretsmanager/__init__.py +38 -9
- aws_cdk/aws_securityhub/__init__.py +277 -20
- aws_cdk/aws_securitylake/__init__.py +343 -8
- aws_cdk/aws_servicecatalog/__init__.py +16 -1
- aws_cdk/aws_servicecatalogappregistry/__init__.py +16 -1
- aws_cdk/aws_servicediscovery/__init__.py +21 -6
- aws_cdk/aws_ses/__init__.py +16 -1
- aws_cdk/aws_ses_actions/__init__.py +16 -1
- aws_cdk/aws_shield/__init__.py +16 -1
- aws_cdk/aws_signer/__init__.py +16 -1
- aws_cdk/aws_simspaceweaver/__init__.py +16 -1
- aws_cdk/aws_sns/__init__.py +16 -9
- aws_cdk/aws_sns_subscriptions/__init__.py +16 -1
- aws_cdk/aws_sqs/__init__.py +16 -1
- aws_cdk/aws_ssm/__init__.py +36 -13
- aws_cdk/aws_ssmcontacts/__init__.py +16 -1
- aws_cdk/aws_ssmincidents/__init__.py +16 -1
- aws_cdk/aws_ssmquicksetup/__init__.py +16 -1
- aws_cdk/aws_sso/__init__.py +16 -1
- aws_cdk/aws_stepfunctions/__init__.py +16 -1
- aws_cdk/aws_stepfunctions_tasks/__init__.py +52 -1
- aws_cdk/aws_supportapp/__init__.py +16 -1
- aws_cdk/aws_synthetics/__init__.py +16 -1
- aws_cdk/aws_systemsmanagersap/__init__.py +16 -1
- aws_cdk/aws_timestream/__init__.py +16 -1
- aws_cdk/aws_transfer/__init__.py +16 -1
- aws_cdk/aws_verifiedpermissions/__init__.py +16 -1
- aws_cdk/aws_voiceid/__init__.py +16 -1
- aws_cdk/aws_vpclattice/__init__.py +16 -1
- aws_cdk/aws_waf/__init__.py +16 -1
- aws_cdk/aws_wafregional/__init__.py +16 -1
- aws_cdk/aws_wafv2/__init__.py +16 -1
- aws_cdk/aws_wisdom/__init__.py +16 -1
- aws_cdk/aws_workspaces/__init__.py +16 -1
- aws_cdk/aws_workspacesthinclient/__init__.py +16 -1
- aws_cdk/aws_workspacesweb/__init__.py +16 -1
- aws_cdk/aws_xray/__init__.py +16 -1
- aws_cdk/cloud_assembly_schema/__init__.py +16 -1
- aws_cdk/cloudformation_include/__init__.py +16 -1
- aws_cdk/custom_resources/__init__.py +16 -1
- aws_cdk/cx_api/__init__.py +35 -1
- aws_cdk/lambda_layer_awscli/__init__.py +16 -1
- aws_cdk/lambda_layer_kubectl/__init__.py +16 -1
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +16 -1
- aws_cdk/pipelines/__init__.py +16 -1
- aws_cdk/region_info/__init__.py +16 -1
- aws_cdk/triggers/__init__.py +16 -1
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/METADATA +5 -5
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/NOTICE +27 -8
- aws_cdk_lib-2.159.0.dist-info/RECORD +294 -0
- aws_cdk_lib-2.157.0.dist-info/RECORD +0 -294
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -1514,7 +1514,22 @@ import jsii
|
|
|
1514
1514
|
import publication
|
|
1515
1515
|
import typing_extensions
|
|
1516
1516
|
|
|
1517
|
-
|
|
1517
|
+
import typeguard
|
|
1518
|
+
from importlib.metadata import version as _metadata_package_version
|
|
1519
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
1520
|
+
|
|
1521
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
1522
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
1523
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
1524
|
+
else:
|
|
1525
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
1526
|
+
pass
|
|
1527
|
+
else:
|
|
1528
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
1529
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
1530
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
1531
|
+
else:
|
|
1532
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
1518
1533
|
|
|
1519
1534
|
from ._jsii import *
|
|
1520
1535
|
|
|
@@ -9803,13 +9818,15 @@ class ContextProvider(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.ContextPro
|
|
|
9803
9818
|
scope: _constructs_77d1e7e8.Construct,
|
|
9804
9819
|
*,
|
|
9805
9820
|
dummy_value: typing.Any,
|
|
9821
|
+
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
9806
9822
|
provider: builtins.str,
|
|
9807
9823
|
include_environment: typing.Optional[builtins.bool] = None,
|
|
9808
9824
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
9809
9825
|
) -> "GetContextValueResult":
|
|
9810
9826
|
'''
|
|
9811
9827
|
:param scope: -
|
|
9812
|
-
:param dummy_value: The value to return if the context value was not found and a missing context is reported.
|
|
9828
|
+
:param dummy_value: The value to return if the context value was not found and a missing context is reported.
|
|
9829
|
+
:param ignore_error_on_missing_context: When True, the context provider will not throw an error if missing context is reported. Default: false
|
|
9813
9830
|
:param provider: The context provider to query.
|
|
9814
9831
|
:param include_environment: Whether to include the stack's account and region automatically. Default: true
|
|
9815
9832
|
:param props: Provider-specific properties.
|
|
@@ -9819,6 +9836,7 @@ class ContextProvider(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.ContextPro
|
|
|
9819
9836
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
9820
9837
|
options = GetContextValueOptions(
|
|
9821
9838
|
dummy_value=dummy_value,
|
|
9839
|
+
ignore_error_on_missing_context=ignore_error_on_missing_context,
|
|
9822
9840
|
provider=provider,
|
|
9823
9841
|
include_environment=include_environment,
|
|
9824
9842
|
props=props,
|
|
@@ -12142,19 +12160,19 @@ class Duration(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Duration"):
|
|
|
12142
12160
|
|
|
12143
12161
|
Example::
|
|
12144
12162
|
|
|
12145
|
-
#
|
|
12163
|
+
# application: appconfig.Application
|
|
12164
|
+
# bucket: s3.Bucket
|
|
12146
12165
|
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
|
|
12166
|
+
|
|
12167
|
+
appconfig.SourcedConfiguration(self, "MySourcedConfiguration",
|
|
12168
|
+
application=application,
|
|
12169
|
+
location=appconfig.ConfigurationSource.from_bucket(bucket, "path/to/file.json"),
|
|
12170
|
+
deployment_strategy=appconfig.DeploymentStrategy(self, "MyDeploymentStrategy",
|
|
12171
|
+
rollout_strategy=appconfig.RolloutStrategy.linear(
|
|
12172
|
+
growth_factor=15,
|
|
12173
|
+
deployment_duration=Duration.minutes(30),
|
|
12174
|
+
final_bake_time=Duration.minutes(15)
|
|
12175
|
+
)
|
|
12158
12176
|
)
|
|
12159
12177
|
)
|
|
12160
12178
|
'''
|
|
@@ -14230,6 +14248,7 @@ class GetContextKeyResult:
|
|
|
14230
14248
|
"include_environment": "includeEnvironment",
|
|
14231
14249
|
"props": "props",
|
|
14232
14250
|
"dummy_value": "dummyValue",
|
|
14251
|
+
"ignore_error_on_missing_context": "ignoreErrorOnMissingContext",
|
|
14233
14252
|
},
|
|
14234
14253
|
)
|
|
14235
14254
|
class GetContextValueOptions(GetContextKeyOptions):
|
|
@@ -14240,12 +14259,14 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
14240
14259
|
include_environment: typing.Optional[builtins.bool] = None,
|
|
14241
14260
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
14242
14261
|
dummy_value: typing.Any,
|
|
14262
|
+
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
14243
14263
|
) -> None:
|
|
14244
14264
|
'''
|
|
14245
14265
|
:param provider: The context provider to query.
|
|
14246
14266
|
:param include_environment: Whether to include the stack's account and region automatically. Default: true
|
|
14247
14267
|
:param props: Provider-specific properties.
|
|
14248
|
-
:param dummy_value: The value to return if the context value was not found and a missing context is reported.
|
|
14268
|
+
:param dummy_value: The value to return if the context value was not found and a missing context is reported.
|
|
14269
|
+
:param ignore_error_on_missing_context: When True, the context provider will not throw an error if missing context is reported. Default: false
|
|
14249
14270
|
|
|
14250
14271
|
:exampleMetadata: fixture=_generated
|
|
14251
14272
|
|
|
@@ -14263,6 +14284,7 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
14263
14284
|
provider="provider",
|
|
14264
14285
|
|
|
14265
14286
|
# the properties below are optional
|
|
14287
|
+
ignore_error_on_missing_context=False,
|
|
14266
14288
|
include_environment=False,
|
|
14267
14289
|
props={
|
|
14268
14290
|
"props_key": props
|
|
@@ -14275,6 +14297,7 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
14275
14297
|
check_type(argname="argument include_environment", value=include_environment, expected_type=type_hints["include_environment"])
|
|
14276
14298
|
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
14277
14299
|
check_type(argname="argument dummy_value", value=dummy_value, expected_type=type_hints["dummy_value"])
|
|
14300
|
+
check_type(argname="argument ignore_error_on_missing_context", value=ignore_error_on_missing_context, expected_type=type_hints["ignore_error_on_missing_context"])
|
|
14278
14301
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
14279
14302
|
"provider": provider,
|
|
14280
14303
|
"dummy_value": dummy_value,
|
|
@@ -14283,6 +14306,8 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
14283
14306
|
self._values["include_environment"] = include_environment
|
|
14284
14307
|
if props is not None:
|
|
14285
14308
|
self._values["props"] = props
|
|
14309
|
+
if ignore_error_on_missing_context is not None:
|
|
14310
|
+
self._values["ignore_error_on_missing_context"] = ignore_error_on_missing_context
|
|
14286
14311
|
|
|
14287
14312
|
@builtins.property
|
|
14288
14313
|
def provider(self) -> builtins.str:
|
|
@@ -14308,15 +14333,20 @@ class GetContextValueOptions(GetContextKeyOptions):
|
|
|
14308
14333
|
|
|
14309
14334
|
@builtins.property
|
|
14310
14335
|
def dummy_value(self) -> typing.Any:
|
|
14311
|
-
'''The value to return if the context value was not found and a missing context is reported.
|
|
14312
|
-
|
|
14313
|
-
This should be a dummy value that should preferably
|
|
14314
|
-
fail during deployment since it represents an invalid state.
|
|
14315
|
-
'''
|
|
14336
|
+
'''The value to return if the context value was not found and a missing context is reported.'''
|
|
14316
14337
|
result = self._values.get("dummy_value")
|
|
14317
14338
|
assert result is not None, "Required property 'dummy_value' is missing"
|
|
14318
14339
|
return typing.cast(typing.Any, result)
|
|
14319
14340
|
|
|
14341
|
+
@builtins.property
|
|
14342
|
+
def ignore_error_on_missing_context(self) -> typing.Optional[builtins.bool]:
|
|
14343
|
+
'''When True, the context provider will not throw an error if missing context is reported.
|
|
14344
|
+
|
|
14345
|
+
:default: false
|
|
14346
|
+
'''
|
|
14347
|
+
result = self._values.get("ignore_error_on_missing_context")
|
|
14348
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
14349
|
+
|
|
14320
14350
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
14321
14351
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
14322
14352
|
|
|
@@ -35293,6 +35323,7 @@ def _typecheckingstub__cbcd83febe5237c988f26712b8a838ca5d2e34ea47490d008757c21a6
|
|
|
35293
35323
|
scope: _constructs_77d1e7e8.Construct,
|
|
35294
35324
|
*,
|
|
35295
35325
|
dummy_value: typing.Any,
|
|
35326
|
+
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
35296
35327
|
provider: builtins.str,
|
|
35297
35328
|
include_environment: typing.Optional[builtins.bool] = None,
|
|
35298
35329
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
@@ -35917,6 +35948,7 @@ def _typecheckingstub__16ea3024419c210903405ca05f7de1bb3fad517c101a7a84926fb5e09
|
|
|
35917
35948
|
include_environment: typing.Optional[builtins.bool] = None,
|
|
35918
35949
|
props: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
35919
35950
|
dummy_value: typing.Any,
|
|
35951
|
+
ignore_error_on_missing_context: typing.Optional[builtins.bool] = None,
|
|
35920
35952
|
) -> None:
|
|
35921
35953
|
"""Type checking stubs"""
|
|
35922
35954
|
pass
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -11,7 +11,22 @@ import jsii
|
|
|
11
11
|
import publication
|
|
12
12
|
import typing_extensions
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
import typeguard
|
|
15
|
+
from importlib.metadata import version as _metadata_package_version
|
|
16
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
17
|
+
|
|
18
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
19
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
20
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
21
|
+
else:
|
|
22
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
23
|
+
pass
|
|
24
|
+
else:
|
|
25
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
26
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
27
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
28
|
+
else:
|
|
29
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
15
30
|
|
|
16
31
|
import aws_cdk.asset_awscli_v1._jsii
|
|
17
32
|
import aws_cdk.asset_kubectl_v20._jsii
|
|
@@ -20,7 +35,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
20
35
|
import constructs._jsii
|
|
21
36
|
|
|
22
37
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
23
|
-
"aws-cdk-lib", "2.
|
|
38
|
+
"aws-cdk-lib", "2.159.0", __name__[0:-6], "aws-cdk-lib@2.159.0.jsii.tgz"
|
|
24
39
|
)
|
|
25
40
|
|
|
26
41
|
__all__ = [
|
|
Binary file
|
aws_cdk/alexa_ask/__init__.py
CHANGED
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|
aws_cdk/assertions/__init__.py
CHANGED
|
@@ -650,7 +650,22 @@ import jsii
|
|
|
650
650
|
import publication
|
|
651
651
|
import typing_extensions
|
|
652
652
|
|
|
653
|
-
|
|
653
|
+
import typeguard
|
|
654
|
+
from importlib.metadata import version as _metadata_package_version
|
|
655
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
656
|
+
|
|
657
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
658
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
659
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
660
|
+
else:
|
|
661
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
662
|
+
pass
|
|
663
|
+
else:
|
|
664
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
665
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
666
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
667
|
+
else:
|
|
668
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
654
669
|
|
|
655
670
|
from .._jsii import *
|
|
656
671
|
|
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|
aws_cdk/aws_acmpca/__init__.py
CHANGED
|
@@ -69,7 +69,22 @@ import jsii
|
|
|
69
69
|
import publication
|
|
70
70
|
import typing_extensions
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
import typeguard
|
|
73
|
+
from importlib.metadata import version as _metadata_package_version
|
|
74
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
75
|
+
|
|
76
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
77
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
78
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
79
|
+
else:
|
|
80
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
81
|
+
pass
|
|
82
|
+
else:
|
|
83
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
84
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
85
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
86
|
+
else:
|
|
87
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
73
88
|
|
|
74
89
|
from .._jsii import *
|
|
75
90
|
|
aws_cdk/aws_amazonmq/__init__.py
CHANGED
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|
aws_cdk/aws_amplify/__init__.py
CHANGED
|
@@ -43,7 +43,22 @@ import jsii
|
|
|
43
43
|
import publication
|
|
44
44
|
import typing_extensions
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
import typeguard
|
|
47
|
+
from importlib.metadata import version as _metadata_package_version
|
|
48
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
49
|
+
|
|
50
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
51
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
52
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
53
|
+
else:
|
|
54
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
55
|
+
pass
|
|
56
|
+
else:
|
|
57
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
58
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
59
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
60
|
+
else:
|
|
61
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
47
62
|
|
|
48
63
|
from .._jsii import *
|
|
49
64
|
|
|
@@ -169,7 +184,7 @@ class CfnApp(
|
|
|
169
184
|
:param auto_branch_creation_config: Sets the configuration for your automatic branch creation.
|
|
170
185
|
:param basic_auth_config: The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format ``user:password`` .
|
|
171
186
|
:param build_spec: The build specification (build spec) for an Amplify app.
|
|
172
|
-
:param cache_config:
|
|
187
|
+
:param cache_config: The cache configuration for the Amplify app. If you don't specify the cache configuration ``type`` , Amplify uses the default ``AMPLIFY_MANAGED`` setting.
|
|
173
188
|
:param custom_headers: The custom HTTP headers for an Amplify app.
|
|
174
189
|
:param custom_rules: The custom rewrite and redirect rules for an Amplify app.
|
|
175
190
|
:param description: The description of the Amplify app.
|
|
@@ -177,7 +192,7 @@ class CfnApp(
|
|
|
177
192
|
:param environment_variables: The environment variables for the Amplify app. For a list of the environment variables that are accessible to Amplify by default, see `Amplify Environment variables <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html>`_ in the *Amplify Hosting User Guide* .
|
|
178
193
|
:param iam_service_role: AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
|
|
179
194
|
:param oauth_token: The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored. Use ``OauthToken`` for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use ``AccessToken`` . You must specify either ``OauthToken`` or ``AccessToken`` when you create a new app. Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see `Migrating an existing OAuth app to the Amplify GitHub App <https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth>`_ in the *Amplify User Guide* .
|
|
180
|
-
:param platform: The platform for the Amplify app. For a static app, set the platform type to ``WEB`` . For a dynamic server-side rendered (SSR) app, set the platform type to ``WEB_COMPUTE`` . For an app requiring Amplify Hosting's original SSR support only, set the platform type to ``WEB_DYNAMIC`` .
|
|
195
|
+
:param platform: The platform for the Amplify app. For a static app, set the platform type to ``WEB`` . For a dynamic server-side rendered (SSR) app, set the platform type to ``WEB_COMPUTE`` . For an app requiring Amplify Hosting's original SSR support only, set the platform type to ``WEB_DYNAMIC`` . If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to ``WEB_COMPUTE`` and set the artifacts ``baseDirectory`` to ``.next`` in the application's build settings. For an example of the build specification settings, see `Amplify build settings for a Next.js 14 SSG application <https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14>`_ in the *Amplify Hosting User Guide* .
|
|
181
196
|
:param repository: The Git repository for the Amplify app.
|
|
182
197
|
:param tags: The tag for an Amplify app.
|
|
183
198
|
'''
|
|
@@ -363,6 +378,7 @@ class CfnApp(
|
|
|
363
378
|
def cache_config(
|
|
364
379
|
self,
|
|
365
380
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnApp.CacheConfigProperty"]]:
|
|
381
|
+
'''The cache configuration for the Amplify app.'''
|
|
366
382
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnApp.CacheConfigProperty"]], jsii.get(self, "cacheConfig"))
|
|
367
383
|
|
|
368
384
|
@cache_config.setter
|
|
@@ -872,8 +888,11 @@ class CfnApp(
|
|
|
872
888
|
)
|
|
873
889
|
class CacheConfigProperty:
|
|
874
890
|
def __init__(self, *, type: typing.Optional[builtins.str] = None) -> None:
|
|
875
|
-
'''
|
|
876
|
-
|
|
891
|
+
'''Describes the cache configuration for an Amplify app.
|
|
892
|
+
|
|
893
|
+
For more information about how Amplify applies an optimal cache configuration for your app based on the type of content that is being served, see `Managing cache configuration <https://docs.aws.amazon.com/amplify/latest/userguide/managing-cache-configuration>`_ in the *Amplify User guide* .
|
|
894
|
+
|
|
895
|
+
:param type: The type of cache configuration to use for an Amplify app. The ``AMPLIFY_MANAGED`` cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting. The ``AMPLIFY_MANAGED_NO_COOKIES`` cache configuration type is the same as ``AMPLIFY_MANAGED`` , except that it excludes all cookies from the cache key.
|
|
877
896
|
|
|
878
897
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-cacheconfig.html
|
|
879
898
|
:exampleMetadata: fixture=_generated
|
|
@@ -897,7 +916,12 @@ class CfnApp(
|
|
|
897
916
|
|
|
898
917
|
@builtins.property
|
|
899
918
|
def type(self) -> typing.Optional[builtins.str]:
|
|
900
|
-
'''
|
|
919
|
+
'''The type of cache configuration to use for an Amplify app.
|
|
920
|
+
|
|
921
|
+
The ``AMPLIFY_MANAGED`` cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.
|
|
922
|
+
|
|
923
|
+
The ``AMPLIFY_MANAGED_NO_COOKIES`` cache configuration type is the same as ``AMPLIFY_MANAGED`` , except that it excludes all cookies from the cache key.
|
|
924
|
+
|
|
901
925
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-cacheconfig.html#cfn-amplify-app-cacheconfig-type
|
|
902
926
|
'''
|
|
903
927
|
result = self._values.get("type")
|
|
@@ -1149,7 +1173,7 @@ class CfnAppProps:
|
|
|
1149
1173
|
:param auto_branch_creation_config: Sets the configuration for your automatic branch creation.
|
|
1150
1174
|
:param basic_auth_config: The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format ``user:password`` .
|
|
1151
1175
|
:param build_spec: The build specification (build spec) for an Amplify app.
|
|
1152
|
-
:param cache_config:
|
|
1176
|
+
:param cache_config: The cache configuration for the Amplify app. If you don't specify the cache configuration ``type`` , Amplify uses the default ``AMPLIFY_MANAGED`` setting.
|
|
1153
1177
|
:param custom_headers: The custom HTTP headers for an Amplify app.
|
|
1154
1178
|
:param custom_rules: The custom rewrite and redirect rules for an Amplify app.
|
|
1155
1179
|
:param description: The description of the Amplify app.
|
|
@@ -1157,7 +1181,7 @@ class CfnAppProps:
|
|
|
1157
1181
|
:param environment_variables: The environment variables for the Amplify app. For a list of the environment variables that are accessible to Amplify by default, see `Amplify Environment variables <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html>`_ in the *Amplify Hosting User Guide* .
|
|
1158
1182
|
:param iam_service_role: AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
|
|
1159
1183
|
:param oauth_token: The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored. Use ``OauthToken`` for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use ``AccessToken`` . You must specify either ``OauthToken`` or ``AccessToken`` when you create a new app. Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see `Migrating an existing OAuth app to the Amplify GitHub App <https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth>`_ in the *Amplify User Guide* .
|
|
1160
|
-
:param platform: The platform for the Amplify app. For a static app, set the platform type to ``WEB`` . For a dynamic server-side rendered (SSR) app, set the platform type to ``WEB_COMPUTE`` . For an app requiring Amplify Hosting's original SSR support only, set the platform type to ``WEB_DYNAMIC`` .
|
|
1184
|
+
:param platform: The platform for the Amplify app. For a static app, set the platform type to ``WEB`` . For a dynamic server-side rendered (SSR) app, set the platform type to ``WEB_COMPUTE`` . For an app requiring Amplify Hosting's original SSR support only, set the platform type to ``WEB_DYNAMIC`` . If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to ``WEB_COMPUTE`` and set the artifacts ``baseDirectory`` to ``.next`` in the application's build settings. For an example of the build specification settings, see `Amplify build settings for a Next.js 14 SSG application <https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14>`_ in the *Amplify Hosting User Guide* .
|
|
1161
1185
|
:param repository: The Git repository for the Amplify app.
|
|
1162
1186
|
:param tags: The tag for an Amplify app.
|
|
1163
1187
|
|
|
@@ -1345,7 +1369,10 @@ class CfnAppProps:
|
|
|
1345
1369
|
def cache_config(
|
|
1346
1370
|
self,
|
|
1347
1371
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnApp.CacheConfigProperty]]:
|
|
1348
|
-
'''
|
|
1372
|
+
'''The cache configuration for the Amplify app.
|
|
1373
|
+
|
|
1374
|
+
If you don't specify the cache configuration ``type`` , Amplify uses the default ``AMPLIFY_MANAGED`` setting.
|
|
1375
|
+
|
|
1349
1376
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig
|
|
1350
1377
|
'''
|
|
1351
1378
|
result = self._values.get("cache_config")
|
|
@@ -1436,6 +1463,8 @@ class CfnAppProps:
|
|
|
1436
1463
|
|
|
1437
1464
|
For a static app, set the platform type to ``WEB`` . For a dynamic server-side rendered (SSR) app, set the platform type to ``WEB_COMPUTE`` . For an app requiring Amplify Hosting's original SSR support only, set the platform type to ``WEB_DYNAMIC`` .
|
|
1438
1465
|
|
|
1466
|
+
If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to ``WEB_COMPUTE`` and set the artifacts ``baseDirectory`` to ``.next`` in the application's build settings. For an example of the build specification settings, see `Amplify build settings for a Next.js 14 SSG application <https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14>`_ in the *Amplify Hosting User Guide* .
|
|
1467
|
+
|
|
1439
1468
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-platform
|
|
1440
1469
|
'''
|
|
1441
1470
|
result = self._values.get("platform")
|
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|
|
@@ -1857,7 +1857,22 @@ import jsii
|
|
|
1857
1857
|
import publication
|
|
1858
1858
|
import typing_extensions
|
|
1859
1859
|
|
|
1860
|
-
|
|
1860
|
+
import typeguard
|
|
1861
|
+
from importlib.metadata import version as _metadata_package_version
|
|
1862
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
1863
|
+
|
|
1864
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
1865
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
1866
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
1867
|
+
else:
|
|
1868
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
1869
|
+
pass
|
|
1870
|
+
else:
|
|
1871
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
1872
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
1873
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
1874
|
+
else:
|
|
1875
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
1861
1876
|
|
|
1862
1877
|
from .._jsii import *
|
|
1863
1878
|
|
|
@@ -98,6 +98,14 @@ apigwv2.HttpApi(self, "HttpProxyApi",
|
|
|
98
98
|
)
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
+
The `routeSelectionExpression` option allows configuring the HTTP API to accept only `${request.method} ${request.path}`. Setting it to `true` automatically applies this value.
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
apigwv2.HttpApi(self, "HttpProxyApi",
|
|
105
|
+
route_selection_expression=True
|
|
106
|
+
)
|
|
107
|
+
```
|
|
108
|
+
|
|
101
109
|
### Cross Origin Resource Sharing (CORS)
|
|
102
110
|
|
|
103
111
|
[Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security
|
|
@@ -493,7 +501,22 @@ import jsii
|
|
|
493
501
|
import publication
|
|
494
502
|
import typing_extensions
|
|
495
503
|
|
|
496
|
-
|
|
504
|
+
import typeguard
|
|
505
|
+
from importlib.metadata import version as _metadata_package_version
|
|
506
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
507
|
+
|
|
508
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
509
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
510
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
511
|
+
else:
|
|
512
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
513
|
+
pass
|
|
514
|
+
else:
|
|
515
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
516
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
517
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
518
|
+
else:
|
|
519
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
497
520
|
|
|
498
521
|
from .._jsii import *
|
|
499
522
|
|
|
@@ -8923,6 +8946,7 @@ class HttpApiAttributes:
|
|
|
8923
8946
|
"default_integration": "defaultIntegration",
|
|
8924
8947
|
"description": "description",
|
|
8925
8948
|
"disable_execute_api_endpoint": "disableExecuteApiEndpoint",
|
|
8949
|
+
"route_selection_expression": "routeSelectionExpression",
|
|
8926
8950
|
},
|
|
8927
8951
|
)
|
|
8928
8952
|
class HttpApiProps:
|
|
@@ -8938,6 +8962,7 @@ class HttpApiProps:
|
|
|
8938
8962
|
default_integration: typing.Optional["HttpRouteIntegration"] = None,
|
|
8939
8963
|
description: typing.Optional[builtins.str] = None,
|
|
8940
8964
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
8965
|
+
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
8941
8966
|
) -> None:
|
|
8942
8967
|
'''Properties to initialize an instance of ``HttpApi``.
|
|
8943
8968
|
|
|
@@ -8950,6 +8975,7 @@ class HttpApiProps:
|
|
|
8950
8975
|
:param default_integration: An integration that will be configured on the catch-all route ($default). Default: - none
|
|
8951
8976
|
:param description: The description of the API. Default: - none
|
|
8952
8977
|
:param disable_execute_api_endpoint: Specifies whether clients can invoke your API using the default endpoint. By default, clients can invoke your API with the default ``https://{api_id}.execute-api.{region}.amazonaws.com`` endpoint. Enable this if you would like clients to use your custom domain name. Default: false execute-api endpoint enabled.
|
|
8978
|
+
:param route_selection_expression: Whether to set the default route selection expression for the API. When enabled, "${request.method} ${request.path}" is set as the default route selection expression. Default: false
|
|
8953
8979
|
|
|
8954
8980
|
:exampleMetadata: infused
|
|
8955
8981
|
|
|
@@ -8985,6 +9011,7 @@ class HttpApiProps:
|
|
|
8985
9011
|
check_type(argname="argument default_integration", value=default_integration, expected_type=type_hints["default_integration"])
|
|
8986
9012
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
8987
9013
|
check_type(argname="argument disable_execute_api_endpoint", value=disable_execute_api_endpoint, expected_type=type_hints["disable_execute_api_endpoint"])
|
|
9014
|
+
check_type(argname="argument route_selection_expression", value=route_selection_expression, expected_type=type_hints["route_selection_expression"])
|
|
8988
9015
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
8989
9016
|
if api_name is not None:
|
|
8990
9017
|
self._values["api_name"] = api_name
|
|
@@ -9004,6 +9031,8 @@ class HttpApiProps:
|
|
|
9004
9031
|
self._values["description"] = description
|
|
9005
9032
|
if disable_execute_api_endpoint is not None:
|
|
9006
9033
|
self._values["disable_execute_api_endpoint"] = disable_execute_api_endpoint
|
|
9034
|
+
if route_selection_expression is not None:
|
|
9035
|
+
self._values["route_selection_expression"] = route_selection_expression
|
|
9007
9036
|
|
|
9008
9037
|
@builtins.property
|
|
9009
9038
|
def api_name(self) -> typing.Optional[builtins.str]:
|
|
@@ -9096,6 +9125,17 @@ class HttpApiProps:
|
|
|
9096
9125
|
result = self._values.get("disable_execute_api_endpoint")
|
|
9097
9126
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
9098
9127
|
|
|
9128
|
+
@builtins.property
|
|
9129
|
+
def route_selection_expression(self) -> typing.Optional[builtins.bool]:
|
|
9130
|
+
'''Whether to set the default route selection expression for the API.
|
|
9131
|
+
|
|
9132
|
+
When enabled, "${request.method} ${request.path}" is set as the default route selection expression.
|
|
9133
|
+
|
|
9134
|
+
:default: false
|
|
9135
|
+
'''
|
|
9136
|
+
result = self._values.get("route_selection_expression")
|
|
9137
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
9138
|
+
|
|
9099
9139
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9100
9140
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9101
9141
|
|
|
@@ -16018,6 +16058,7 @@ class HttpApi(
|
|
|
16018
16058
|
default_integration: typing.Optional[HttpRouteIntegration] = None,
|
|
16019
16059
|
description: typing.Optional[builtins.str] = None,
|
|
16020
16060
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
16061
|
+
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
16021
16062
|
) -> None:
|
|
16022
16063
|
'''
|
|
16023
16064
|
:param scope: -
|
|
@@ -16031,6 +16072,7 @@ class HttpApi(
|
|
|
16031
16072
|
:param default_integration: An integration that will be configured on the catch-all route ($default). Default: - none
|
|
16032
16073
|
:param description: The description of the API. Default: - none
|
|
16033
16074
|
:param disable_execute_api_endpoint: Specifies whether clients can invoke your API using the default endpoint. By default, clients can invoke your API with the default ``https://{api_id}.execute-api.{region}.amazonaws.com`` endpoint. Enable this if you would like clients to use your custom domain name. Default: false execute-api endpoint enabled.
|
|
16075
|
+
:param route_selection_expression: Whether to set the default route selection expression for the API. When enabled, "${request.method} ${request.path}" is set as the default route selection expression. Default: false
|
|
16034
16076
|
'''
|
|
16035
16077
|
if __debug__:
|
|
16036
16078
|
type_hints = typing.get_type_hints(_typecheckingstub__2805f7eeb5fa5bd355806013fdce32506e639134d31910f71d0b86917f2a6cd4)
|
|
@@ -16046,6 +16088,7 @@ class HttpApi(
|
|
|
16046
16088
|
default_integration=default_integration,
|
|
16047
16089
|
description=description,
|
|
16048
16090
|
disable_execute_api_endpoint=disable_execute_api_endpoint,
|
|
16091
|
+
route_selection_expression=route_selection_expression,
|
|
16049
16092
|
)
|
|
16050
16093
|
|
|
16051
16094
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -19795,6 +19838,7 @@ def _typecheckingstub__cae61f98d904e8d8d184da1dff09df331c70ac82ebd0d24c6d28a445a
|
|
|
19795
19838
|
default_integration: typing.Optional[HttpRouteIntegration] = None,
|
|
19796
19839
|
description: typing.Optional[builtins.str] = None,
|
|
19797
19840
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
19841
|
+
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
19798
19842
|
) -> None:
|
|
19799
19843
|
"""Type checking stubs"""
|
|
19800
19844
|
pass
|
|
@@ -20549,6 +20593,7 @@ def _typecheckingstub__2805f7eeb5fa5bd355806013fdce32506e639134d31910f71d0b86917
|
|
|
20549
20593
|
default_integration: typing.Optional[HttpRouteIntegration] = None,
|
|
20550
20594
|
description: typing.Optional[builtins.str] = None,
|
|
20551
20595
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
20596
|
+
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
20552
20597
|
) -> None:
|
|
20553
20598
|
"""Type checking stubs"""
|
|
20554
20599
|
pass
|