aws-cdk-lib 2.176.0__py3-none-any.whl → 2.178.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 +106 -62
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.176.0.jsii.tgz → aws-cdk-lib@2.178.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +8 -8
- aws_cdk/aws_apigateway/__init__.py +97 -97
- aws_cdk/aws_apigatewayv2/__init__.py +35 -10
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +2 -2
- aws_cdk/aws_appconfig/__init__.py +10 -10
- aws_cdk/aws_appflow/__init__.py +20 -20
- aws_cdk/aws_applicationsignals/__init__.py +8 -8
- aws_cdk/aws_appmesh/__init__.py +8 -8
- aws_cdk/aws_appsync/__init__.py +10387 -7038
- aws_cdk/aws_apptest/__init__.py +4 -4
- aws_cdk/aws_aps/__init__.py +135 -0
- aws_cdk/aws_athena/__init__.py +10 -10
- aws_cdk/aws_backup/__init__.py +14 -14
- aws_cdk/aws_batch/__init__.py +189 -24
- aws_cdk/aws_bcmdataexports/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +5494 -2518
- aws_cdk/aws_certificatemanager/__init__.py +15 -14
- aws_cdk/aws_chatbot/__init__.py +4 -4
- aws_cdk/aws_cloudformation/__init__.py +22 -18
- aws_cdk/aws_cloudfront/__init__.py +686 -9
- aws_cdk/aws_cloudfront_origins/__init__.py +73 -2
- aws_cdk/aws_cloudtrail/__init__.py +4 -4
- aws_cdk/aws_cloudwatch/__init__.py +53 -53
- aws_cdk/aws_codedeploy/__init__.py +2 -2
- aws_cdk/aws_codepipeline/__init__.py +59 -6
- aws_cdk/aws_codepipeline_actions/__init__.py +2 -2
- aws_cdk/aws_cognito/__init__.py +204 -159
- aws_cdk/aws_connect/__init__.py +4 -4
- aws_cdk/aws_customerprofiles/__init__.py +6 -4
- aws_cdk/aws_databrew/__init__.py +16 -16
- aws_cdk/aws_datasync/__init__.py +14 -11
- aws_cdk/aws_datazone/__init__.py +199 -129
- aws_cdk/aws_dms/__init__.py +4 -4
- aws_cdk/aws_dynamodb/__init__.py +267 -25
- aws_cdk/aws_ec2/__init__.py +1142 -184
- aws_cdk/aws_ecs/__init__.py +767 -124
- aws_cdk/aws_ecs_patterns/__init__.py +49 -0
- aws_cdk/aws_efs/__init__.py +8 -8
- aws_cdk/aws_eks/__init__.py +55 -35
- aws_cdk/aws_elasticache/__init__.py +10 -10
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +47 -18
- aws_cdk/aws_elasticsearch/__init__.py +10 -10
- aws_cdk/aws_emr/__init__.py +16 -16
- aws_cdk/aws_emrserverless/__init__.py +93 -4
- aws_cdk/aws_entityresolution/__init__.py +31 -17
- aws_cdk/aws_events/__init__.py +12 -12
- aws_cdk/aws_fis/__init__.py +16 -16
- aws_cdk/aws_fms/__init__.py +46 -0
- aws_cdk/aws_gamelift/__init__.py +8 -10
- aws_cdk/aws_glue/__init__.py +1326 -7
- aws_cdk/aws_greengrassv2/__init__.py +8 -8
- aws_cdk/aws_guardduty/__init__.py +521 -0
- aws_cdk/aws_healthlake/__init__.py +10 -2
- aws_cdk/aws_iam/__init__.py +8 -0
- aws_cdk/aws_imagebuilder/__init__.py +88 -74
- aws_cdk/aws_iot/__init__.py +40 -40
- aws_cdk/aws_iotanalytics/__init__.py +4 -4
- aws_cdk/aws_iotfleetwise/__init__.py +424 -10
- aws_cdk/aws_iotsitewise/__init__.py +84 -13
- aws_cdk/aws_iottwinmaker/__init__.py +18 -18
- aws_cdk/aws_iotwireless/__init__.py +4 -4
- aws_cdk/aws_kafkaconnect/__init__.py +10 -10
- aws_cdk/aws_kendra/__init__.py +0 -10
- aws_cdk/aws_kinesisanalytics/__init__.py +4 -4
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +4 -4
- aws_cdk/aws_kinesisfirehose/__init__.py +4544 -183
- aws_cdk/aws_kms/__init__.py +11 -10
- aws_cdk/aws_lambda/__init__.py +47 -4
- aws_cdk/aws_lambda_nodejs/__init__.py +24 -5
- aws_cdk/aws_launchwizard/__init__.py +10 -10
- aws_cdk/aws_logs/__init__.py +78 -74
- aws_cdk/aws_mediaconnect/__init__.py +509 -12
- aws_cdk/aws_medialive/__init__.py +16 -16
- aws_cdk/aws_mediatailor/__init__.py +10 -10
- aws_cdk/aws_networkfirewall/__init__.py +12 -12
- aws_cdk/aws_notifications/__init__.py +1927 -0
- aws_cdk/aws_notificationscontacts/__init__.py +593 -0
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_opensearchservice/__init__.py +10 -10
- aws_cdk/aws_opsworks/__init__.py +58 -58
- aws_cdk/aws_personalize/__init__.py +8 -8
- aws_cdk/aws_pipes/__init__.py +20 -20
- aws_cdk/aws_qbusiness/__init__.py +119 -0
- aws_cdk/aws_quicksight/__init__.py +247 -92
- aws_cdk/aws_rds/__init__.py +37 -37
- aws_cdk/aws_redshift/__init__.py +19 -15
- aws_cdk/aws_resiliencehub/__init__.py +0 -41
- aws_cdk/aws_route53/__init__.py +10 -4
- aws_cdk/aws_route53_targets/__init__.py +15 -15
- aws_cdk/aws_rum/__init__.py +4 -4
- aws_cdk/aws_s3/__init__.py +801 -2
- aws_cdk/aws_s3_notifications/__init__.py +5 -5
- aws_cdk/aws_s3tables/__init__.py +2 -2
- aws_cdk/aws_sagemaker/__init__.py +84 -60
- aws_cdk/aws_sam/__init__.py +48 -48
- aws_cdk/aws_secretsmanager/__init__.py +30 -14
- aws_cdk/aws_securityhub/__init__.py +12 -12
- aws_cdk/aws_sns/__init__.py +137 -12
- aws_cdk/aws_ssm/__init__.py +5 -5
- aws_cdk/aws_ssmquicksetup/__init__.py +10 -10
- aws_cdk/aws_stepfunctions/__init__.py +13207 -4740
- aws_cdk/aws_stepfunctions_tasks/__init__.py +77615 -22817
- aws_cdk/aws_synthetics/__init__.py +109 -36
- aws_cdk/aws_timestream/__init__.py +41 -0
- aws_cdk/aws_transfer/__init__.py +9 -10
- aws_cdk/aws_wafv2/__init__.py +24 -22
- aws_cdk/aws_wisdom/__init__.py +8 -8
- aws_cdk/aws_workspacesweb/__init__.py +60 -60
- aws_cdk/aws_xray/__init__.py +8 -8
- aws_cdk/cloud_assembly_schema/__init__.py +63 -4
- aws_cdk/cx_api/__init__.py +62 -4
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/RECORD +120 -118
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/top_level.txt +0 -0
|
@@ -159,8 +159,7 @@ To learn more about these underlying resources, see
|
|
|
159
159
|
[Synthetics Canaries Deletion](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/synthetics_canaries_deletion.html).
|
|
160
160
|
|
|
161
161
|
In the CDK, you can configure your canary to delete the underlying lambda function when the canary is deleted.
|
|
162
|
-
This can be provisioned by setting `
|
|
163
|
-
will create a custom resource under the hood that takes care of the lambda deletion for you.
|
|
162
|
+
This can be provisioned by setting `provisionedResourceCleanup` to `true`.
|
|
164
163
|
|
|
165
164
|
```python
|
|
166
165
|
canary = synthetics.Canary(self, "Canary",
|
|
@@ -168,7 +167,7 @@ canary = synthetics.Canary(self, "Canary",
|
|
|
168
167
|
handler="index.handler",
|
|
169
168
|
code=synthetics.Code.from_inline("/* Synthetics handler code")
|
|
170
169
|
),
|
|
171
|
-
|
|
170
|
+
provisioned_resource_cleanup=True,
|
|
172
171
|
runtime=synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2
|
|
173
172
|
)
|
|
174
173
|
```
|
|
@@ -176,6 +175,8 @@ canary = synthetics.Canary(self, "Canary",
|
|
|
176
175
|
> Note: To properly clean up your canary on deletion, you still have to manually delete other resources
|
|
177
176
|
> like S3 buckets and CloudWatch logs.
|
|
178
177
|
|
|
178
|
+
> Note: The deletion of Lambda resources can also be performed by setting the `cleanup` argument to `Cleanup.LAMBDA`. However, this is an outdated argument that uses custom resources and is currently deprecated.
|
|
179
|
+
|
|
179
180
|
### Configuring the Canary Script
|
|
180
181
|
|
|
181
182
|
To configure the script the canary executes, use the `test` property. The `test` property accepts a `Test` instance that can be initialized by the `Test` class static methods. Currently, the only implemented method is `Test.custom()`, which allows you to bring your own code. In the future, other methods will be added. `Test.custom()` accepts `code` and `handler` properties -- both are required by Synthetics to create a lambda function on your behalf.
|
|
@@ -183,8 +184,8 @@ To configure the script the canary executes, use the `test` property. The `test`
|
|
|
183
184
|
The `synthetics.Code` class exposes static methods to bundle your code artifacts:
|
|
184
185
|
|
|
185
186
|
* `code.fromInline(code)` - specify an inline script.
|
|
186
|
-
* `code.fromAsset(path)` - specify a .zip file or a directory in the local filesystem which will be zipped and uploaded to S3 on deployment. See the
|
|
187
|
-
* `code.fromBucket(bucket, key[, objectVersion])` - specify an S3 object that contains the .zip file of your runtime code. See the
|
|
187
|
+
* `code.fromAsset(path)` - specify a .zip file or a directory in the local filesystem which will be zipped and uploaded to S3 on deployment. See the below Note for directory structure.
|
|
188
|
+
* `code.fromBucket(bucket, key[, objectVersion])` - specify an S3 object that contains the .zip file of your runtime code. See the below Note for directory structure.
|
|
188
189
|
|
|
189
190
|
Using the `Code` class static initializers:
|
|
190
191
|
|
|
@@ -218,7 +219,8 @@ synthetics.Canary(self, "Bucket Canary",
|
|
|
218
219
|
)
|
|
219
220
|
```
|
|
220
221
|
|
|
221
|
-
> **Note:** Synthetics have a specified folder structure for canaries.
|
|
222
|
+
> **Note:** Synthetics have a specified folder structure for canaries.
|
|
223
|
+
> For Node with puppeteer scripts supplied via `code.fromAsset()` or `code.fromBucket()`, the canary resource requires the following folder structure:
|
|
222
224
|
>
|
|
223
225
|
> ```plaintext
|
|
224
226
|
> canary/
|
|
@@ -227,6 +229,19 @@ synthetics.Canary(self, "Bucket Canary",
|
|
|
227
229
|
> ├── <filename>.js
|
|
228
230
|
> ```
|
|
229
231
|
>
|
|
232
|
+
> For Node with playwright scripts supplied via `code.fromAsset()` or `code.fromBucket()`, the canary resource requires the following folder structure:
|
|
233
|
+
>
|
|
234
|
+
> ```plaintext
|
|
235
|
+
> canary/
|
|
236
|
+
> ├── <filename>.js,.mjs,.cjs
|
|
237
|
+
> ├─some/dir/path
|
|
238
|
+
> ├── <filename>.js,.mjs,.cjs
|
|
239
|
+
> ```
|
|
240
|
+
>
|
|
241
|
+
> If `<filename>.js` is placed in the canary directory, the handler should be specified as `filename.handler`.
|
|
242
|
+
> However, if it is placed in the `some/dir/path` directory, the handler should be specified as `some/dir/path/filename.handler`.
|
|
243
|
+
> For more information, see Synthetics [docs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Synthetics_WritingCanary_Nodejs_Playwright.html).
|
|
244
|
+
>
|
|
230
245
|
> For Python scripts supplied via `code.fromAsset()` or `code.fromBucket()`, the canary resource requires the following folder structure:
|
|
231
246
|
>
|
|
232
247
|
> ```plaintext
|
|
@@ -561,6 +576,7 @@ class Canary(
|
|
|
561
576
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
562
577
|
failure_retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
563
578
|
memory: typing.Optional[_Size_7b441c34] = None,
|
|
579
|
+
provisioned_resource_cleanup: typing.Optional[builtins.bool] = None,
|
|
564
580
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
565
581
|
schedule: typing.Optional["Schedule"] = None,
|
|
566
582
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -582,10 +598,11 @@ class Canary(
|
|
|
582
598
|
:param artifacts_bucket_lifecycle_rules: Lifecycle rules for the generated canary artifact bucket. Has no effect if a bucket is passed to ``artifactsBucketLocation``. If you pass a bucket to ``artifactsBucketLocation``, you can add lifecycle rules to the bucket itself. Default: - no rules applied to the generated bucket.
|
|
583
599
|
:param artifacts_bucket_location: The s3 location that stores the data of the canary runs. Default: - A new s3 bucket will be created without a prefix.
|
|
584
600
|
:param canary_name: The name of the canary. Be sure to give it a descriptive name that distinguishes it from other canaries in your account. Do not include secrets or proprietary information in your canary name. The canary name makes up part of the canary ARN, which is included in outbound calls over the internet. Default: - A unique name will be generated from the construct ID
|
|
585
|
-
:param cleanup: Specify the underlying resources to be cleaned up when the canary is deleted. Using ``Cleanup.LAMBDA`` will create a Custom Resource to achieve this. Default: Cleanup.NOTHING
|
|
601
|
+
:param cleanup: (deprecated) Specify the underlying resources to be cleaned up when the canary is deleted. Using ``Cleanup.LAMBDA`` will create a Custom Resource to achieve this. Default: Cleanup.NOTHING
|
|
586
602
|
:param environment_variables: Key-value pairs that the Synthetics caches and makes available for your canary scripts. Use environment variables to apply configuration changes, such as test and production environment configurations, without changing your Canary script source code. Default: - No environment variables.
|
|
587
603
|
:param failure_retention_period: How many days should failed runs be retained. Default: Duration.days(31)
|
|
588
604
|
:param memory: The maximum amount of memory that the canary can use while running. This value must be a multiple of 64 Mib. The range is 960 MiB to 3008 MiB. Default: Size.mebibytes(1024)
|
|
605
|
+
:param provisioned_resource_cleanup: Whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. Default: undefined - the default behavior is to not delete the Lambda functions and layers
|
|
589
606
|
:param role: Canary execution role. This is the role that will be assumed by the canary upon execution. It controls the permissions that the canary will have. The role must be assumable by the AWS Lambda service principal. If not supplied, a role will be created with all the required permissions. If you provide a Role, you must add the required permissions. Default: - A unique role will be generated for this canary. You can add permissions to roles by calling 'addToRolePolicy'.
|
|
590
607
|
:param schedule: Specify the schedule for how often the canary runs. For example, if you set ``schedule`` to ``rate(10 minutes)``, then the canary will run every 10 minutes. You can set the schedule with ``Schedule.rate(Duration)`` (recommended) or you can specify an expression using ``Schedule.expression()``. Default: 'rate(5 minutes)'
|
|
591
608
|
:param security_groups: The list of security groups to associate with the canary's network interfaces. You must provide ``vpc`` when using this prop. Default: - If the canary is placed within a VPC and a security group is not specified a dedicated security group will be created for this canary.
|
|
@@ -613,6 +630,7 @@ class Canary(
|
|
|
613
630
|
environment_variables=environment_variables,
|
|
614
631
|
failure_retention_period=failure_retention_period,
|
|
615
632
|
memory=memory,
|
|
633
|
+
provisioned_resource_cleanup=provisioned_resource_cleanup,
|
|
616
634
|
role=role,
|
|
617
635
|
schedule=schedule,
|
|
618
636
|
security_groups=security_groups,
|
|
@@ -828,6 +846,7 @@ class Canary(
|
|
|
828
846
|
"environment_variables": "environmentVariables",
|
|
829
847
|
"failure_retention_period": "failureRetentionPeriod",
|
|
830
848
|
"memory": "memory",
|
|
849
|
+
"provisioned_resource_cleanup": "provisionedResourceCleanup",
|
|
831
850
|
"role": "role",
|
|
832
851
|
"schedule": "schedule",
|
|
833
852
|
"security_groups": "securityGroups",
|
|
@@ -855,6 +874,7 @@ class CanaryProps:
|
|
|
855
874
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
856
875
|
failure_retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
857
876
|
memory: typing.Optional[_Size_7b441c34] = None,
|
|
877
|
+
provisioned_resource_cleanup: typing.Optional[builtins.bool] = None,
|
|
858
878
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
859
879
|
schedule: typing.Optional["Schedule"] = None,
|
|
860
880
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -875,10 +895,11 @@ class CanaryProps:
|
|
|
875
895
|
:param artifacts_bucket_lifecycle_rules: Lifecycle rules for the generated canary artifact bucket. Has no effect if a bucket is passed to ``artifactsBucketLocation``. If you pass a bucket to ``artifactsBucketLocation``, you can add lifecycle rules to the bucket itself. Default: - no rules applied to the generated bucket.
|
|
876
896
|
:param artifacts_bucket_location: The s3 location that stores the data of the canary runs. Default: - A new s3 bucket will be created without a prefix.
|
|
877
897
|
:param canary_name: The name of the canary. Be sure to give it a descriptive name that distinguishes it from other canaries in your account. Do not include secrets or proprietary information in your canary name. The canary name makes up part of the canary ARN, which is included in outbound calls over the internet. Default: - A unique name will be generated from the construct ID
|
|
878
|
-
:param cleanup: Specify the underlying resources to be cleaned up when the canary is deleted. Using ``Cleanup.LAMBDA`` will create a Custom Resource to achieve this. Default: Cleanup.NOTHING
|
|
898
|
+
:param cleanup: (deprecated) Specify the underlying resources to be cleaned up when the canary is deleted. Using ``Cleanup.LAMBDA`` will create a Custom Resource to achieve this. Default: Cleanup.NOTHING
|
|
879
899
|
:param environment_variables: Key-value pairs that the Synthetics caches and makes available for your canary scripts. Use environment variables to apply configuration changes, such as test and production environment configurations, without changing your Canary script source code. Default: - No environment variables.
|
|
880
900
|
:param failure_retention_period: How many days should failed runs be retained. Default: Duration.days(31)
|
|
881
901
|
:param memory: The maximum amount of memory that the canary can use while running. This value must be a multiple of 64 Mib. The range is 960 MiB to 3008 MiB. Default: Size.mebibytes(1024)
|
|
902
|
+
:param provisioned_resource_cleanup: Whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. Default: undefined - the default behavior is to not delete the Lambda functions and layers
|
|
882
903
|
:param role: Canary execution role. This is the role that will be assumed by the canary upon execution. It controls the permissions that the canary will have. The role must be assumable by the AWS Lambda service principal. If not supplied, a role will be created with all the required permissions. If you provide a Role, you must add the required permissions. Default: - A unique role will be generated for this canary. You can add permissions to roles by calling 'addToRolePolicy'.
|
|
883
904
|
:param schedule: Specify the schedule for how often the canary runs. For example, if you set ``schedule`` to ``rate(10 minutes)``, then the canary will run every 10 minutes. You can set the schedule with ``Schedule.rate(Duration)`` (recommended) or you can specify an expression using ``Schedule.expression()``. Default: 'rate(5 minutes)'
|
|
884
905
|
:param security_groups: The list of security groups to associate with the canary's network interfaces. You must provide ``vpc`` when using this prop. Default: - If the canary is placed within a VPC and a security group is not specified a dedicated security group will be created for this canary.
|
|
@@ -924,6 +945,7 @@ class CanaryProps:
|
|
|
924
945
|
check_type(argname="argument environment_variables", value=environment_variables, expected_type=type_hints["environment_variables"])
|
|
925
946
|
check_type(argname="argument failure_retention_period", value=failure_retention_period, expected_type=type_hints["failure_retention_period"])
|
|
926
947
|
check_type(argname="argument memory", value=memory, expected_type=type_hints["memory"])
|
|
948
|
+
check_type(argname="argument provisioned_resource_cleanup", value=provisioned_resource_cleanup, expected_type=type_hints["provisioned_resource_cleanup"])
|
|
927
949
|
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
928
950
|
check_type(argname="argument schedule", value=schedule, expected_type=type_hints["schedule"])
|
|
929
951
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
@@ -957,6 +979,8 @@ class CanaryProps:
|
|
|
957
979
|
self._values["failure_retention_period"] = failure_retention_period
|
|
958
980
|
if memory is not None:
|
|
959
981
|
self._values["memory"] = memory
|
|
982
|
+
if provisioned_resource_cleanup is not None:
|
|
983
|
+
self._values["provisioned_resource_cleanup"] = provisioned_resource_cleanup
|
|
960
984
|
if role is not None:
|
|
961
985
|
self._values["role"] = role
|
|
962
986
|
if schedule is not None:
|
|
@@ -1079,11 +1103,15 @@ class CanaryProps:
|
|
|
1079
1103
|
|
|
1080
1104
|
@builtins.property
|
|
1081
1105
|
def cleanup(self) -> typing.Optional["Cleanup"]:
|
|
1082
|
-
'''Specify the underlying resources to be cleaned up when the canary is deleted.
|
|
1106
|
+
'''(deprecated) Specify the underlying resources to be cleaned up when the canary is deleted.
|
|
1083
1107
|
|
|
1084
1108
|
Using ``Cleanup.LAMBDA`` will create a Custom Resource to achieve this.
|
|
1085
1109
|
|
|
1086
1110
|
:default: Cleanup.NOTHING
|
|
1111
|
+
|
|
1112
|
+
:deprecated: use provisionedResourceCleanup
|
|
1113
|
+
|
|
1114
|
+
:stability: deprecated
|
|
1087
1115
|
'''
|
|
1088
1116
|
result = self._values.get("cleanup")
|
|
1089
1117
|
return typing.cast(typing.Optional["Cleanup"], result)
|
|
@@ -1124,6 +1152,15 @@ class CanaryProps:
|
|
|
1124
1152
|
result = self._values.get("memory")
|
|
1125
1153
|
return typing.cast(typing.Optional[_Size_7b441c34], result)
|
|
1126
1154
|
|
|
1155
|
+
@builtins.property
|
|
1156
|
+
def provisioned_resource_cleanup(self) -> typing.Optional[builtins.bool]:
|
|
1157
|
+
'''Whether to also delete the Lambda functions and layers used by this canary when the canary is deleted.
|
|
1158
|
+
|
|
1159
|
+
:default: undefined - the default behavior is to not delete the Lambda functions and layers
|
|
1160
|
+
'''
|
|
1161
|
+
result = self._values.get("provisioned_resource_cleanup")
|
|
1162
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
1163
|
+
|
|
1127
1164
|
@builtins.property
|
|
1128
1165
|
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
1129
1166
|
'''Canary execution role.
|
|
@@ -2059,7 +2096,7 @@ class CfnCanary(
|
|
|
2059
2096
|
self,
|
|
2060
2097
|
*,
|
|
2061
2098
|
active_tracing: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2062
|
-
environment_variables: typing.Optional[typing.Union[
|
|
2099
|
+
environment_variables: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]] = None,
|
|
2063
2100
|
memory_in_mb: typing.Optional[jsii.Number] = None,
|
|
2064
2101
|
timeout_in_seconds: typing.Optional[jsii.Number] = None,
|
|
2065
2102
|
) -> None:
|
|
@@ -2124,7 +2161,7 @@ class CfnCanary(
|
|
|
2124
2161
|
@builtins.property
|
|
2125
2162
|
def environment_variables(
|
|
2126
2163
|
self,
|
|
2127
|
-
) -> typing.Optional[typing.Union[
|
|
2164
|
+
) -> typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]]:
|
|
2128
2165
|
'''Specifies the keys and values to use for any environment variables used in the canary script.
|
|
2129
2166
|
|
|
2130
2167
|
Use the following format:
|
|
@@ -2136,7 +2173,7 @@ class CfnCanary(
|
|
|
2136
2173
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-runconfig.html#cfn-synthetics-canary-runconfig-environmentvariables
|
|
2137
2174
|
'''
|
|
2138
2175
|
result = self._values.get("environment_variables")
|
|
2139
|
-
return typing.cast(typing.Optional[typing.Union[
|
|
2176
|
+
return typing.cast(typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]], result)
|
|
2140
2177
|
|
|
2141
2178
|
@builtins.property
|
|
2142
2179
|
def memory_in_mb(self) -> typing.Optional[jsii.Number]:
|
|
@@ -3208,21 +3245,7 @@ class CfnGroupProps:
|
|
|
3208
3245
|
|
|
3209
3246
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_synthetics.Cleanup")
|
|
3210
3247
|
class Cleanup(enum.Enum):
|
|
3211
|
-
'''Different ways to clean up underlying Canary resources when the Canary is deleted.
|
|
3212
|
-
|
|
3213
|
-
:exampleMetadata: infused
|
|
3214
|
-
|
|
3215
|
-
Example::
|
|
3216
|
-
|
|
3217
|
-
canary = synthetics.Canary(self, "Canary",
|
|
3218
|
-
test=synthetics.Test.custom(
|
|
3219
|
-
handler="index.handler",
|
|
3220
|
-
code=synthetics.Code.from_inline("/* Synthetics handler code")
|
|
3221
|
-
),
|
|
3222
|
-
cleanup=synthetics.Cleanup.LAMBDA,
|
|
3223
|
-
runtime=synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2
|
|
3224
|
-
)
|
|
3225
|
-
'''
|
|
3248
|
+
'''Different ways to clean up underlying Canary resources when the Canary is deleted.'''
|
|
3226
3249
|
|
|
3227
3250
|
NOTHING = "NOTHING"
|
|
3228
3251
|
'''Clean up nothing.
|
|
@@ -3367,12 +3390,14 @@ class Code(
|
|
|
3367
3390
|
scope: _constructs_77d1e7e8.Construct,
|
|
3368
3391
|
handler: builtins.str,
|
|
3369
3392
|
family: "RuntimeFamily",
|
|
3393
|
+
runtime_name: typing.Optional[builtins.str] = None,
|
|
3370
3394
|
) -> "CodeConfig":
|
|
3371
3395
|
'''Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
|
|
3372
3396
|
|
|
3373
3397
|
:param scope: The binding scope. Don't be smart about trying to down-cast or assume it's initialized. You may just use it as a construct scope.
|
|
3374
3398
|
:param handler: -
|
|
3375
3399
|
:param family: -
|
|
3400
|
+
:param runtime_name: -
|
|
3376
3401
|
|
|
3377
3402
|
:return: a bound ``CodeConfig``.
|
|
3378
3403
|
'''
|
|
@@ -3386,12 +3411,14 @@ class _CodeProxy(Code):
|
|
|
3386
3411
|
scope: _constructs_77d1e7e8.Construct,
|
|
3387
3412
|
handler: builtins.str,
|
|
3388
3413
|
family: "RuntimeFamily",
|
|
3414
|
+
runtime_name: typing.Optional[builtins.str] = None,
|
|
3389
3415
|
) -> "CodeConfig":
|
|
3390
3416
|
'''Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
|
|
3391
3417
|
|
|
3392
3418
|
:param scope: The binding scope. Don't be smart about trying to down-cast or assume it's initialized. You may just use it as a construct scope.
|
|
3393
3419
|
:param handler: -
|
|
3394
3420
|
:param family: -
|
|
3421
|
+
:param runtime_name: -
|
|
3395
3422
|
|
|
3396
3423
|
:return: a bound ``CodeConfig``.
|
|
3397
3424
|
'''
|
|
@@ -3400,7 +3427,8 @@ class _CodeProxy(Code):
|
|
|
3400
3427
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
3401
3428
|
check_type(argname="argument handler", value=handler, expected_type=type_hints["handler"])
|
|
3402
3429
|
check_type(argname="argument family", value=family, expected_type=type_hints["family"])
|
|
3403
|
-
|
|
3430
|
+
check_type(argname="argument runtime_name", value=runtime_name, expected_type=type_hints["runtime_name"])
|
|
3431
|
+
return typing.cast("CodeConfig", jsii.invoke(self, "bind", [scope, handler, family, runtime_name]))
|
|
3404
3432
|
|
|
3405
3433
|
# Adding a "__jsii_proxy_class__(): typing.Type" function to the abstract class
|
|
3406
3434
|
typing.cast(typing.Any, Code).__jsii_proxy_class__ = lambda : _CodeProxy
|
|
@@ -3698,22 +3726,25 @@ class InlineCode(
|
|
|
3698
3726
|
@jsii.member(jsii_name="bind")
|
|
3699
3727
|
def bind(
|
|
3700
3728
|
self,
|
|
3701
|
-
|
|
3729
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
3702
3730
|
handler: builtins.str,
|
|
3703
3731
|
_family: "RuntimeFamily",
|
|
3732
|
+
_runtime_name: typing.Optional[builtins.str] = None,
|
|
3704
3733
|
) -> CodeConfig:
|
|
3705
3734
|
'''Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
|
|
3706
3735
|
|
|
3707
|
-
:param
|
|
3736
|
+
:param scope: -
|
|
3708
3737
|
:param handler: -
|
|
3709
3738
|
:param _family: -
|
|
3739
|
+
:param _runtime_name: -
|
|
3710
3740
|
'''
|
|
3711
3741
|
if __debug__:
|
|
3712
3742
|
type_hints = typing.get_type_hints(_typecheckingstub__9c1dddac73b46d6693b6032065ae6db988e1e76cb520ebf3d4aa58e532f543a9)
|
|
3713
|
-
check_type(argname="argument
|
|
3743
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
3714
3744
|
check_type(argname="argument handler", value=handler, expected_type=type_hints["handler"])
|
|
3715
3745
|
check_type(argname="argument _family", value=_family, expected_type=type_hints["_family"])
|
|
3716
|
-
|
|
3746
|
+
check_type(argname="argument _runtime_name", value=_runtime_name, expected_type=type_hints["_runtime_name"])
|
|
3747
|
+
return typing.cast(CodeConfig, jsii.invoke(self, "bind", [scope, handler, _family, _runtime_name]))
|
|
3717
3748
|
|
|
3718
3749
|
|
|
3719
3750
|
class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Runtime"):
|
|
@@ -3748,6 +3779,23 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
|
|
|
3748
3779
|
check_type(argname="argument family", value=family, expected_type=type_hints["family"])
|
|
3749
3780
|
jsii.create(self.__class__, self, [name, family])
|
|
3750
3781
|
|
|
3782
|
+
@jsii.python.classproperty
|
|
3783
|
+
@jsii.member(jsii_name="SYNTHETICS_NODEJS_PLAYWRIGHT_1_0")
|
|
3784
|
+
def SYNTHETICS_NODEJS_PLAYWRIGHT_1_0(cls) -> "Runtime":
|
|
3785
|
+
'''``syn-nodejs-playwright-1.0`` includes the following: - Lambda runtime Node.js 20.x - Playwright version 1.45 - Chromium version 126.0.6478.126.
|
|
3786
|
+
|
|
3787
|
+
New Features:
|
|
3788
|
+
|
|
3789
|
+
- **PlayWright support** You can write canary scripts by using the Playwright automation framework. You can bring your existing Playwright scripts to run as canaries, and enhance them with AWS monitoring capabilities.
|
|
3790
|
+
- **CloudWatch Logs integration** You can query and filter for logs through the CloudWatch Synthetics console. Each log message contains unique canaryRunId, making it easy to search for logs for a particular canary run.
|
|
3791
|
+
- **Metrics and canary artifacts** You can monitor canary run pass rate through CloudWatch metrics, and configure alarms to alert you when canaries detect issues.
|
|
3792
|
+
- **Screenshots and steps association** You can capture screenshots using native Playwright functionality to visualize the stages of a canary script on each run. Screenshots are automatically associated with canary steps, and are uploaded to Amazon S3 buckets.
|
|
3793
|
+
- **Multiple tabs** You can create canaries that open multiple browser tabs, and access screenshots from each tab. You can create multi-tab and multi-step user workflows in Synthetics.
|
|
3794
|
+
|
|
3795
|
+
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_playwright.html#Synthetics_runtimeversion-syn-nodejs-playwright-1.0
|
|
3796
|
+
'''
|
|
3797
|
+
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PLAYWRIGHT_1_0"))
|
|
3798
|
+
|
|
3751
3799
|
@jsii.python.classproperty
|
|
3752
3800
|
@jsii.member(jsii_name="SYNTHETICS_NODEJS_PUPPETEER_3_5")
|
|
3753
3801
|
def SYNTHETICS_NODEJS_PUPPETEER_3_5(cls) -> "Runtime":
|
|
@@ -4119,6 +4167,19 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
|
|
|
4119
4167
|
'''
|
|
4120
4168
|
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_PYTHON_SELENIUM_4_0"))
|
|
4121
4169
|
|
|
4170
|
+
@jsii.python.classproperty
|
|
4171
|
+
@jsii.member(jsii_name="SYNTHETICS_PYTHON_SELENIUM_4_1")
|
|
4172
|
+
def SYNTHETICS_PYTHON_SELENIUM_4_1(cls) -> "Runtime":
|
|
4173
|
+
'''``syn-python-selenium-4.1`` includes the following: - Lambda runtime Python 3.9 - Selenium version 4.15.1 - Chromium version 126.0.6478.126.
|
|
4174
|
+
|
|
4175
|
+
New Features:
|
|
4176
|
+
|
|
4177
|
+
- **Addresses security vulnerability** This runtime has an update to address the CVE-2024-39689 vulnerability.
|
|
4178
|
+
|
|
4179
|
+
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-4.1
|
|
4180
|
+
'''
|
|
4181
|
+
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_PYTHON_SELENIUM_4_1"))
|
|
4182
|
+
|
|
4122
4183
|
@builtins.property
|
|
4123
4184
|
@jsii.member(jsii_name="family")
|
|
4124
4185
|
def family(self) -> "RuntimeFamily":
|
|
@@ -4189,19 +4250,22 @@ class S3Code(
|
|
|
4189
4250
|
_scope: _constructs_77d1e7e8.Construct,
|
|
4190
4251
|
_handler: builtins.str,
|
|
4191
4252
|
_family: RuntimeFamily,
|
|
4253
|
+
_runtime_name: typing.Optional[builtins.str] = None,
|
|
4192
4254
|
) -> CodeConfig:
|
|
4193
4255
|
'''Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
|
|
4194
4256
|
|
|
4195
4257
|
:param _scope: -
|
|
4196
4258
|
:param _handler: -
|
|
4197
4259
|
:param _family: -
|
|
4260
|
+
:param _runtime_name: -
|
|
4198
4261
|
'''
|
|
4199
4262
|
if __debug__:
|
|
4200
4263
|
type_hints = typing.get_type_hints(_typecheckingstub__2e764381c92bbdf3e70a0cf34a6f1afa9abfa207f9eb030a4ac6823b6e04ab07)
|
|
4201
4264
|
check_type(argname="argument _scope", value=_scope, expected_type=type_hints["_scope"])
|
|
4202
4265
|
check_type(argname="argument _handler", value=_handler, expected_type=type_hints["_handler"])
|
|
4203
4266
|
check_type(argname="argument _family", value=_family, expected_type=type_hints["_family"])
|
|
4204
|
-
|
|
4267
|
+
check_type(argname="argument _runtime_name", value=_runtime_name, expected_type=type_hints["_runtime_name"])
|
|
4268
|
+
return typing.cast(CodeConfig, jsii.invoke(self, "bind", [_scope, _handler, _family, _runtime_name]))
|
|
4205
4269
|
|
|
4206
4270
|
|
|
4207
4271
|
class Schedule(
|
|
@@ -4451,19 +4515,22 @@ class AssetCode(
|
|
|
4451
4515
|
scope: _constructs_77d1e7e8.Construct,
|
|
4452
4516
|
handler: builtins.str,
|
|
4453
4517
|
family: RuntimeFamily,
|
|
4518
|
+
runtime_name: typing.Optional[builtins.str] = None,
|
|
4454
4519
|
) -> CodeConfig:
|
|
4455
4520
|
'''Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
|
|
4456
4521
|
|
|
4457
4522
|
:param scope: -
|
|
4458
4523
|
:param handler: -
|
|
4459
4524
|
:param family: -
|
|
4525
|
+
:param runtime_name: -
|
|
4460
4526
|
'''
|
|
4461
4527
|
if __debug__:
|
|
4462
4528
|
type_hints = typing.get_type_hints(_typecheckingstub__dcf81e22fccedf5b193b8ec9218200abb14bc77d3601c5cd7edbedda5914c393)
|
|
4463
4529
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
4464
4530
|
check_type(argname="argument handler", value=handler, expected_type=type_hints["handler"])
|
|
4465
4531
|
check_type(argname="argument family", value=family, expected_type=type_hints["family"])
|
|
4466
|
-
|
|
4532
|
+
check_type(argname="argument runtime_name", value=runtime_name, expected_type=type_hints["runtime_name"])
|
|
4533
|
+
return typing.cast(CodeConfig, jsii.invoke(self, "bind", [scope, handler, family, runtime_name]))
|
|
4467
4534
|
|
|
4468
4535
|
|
|
4469
4536
|
__all__ = [
|
|
@@ -4515,6 +4582,7 @@ def _typecheckingstub__b3b6d76e5f93e31884e16cc00a9b4fc93e6782ff7db09c74aa1ef9346
|
|
|
4515
4582
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4516
4583
|
failure_retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
4517
4584
|
memory: typing.Optional[_Size_7b441c34] = None,
|
|
4585
|
+
provisioned_resource_cleanup: typing.Optional[builtins.bool] = None,
|
|
4518
4586
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
4519
4587
|
schedule: typing.Optional[Schedule] = None,
|
|
4520
4588
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -4542,6 +4610,7 @@ def _typecheckingstub__44ec0b14d52b66927d4daebe6f97bb070f3629bb0eb86e21668ca7862
|
|
|
4542
4610
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4543
4611
|
failure_retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
4544
4612
|
memory: typing.Optional[_Size_7b441c34] = None,
|
|
4613
|
+
provisioned_resource_cleanup: typing.Optional[builtins.bool] = None,
|
|
4545
4614
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
4546
4615
|
schedule: typing.Optional[Schedule] = None,
|
|
4547
4616
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -4724,7 +4793,7 @@ def _typecheckingstub__3d403372a613babc1ab10717d050ec9a7f4055961f3545f2d0600d89c
|
|
|
4724
4793
|
def _typecheckingstub__fa148862e82948accbbe951e7afcee721aa7014754c81106d2648fe1c5cf28e2(
|
|
4725
4794
|
*,
|
|
4726
4795
|
active_tracing: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
4727
|
-
environment_variables: typing.Optional[typing.Union[
|
|
4796
|
+
environment_variables: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]] = None,
|
|
4728
4797
|
memory_in_mb: typing.Optional[jsii.Number] = None,
|
|
4729
4798
|
timeout_in_seconds: typing.Optional[jsii.Number] = None,
|
|
4730
4799
|
) -> None:
|
|
@@ -4872,6 +4941,7 @@ def _typecheckingstub__16072f2291ff792418a957a399b7ca3a9d2e16cb1e67d33d5682dbb0e
|
|
|
4872
4941
|
scope: _constructs_77d1e7e8.Construct,
|
|
4873
4942
|
handler: builtins.str,
|
|
4874
4943
|
family: RuntimeFamily,
|
|
4944
|
+
runtime_name: typing.Optional[builtins.str] = None,
|
|
4875
4945
|
) -> None:
|
|
4876
4946
|
"""Type checking stubs"""
|
|
4877
4947
|
pass
|
|
@@ -4910,9 +4980,10 @@ def _typecheckingstub__8e4d6f25be5e212e7eccf81a0bb26d92760fb4f335d2fd7395acbdc37
|
|
|
4910
4980
|
pass
|
|
4911
4981
|
|
|
4912
4982
|
def _typecheckingstub__9c1dddac73b46d6693b6032065ae6db988e1e76cb520ebf3d4aa58e532f543a9(
|
|
4913
|
-
|
|
4983
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4914
4984
|
handler: builtins.str,
|
|
4915
4985
|
_family: RuntimeFamily,
|
|
4986
|
+
_runtime_name: typing.Optional[builtins.str] = None,
|
|
4916
4987
|
) -> None:
|
|
4917
4988
|
"""Type checking stubs"""
|
|
4918
4989
|
pass
|
|
@@ -4936,6 +5007,7 @@ def _typecheckingstub__2e764381c92bbdf3e70a0cf34a6f1afa9abfa207f9eb030a4ac6823b6
|
|
|
4936
5007
|
_scope: _constructs_77d1e7e8.Construct,
|
|
4937
5008
|
_handler: builtins.str,
|
|
4938
5009
|
_family: RuntimeFamily,
|
|
5010
|
+
_runtime_name: typing.Optional[builtins.str] = None,
|
|
4939
5011
|
) -> None:
|
|
4940
5012
|
"""Type checking stubs"""
|
|
4941
5013
|
pass
|
|
@@ -4972,6 +5044,7 @@ def _typecheckingstub__dcf81e22fccedf5b193b8ec9218200abb14bc77d3601c5cd7edbedda5
|
|
|
4972
5044
|
scope: _constructs_77d1e7e8.Construct,
|
|
4973
5045
|
handler: builtins.str,
|
|
4974
5046
|
family: RuntimeFamily,
|
|
5047
|
+
runtime_name: typing.Optional[builtins.str] = None,
|
|
4975
5048
|
) -> None:
|
|
4976
5049
|
"""Type checking stubs"""
|
|
4977
5050
|
pass
|
|
@@ -345,6 +345,7 @@ class CfnInfluxDBInstance(
|
|
|
345
345
|
)
|
|
346
346
|
),
|
|
347
347
|
name="name",
|
|
348
|
+
network_type="networkType",
|
|
348
349
|
organization="organization",
|
|
349
350
|
password="password",
|
|
350
351
|
port=123,
|
|
@@ -372,6 +373,7 @@ class CfnInfluxDBInstance(
|
|
|
372
373
|
deployment_type: typing.Optional[builtins.str] = None,
|
|
373
374
|
log_delivery_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInfluxDBInstance.LogDeliveryConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
374
375
|
name: typing.Optional[builtins.str] = None,
|
|
376
|
+
network_type: typing.Optional[builtins.str] = None,
|
|
375
377
|
organization: typing.Optional[builtins.str] = None,
|
|
376
378
|
password: typing.Optional[builtins.str] = None,
|
|
377
379
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -392,6 +394,7 @@ class CfnInfluxDBInstance(
|
|
|
392
394
|
:param deployment_type: Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.
|
|
393
395
|
:param log_delivery_configuration: Configuration for sending InfluxDB engine logs to a specified S3 bucket.
|
|
394
396
|
:param name: The name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands. This name will also be a prefix included in the endpoint. DB instance names must be unique per customer and per region.
|
|
397
|
+
:param network_type: Network type of the InfluxDB Instance.
|
|
395
398
|
:param organization: The name of the initial organization for the initial admin user in InfluxDB. An InfluxDB organization is a workspace for a group of users.
|
|
396
399
|
:param password: The password of the initial admin user created in InfluxDB. This password will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in Amazon SecretManager in your account.
|
|
397
400
|
:param port: The port number on which InfluxDB accepts connections.
|
|
@@ -414,6 +417,7 @@ class CfnInfluxDBInstance(
|
|
|
414
417
|
deployment_type=deployment_type,
|
|
415
418
|
log_delivery_configuration=log_delivery_configuration,
|
|
416
419
|
name=name,
|
|
420
|
+
network_type=network_type,
|
|
417
421
|
organization=organization,
|
|
418
422
|
password=password,
|
|
419
423
|
port=port,
|
|
@@ -648,6 +652,19 @@ class CfnInfluxDBInstance(
|
|
|
648
652
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
649
653
|
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
650
654
|
|
|
655
|
+
@builtins.property
|
|
656
|
+
@jsii.member(jsii_name="networkType")
|
|
657
|
+
def network_type(self) -> typing.Optional[builtins.str]:
|
|
658
|
+
'''Network type of the InfluxDB Instance.'''
|
|
659
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "networkType"))
|
|
660
|
+
|
|
661
|
+
@network_type.setter
|
|
662
|
+
def network_type(self, value: typing.Optional[builtins.str]) -> None:
|
|
663
|
+
if __debug__:
|
|
664
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cff240a2ab2df740f98a8f8170c5151f7ded157f1157909dc636caed4c9fe252)
|
|
665
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
666
|
+
jsii.set(self, "networkType", value) # pyright: ignore[reportArgumentType]
|
|
667
|
+
|
|
651
668
|
@builtins.property
|
|
652
669
|
@jsii.member(jsii_name="organization")
|
|
653
670
|
def organization(self) -> typing.Optional[builtins.str]:
|
|
@@ -905,6 +922,7 @@ class CfnInfluxDBInstance(
|
|
|
905
922
|
"deployment_type": "deploymentType",
|
|
906
923
|
"log_delivery_configuration": "logDeliveryConfiguration",
|
|
907
924
|
"name": "name",
|
|
925
|
+
"network_type": "networkType",
|
|
908
926
|
"organization": "organization",
|
|
909
927
|
"password": "password",
|
|
910
928
|
"port": "port",
|
|
@@ -927,6 +945,7 @@ class CfnInfluxDBInstanceProps:
|
|
|
927
945
|
deployment_type: typing.Optional[builtins.str] = None,
|
|
928
946
|
log_delivery_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInfluxDBInstance.LogDeliveryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
929
947
|
name: typing.Optional[builtins.str] = None,
|
|
948
|
+
network_type: typing.Optional[builtins.str] = None,
|
|
930
949
|
organization: typing.Optional[builtins.str] = None,
|
|
931
950
|
password: typing.Optional[builtins.str] = None,
|
|
932
951
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -946,6 +965,7 @@ class CfnInfluxDBInstanceProps:
|
|
|
946
965
|
:param deployment_type: Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability.
|
|
947
966
|
:param log_delivery_configuration: Configuration for sending InfluxDB engine logs to a specified S3 bucket.
|
|
948
967
|
:param name: The name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands. This name will also be a prefix included in the endpoint. DB instance names must be unique per customer and per region.
|
|
968
|
+
:param network_type: Network type of the InfluxDB Instance.
|
|
949
969
|
:param organization: The name of the initial organization for the initial admin user in InfluxDB. An InfluxDB organization is a workspace for a group of users.
|
|
950
970
|
:param password: The password of the initial admin user created in InfluxDB. This password will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in Amazon SecretManager in your account.
|
|
951
971
|
:param port: The port number on which InfluxDB accepts connections.
|
|
@@ -978,6 +998,7 @@ class CfnInfluxDBInstanceProps:
|
|
|
978
998
|
)
|
|
979
999
|
),
|
|
980
1000
|
name="name",
|
|
1001
|
+
network_type="networkType",
|
|
981
1002
|
organization="organization",
|
|
982
1003
|
password="password",
|
|
983
1004
|
port=123,
|
|
@@ -1001,6 +1022,7 @@ class CfnInfluxDBInstanceProps:
|
|
|
1001
1022
|
check_type(argname="argument deployment_type", value=deployment_type, expected_type=type_hints["deployment_type"])
|
|
1002
1023
|
check_type(argname="argument log_delivery_configuration", value=log_delivery_configuration, expected_type=type_hints["log_delivery_configuration"])
|
|
1003
1024
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1025
|
+
check_type(argname="argument network_type", value=network_type, expected_type=type_hints["network_type"])
|
|
1004
1026
|
check_type(argname="argument organization", value=organization, expected_type=type_hints["organization"])
|
|
1005
1027
|
check_type(argname="argument password", value=password, expected_type=type_hints["password"])
|
|
1006
1028
|
check_type(argname="argument port", value=port, expected_type=type_hints["port"])
|
|
@@ -1026,6 +1048,8 @@ class CfnInfluxDBInstanceProps:
|
|
|
1026
1048
|
self._values["log_delivery_configuration"] = log_delivery_configuration
|
|
1027
1049
|
if name is not None:
|
|
1028
1050
|
self._values["name"] = name
|
|
1051
|
+
if network_type is not None:
|
|
1052
|
+
self._values["network_type"] = network_type
|
|
1029
1053
|
if organization is not None:
|
|
1030
1054
|
self._values["organization"] = organization
|
|
1031
1055
|
if password is not None:
|
|
@@ -1129,6 +1153,15 @@ class CfnInfluxDBInstanceProps:
|
|
|
1129
1153
|
result = self._values.get("name")
|
|
1130
1154
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1131
1155
|
|
|
1156
|
+
@builtins.property
|
|
1157
|
+
def network_type(self) -> typing.Optional[builtins.str]:
|
|
1158
|
+
'''Network type of the InfluxDB Instance.
|
|
1159
|
+
|
|
1160
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-timestream-influxdbinstance.html#cfn-timestream-influxdbinstance-networktype
|
|
1161
|
+
'''
|
|
1162
|
+
result = self._values.get("network_type")
|
|
1163
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1164
|
+
|
|
1132
1165
|
@builtins.property
|
|
1133
1166
|
def organization(self) -> typing.Optional[builtins.str]:
|
|
1134
1167
|
'''The name of the initial organization for the initial admin user in InfluxDB.
|
|
@@ -3957,6 +3990,7 @@ def _typecheckingstub__261e4a43f1d3c329e317698aa3b0f0428b7e7d3646c4c536f48fd191f
|
|
|
3957
3990
|
deployment_type: typing.Optional[builtins.str] = None,
|
|
3958
3991
|
log_delivery_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInfluxDBInstance.LogDeliveryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3959
3992
|
name: typing.Optional[builtins.str] = None,
|
|
3993
|
+
network_type: typing.Optional[builtins.str] = None,
|
|
3960
3994
|
organization: typing.Optional[builtins.str] = None,
|
|
3961
3995
|
password: typing.Optional[builtins.str] = None,
|
|
3962
3996
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -4029,6 +4063,12 @@ def _typecheckingstub__850a764930865e073c6906c062d2d30700a4c783783240e878c9177e7
|
|
|
4029
4063
|
"""Type checking stubs"""
|
|
4030
4064
|
pass
|
|
4031
4065
|
|
|
4066
|
+
def _typecheckingstub__cff240a2ab2df740f98a8f8170c5151f7ded157f1157909dc636caed4c9fe252(
|
|
4067
|
+
value: typing.Optional[builtins.str],
|
|
4068
|
+
) -> None:
|
|
4069
|
+
"""Type checking stubs"""
|
|
4070
|
+
pass
|
|
4071
|
+
|
|
4032
4072
|
def _typecheckingstub__cc951f5919f71c331ff63c7ad85284437f7a1518ff4ec8b7d4be3a209a958642(
|
|
4033
4073
|
value: typing.Optional[builtins.str],
|
|
4034
4074
|
) -> None:
|
|
@@ -4102,6 +4142,7 @@ def _typecheckingstub__d0e1a256f4abdadd4b29eda8fd45f16d71b49061c796d179f90eb728f
|
|
|
4102
4142
|
deployment_type: typing.Optional[builtins.str] = None,
|
|
4103
4143
|
log_delivery_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInfluxDBInstance.LogDeliveryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4104
4144
|
name: typing.Optional[builtins.str] = None,
|
|
4145
|
+
network_type: typing.Optional[builtins.str] = None,
|
|
4105
4146
|
organization: typing.Optional[builtins.str] = None,
|
|
4106
4147
|
password: typing.Optional[builtins.str] = None,
|
|
4107
4148
|
port: typing.Optional[jsii.Number] = None,
|