aws-cdk-lib 2.201.0__py3-none-any.whl → 2.203.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.

Files changed (69) hide show
  1. aws_cdk/__init__.py +70 -71
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.201.0.jsii.tgz → aws-cdk-lib@2.203.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_accessanalyzer/__init__.py +310 -4
  5. aws_cdk/aws_aiops/__init__.py +964 -0
  6. aws_cdk/aws_amplify/__init__.py +127 -0
  7. aws_cdk/aws_arczonalshift/__init__.py +8 -8
  8. aws_cdk/aws_athena/__init__.py +12 -11
  9. aws_cdk/aws_b2bi/__init__.py +782 -3
  10. aws_cdk/aws_backup/__init__.py +22 -0
  11. aws_cdk/aws_batch/__init__.py +53 -1
  12. aws_cdk/aws_bedrock/__init__.py +123 -9
  13. aws_cdk/aws_cleanrooms/__init__.py +157 -154
  14. aws_cdk/aws_cloudformation/__init__.py +28 -28
  15. aws_cdk/aws_cloudfront/__init__.py +92 -57
  16. aws_cdk/aws_cloudfront/experimental/__init__.py +42 -3
  17. aws_cdk/aws_cloudwatch/__init__.py +228 -2
  18. aws_cdk/aws_connect/__init__.py +120 -8
  19. aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
  20. aws_cdk/aws_customerprofiles/__init__.py +150 -30
  21. aws_cdk/aws_datazone/__init__.py +23 -4
  22. aws_cdk/aws_deadline/__init__.py +4 -4
  23. aws_cdk/aws_dsql/__init__.py +148 -0
  24. aws_cdk/aws_ec2/__init__.py +321 -19
  25. aws_cdk/aws_ecr/__init__.py +3 -3
  26. aws_cdk/aws_ecs/__init__.py +48 -13
  27. aws_cdk/aws_efs/__init__.py +17 -6
  28. aws_cdk/aws_eks/__init__.py +180 -158
  29. aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
  30. aws_cdk/aws_emrserverless/__init__.py +118 -0
  31. aws_cdk/aws_fsx/__init__.py +891 -0
  32. aws_cdk/aws_glue/__init__.py +58 -24
  33. aws_cdk/aws_iam/__init__.py +11 -11
  34. aws_cdk/aws_inspectorv2/__init__.py +442 -3
  35. aws_cdk/aws_kendra/__init__.py +10 -5
  36. aws_cdk/aws_kms/__init__.py +24 -12
  37. aws_cdk/aws_lambda/__init__.py +938 -36
  38. aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
  39. aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
  40. aws_cdk/aws_lex/__init__.py +703 -0
  41. aws_cdk/aws_logs/__init__.py +144 -0
  42. aws_cdk/aws_mediatailor/__init__.py +399 -0
  43. aws_cdk/aws_mpa/__init__.py +1475 -0
  44. aws_cdk/aws_msk/__init__.py +21 -2
  45. aws_cdk/aws_mwaa/__init__.py +45 -2
  46. aws_cdk/aws_networkfirewall/__init__.py +4 -2
  47. aws_cdk/aws_networkmanager/__init__.py +51 -3
  48. aws_cdk/aws_opsworkscm/__init__.py +44 -2
  49. aws_cdk/aws_rds/__init__.py +175 -42
  50. aws_cdk/aws_redshiftserverless/__init__.py +632 -0
  51. aws_cdk/aws_route53resolver/__init__.py +58 -10
  52. aws_cdk/aws_s3/__init__.py +19 -1
  53. aws_cdk/aws_s3tables/__init__.py +230 -0
  54. aws_cdk/aws_sagemaker/__init__.py +14 -10
  55. aws_cdk/aws_securityhub/__init__.py +2887 -56
  56. aws_cdk/aws_synthetics/__init__.py +21 -0
  57. aws_cdk/aws_vpclattice/__init__.py +6 -4
  58. aws_cdk/aws_wafv2/__init__.py +849 -18
  59. aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
  60. aws_cdk/cloud_assembly_schema/__init__.py +200 -4
  61. aws_cdk/cx_api/__init__.py +29 -14
  62. aws_cdk/pipelines/__init__.py +178 -41
  63. aws_cdk/triggers/__init__.py +41 -4
  64. {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
  65. {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +69 -66
  66. {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
  67. {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
  68. {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
  69. {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
@@ -64,6 +64,7 @@ from .. import (
64
64
  IInspectable as _IInspectable_c2943556,
65
65
  IResolvable as _IResolvable_da3f097b,
66
66
  ITaggable as _ITaggable_36806126,
67
+ ITaggableV2 as _ITaggableV2_4e6798f8,
67
68
  TagManager as _TagManager_0a598cb3,
68
69
  TreeInspector as _TreeInspector_488e0dd5,
69
70
  )
@@ -1236,6 +1237,561 @@ class CfnNamespaceProps:
1236
1237
  )
1237
1238
 
1238
1239
 
1240
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
1241
+ class CfnSnapshot(
1242
+ _CfnResource_9df397a6,
1243
+ metaclass=jsii.JSIIMeta,
1244
+ jsii_type="aws-cdk-lib.aws_redshiftserverless.CfnSnapshot",
1245
+ ):
1246
+ '''Resource Type definition for AWS::RedshiftServerless::Snapshot Resource Type.
1247
+
1248
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshiftserverless-snapshot.html
1249
+ :cloudformationResource: AWS::RedshiftServerless::Snapshot
1250
+ :exampleMetadata: fixture=_generated
1251
+
1252
+ Example::
1253
+
1254
+ # The code below shows an example of how to instantiate this type.
1255
+ # The values are placeholders you should change.
1256
+ from aws_cdk import aws_redshiftserverless as redshiftserverless
1257
+
1258
+ cfn_snapshot = redshiftserverless.CfnSnapshot(self, "MyCfnSnapshot",
1259
+ snapshot_name="snapshotName",
1260
+
1261
+ # the properties below are optional
1262
+ namespace_name="namespaceName",
1263
+ retention_period=123,
1264
+ tags=[CfnTag(
1265
+ key="key",
1266
+ value="value"
1267
+ )]
1268
+ )
1269
+ '''
1270
+
1271
+ def __init__(
1272
+ self,
1273
+ scope: _constructs_77d1e7e8.Construct,
1274
+ id: builtins.str,
1275
+ *,
1276
+ snapshot_name: builtins.str,
1277
+ namespace_name: typing.Optional[builtins.str] = None,
1278
+ retention_period: typing.Optional[jsii.Number] = None,
1279
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1280
+ ) -> None:
1281
+ '''
1282
+ :param scope: Scope in which this resource is defined.
1283
+ :param id: Construct identifier for this resource (unique in its scope).
1284
+ :param snapshot_name: The name of the snapshot.
1285
+ :param namespace_name: The namespace the snapshot is associated with.
1286
+ :param retention_period: The retention period of the snapshot.
1287
+ :param tags: An array of key-value pairs to apply to this resource.
1288
+ '''
1289
+ if __debug__:
1290
+ type_hints = typing.get_type_hints(_typecheckingstub__a1e2b5eeadcf14eaf0be75cda550b6bcef2aa009af0fe87d6f5e9e856ad0ef43)
1291
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
1292
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
1293
+ props = CfnSnapshotProps(
1294
+ snapshot_name=snapshot_name,
1295
+ namespace_name=namespace_name,
1296
+ retention_period=retention_period,
1297
+ tags=tags,
1298
+ )
1299
+
1300
+ jsii.create(self.__class__, self, [scope, id, props])
1301
+
1302
+ @jsii.member(jsii_name="inspect")
1303
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
1304
+ '''Examines the CloudFormation resource and discloses attributes.
1305
+
1306
+ :param inspector: tree inspector to collect and process attributes.
1307
+ '''
1308
+ if __debug__:
1309
+ type_hints = typing.get_type_hints(_typecheckingstub__5ddc470fc115016c807de39b9ff4325d249ff8657e32f92eefbcb4bac9e79eb0)
1310
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
1311
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
1312
+
1313
+ @jsii.member(jsii_name="renderProperties")
1314
+ def _render_properties(
1315
+ self,
1316
+ props: typing.Mapping[builtins.str, typing.Any],
1317
+ ) -> typing.Mapping[builtins.str, typing.Any]:
1318
+ '''
1319
+ :param props: -
1320
+ '''
1321
+ if __debug__:
1322
+ type_hints = typing.get_type_hints(_typecheckingstub__4bdbe6940b32b0a05793c97cd18c6f2009d35937c086b1b342b276e310c97129)
1323
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
1324
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
1325
+
1326
+ @jsii.python.classproperty
1327
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
1328
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
1329
+ '''The CloudFormation resource type name for this resource class.'''
1330
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
1331
+
1332
+ @builtins.property
1333
+ @jsii.member(jsii_name="attrOwnerAccount")
1334
+ def attr_owner_account(self) -> builtins.str:
1335
+ '''The owner account of the snapshot.
1336
+
1337
+ :cloudformationAttribute: OwnerAccount
1338
+ '''
1339
+ return typing.cast(builtins.str, jsii.get(self, "attrOwnerAccount"))
1340
+
1341
+ @builtins.property
1342
+ @jsii.member(jsii_name="attrSnapshot")
1343
+ def attr_snapshot(self) -> _IResolvable_da3f097b:
1344
+ '''
1345
+ :cloudformationAttribute: Snapshot
1346
+ '''
1347
+ return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrSnapshot"))
1348
+
1349
+ @builtins.property
1350
+ @jsii.member(jsii_name="attrSnapshotAdminUsername")
1351
+ def attr_snapshot_admin_username(self) -> builtins.str:
1352
+ '''
1353
+ :cloudformationAttribute: Snapshot.AdminUsername
1354
+ '''
1355
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotAdminUsername"))
1356
+
1357
+ @builtins.property
1358
+ @jsii.member(jsii_name="attrSnapshotKmsKeyId")
1359
+ def attr_snapshot_kms_key_id(self) -> builtins.str:
1360
+ '''
1361
+ :cloudformationAttribute: Snapshot.KmsKeyId
1362
+ '''
1363
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotKmsKeyId"))
1364
+
1365
+ @builtins.property
1366
+ @jsii.member(jsii_name="attrSnapshotNamespaceArn")
1367
+ def attr_snapshot_namespace_arn(self) -> builtins.str:
1368
+ '''
1369
+ :cloudformationAttribute: Snapshot.NamespaceArn
1370
+ '''
1371
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotNamespaceArn"))
1372
+
1373
+ @builtins.property
1374
+ @jsii.member(jsii_name="attrSnapshotNamespaceName")
1375
+ def attr_snapshot_namespace_name(self) -> builtins.str:
1376
+ '''
1377
+ :cloudformationAttribute: Snapshot.NamespaceName
1378
+ '''
1379
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotNamespaceName"))
1380
+
1381
+ @builtins.property
1382
+ @jsii.member(jsii_name="attrSnapshotOwnerAccount")
1383
+ def attr_snapshot_owner_account(self) -> builtins.str:
1384
+ '''
1385
+ :cloudformationAttribute: Snapshot.OwnerAccount
1386
+ '''
1387
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotOwnerAccount"))
1388
+
1389
+ @builtins.property
1390
+ @jsii.member(jsii_name="attrSnapshotRetentionPeriod")
1391
+ def attr_snapshot_retention_period(self) -> jsii.Number:
1392
+ '''
1393
+ :cloudformationAttribute: Snapshot.RetentionPeriod
1394
+ '''
1395
+ return typing.cast(jsii.Number, jsii.get(self, "attrSnapshotRetentionPeriod"))
1396
+
1397
+ @builtins.property
1398
+ @jsii.member(jsii_name="attrSnapshotSnapshotArn")
1399
+ def attr_snapshot_snapshot_arn(self) -> builtins.str:
1400
+ '''
1401
+ :cloudformationAttribute: Snapshot.SnapshotArn
1402
+ '''
1403
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotSnapshotArn"))
1404
+
1405
+ @builtins.property
1406
+ @jsii.member(jsii_name="attrSnapshotSnapshotCreateTime")
1407
+ def attr_snapshot_snapshot_create_time(self) -> builtins.str:
1408
+ '''
1409
+ :cloudformationAttribute: Snapshot.SnapshotCreateTime
1410
+ '''
1411
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotSnapshotCreateTime"))
1412
+
1413
+ @builtins.property
1414
+ @jsii.member(jsii_name="attrSnapshotSnapshotName")
1415
+ def attr_snapshot_snapshot_name(self) -> builtins.str:
1416
+ '''
1417
+ :cloudformationAttribute: Snapshot.SnapshotName
1418
+ '''
1419
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotSnapshotName"))
1420
+
1421
+ @builtins.property
1422
+ @jsii.member(jsii_name="attrSnapshotStatus")
1423
+ def attr_snapshot_status(self) -> builtins.str:
1424
+ '''
1425
+ :cloudformationAttribute: Snapshot.Status
1426
+ '''
1427
+ return typing.cast(builtins.str, jsii.get(self, "attrSnapshotStatus"))
1428
+
1429
+ @builtins.property
1430
+ @jsii.member(jsii_name="cdkTagManager")
1431
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
1432
+ '''Tag Manager which manages the tags for this resource.'''
1433
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
1434
+
1435
+ @builtins.property
1436
+ @jsii.member(jsii_name="cfnProperties")
1437
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
1438
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
1439
+
1440
+ @builtins.property
1441
+ @jsii.member(jsii_name="snapshotName")
1442
+ def snapshot_name(self) -> builtins.str:
1443
+ '''The name of the snapshot.'''
1444
+ return typing.cast(builtins.str, jsii.get(self, "snapshotName"))
1445
+
1446
+ @snapshot_name.setter
1447
+ def snapshot_name(self, value: builtins.str) -> None:
1448
+ if __debug__:
1449
+ type_hints = typing.get_type_hints(_typecheckingstub__f64f97556142b340a4fd0b74522c68b85e2157f2a27ece8203bd18185cfe3ce6)
1450
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1451
+ jsii.set(self, "snapshotName", value) # pyright: ignore[reportArgumentType]
1452
+
1453
+ @builtins.property
1454
+ @jsii.member(jsii_name="namespaceName")
1455
+ def namespace_name(self) -> typing.Optional[builtins.str]:
1456
+ '''The namespace the snapshot is associated with.'''
1457
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "namespaceName"))
1458
+
1459
+ @namespace_name.setter
1460
+ def namespace_name(self, value: typing.Optional[builtins.str]) -> None:
1461
+ if __debug__:
1462
+ type_hints = typing.get_type_hints(_typecheckingstub__5f6a30dd9c5c0b8045b8d36ef14977ccb4361c843f7dcb8ac7322f8fa349468d)
1463
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1464
+ jsii.set(self, "namespaceName", value) # pyright: ignore[reportArgumentType]
1465
+
1466
+ @builtins.property
1467
+ @jsii.member(jsii_name="retentionPeriod")
1468
+ def retention_period(self) -> typing.Optional[jsii.Number]:
1469
+ '''The retention period of the snapshot.'''
1470
+ return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "retentionPeriod"))
1471
+
1472
+ @retention_period.setter
1473
+ def retention_period(self, value: typing.Optional[jsii.Number]) -> None:
1474
+ if __debug__:
1475
+ type_hints = typing.get_type_hints(_typecheckingstub__521c1c8ca437327e56c1b9a24896fa19595912e045202fbf656a893304dd3c04)
1476
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1477
+ jsii.set(self, "retentionPeriod", value) # pyright: ignore[reportArgumentType]
1478
+
1479
+ @builtins.property
1480
+ @jsii.member(jsii_name="tags")
1481
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
1482
+ '''An array of key-value pairs to apply to this resource.'''
1483
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
1484
+
1485
+ @tags.setter
1486
+ def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
1487
+ if __debug__:
1488
+ type_hints = typing.get_type_hints(_typecheckingstub__77534803a2fb41b5883d0c89334777e664cec59572dd7a376bbe5dbc41ff64ef)
1489
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1490
+ jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
1491
+
1492
+ @jsii.data_type(
1493
+ jsii_type="aws-cdk-lib.aws_redshiftserverless.CfnSnapshot.SnapshotProperty",
1494
+ jsii_struct_bases=[],
1495
+ name_mapping={
1496
+ "admin_username": "adminUsername",
1497
+ "kms_key_id": "kmsKeyId",
1498
+ "namespace_arn": "namespaceArn",
1499
+ "namespace_name": "namespaceName",
1500
+ "owner_account": "ownerAccount",
1501
+ "retention_period": "retentionPeriod",
1502
+ "snapshot_arn": "snapshotArn",
1503
+ "snapshot_create_time": "snapshotCreateTime",
1504
+ "snapshot_name": "snapshotName",
1505
+ "status": "status",
1506
+ },
1507
+ )
1508
+ class SnapshotProperty:
1509
+ def __init__(
1510
+ self,
1511
+ *,
1512
+ admin_username: typing.Optional[builtins.str] = None,
1513
+ kms_key_id: typing.Optional[builtins.str] = None,
1514
+ namespace_arn: typing.Optional[builtins.str] = None,
1515
+ namespace_name: typing.Optional[builtins.str] = None,
1516
+ owner_account: typing.Optional[builtins.str] = None,
1517
+ retention_period: typing.Optional[jsii.Number] = None,
1518
+ snapshot_arn: typing.Optional[builtins.str] = None,
1519
+ snapshot_create_time: typing.Optional[builtins.str] = None,
1520
+ snapshot_name: typing.Optional[builtins.str] = None,
1521
+ status: typing.Optional[builtins.str] = None,
1522
+ ) -> None:
1523
+ '''
1524
+ :param admin_username:
1525
+ :param kms_key_id:
1526
+ :param namespace_arn:
1527
+ :param namespace_name:
1528
+ :param owner_account:
1529
+ :param retention_period:
1530
+ :param snapshot_arn:
1531
+ :param snapshot_create_time:
1532
+ :param snapshot_name:
1533
+ :param status:
1534
+
1535
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html
1536
+ :exampleMetadata: fixture=_generated
1537
+
1538
+ Example::
1539
+
1540
+ # The code below shows an example of how to instantiate this type.
1541
+ # The values are placeholders you should change.
1542
+ from aws_cdk import aws_redshiftserverless as redshiftserverless
1543
+
1544
+ snapshot_property = redshiftserverless.CfnSnapshot.SnapshotProperty(
1545
+ admin_username="adminUsername",
1546
+ kms_key_id="kmsKeyId",
1547
+ namespace_arn="namespaceArn",
1548
+ namespace_name="namespaceName",
1549
+ owner_account="ownerAccount",
1550
+ retention_period=123,
1551
+ snapshot_arn="snapshotArn",
1552
+ snapshot_create_time="snapshotCreateTime",
1553
+ snapshot_name="snapshotName",
1554
+ status="status"
1555
+ )
1556
+ '''
1557
+ if __debug__:
1558
+ type_hints = typing.get_type_hints(_typecheckingstub__d32a77292254bff347197e3bdcc04e2fea309ebb7baea20e5fee3f5714159ffa)
1559
+ check_type(argname="argument admin_username", value=admin_username, expected_type=type_hints["admin_username"])
1560
+ check_type(argname="argument kms_key_id", value=kms_key_id, expected_type=type_hints["kms_key_id"])
1561
+ check_type(argname="argument namespace_arn", value=namespace_arn, expected_type=type_hints["namespace_arn"])
1562
+ check_type(argname="argument namespace_name", value=namespace_name, expected_type=type_hints["namespace_name"])
1563
+ check_type(argname="argument owner_account", value=owner_account, expected_type=type_hints["owner_account"])
1564
+ check_type(argname="argument retention_period", value=retention_period, expected_type=type_hints["retention_period"])
1565
+ check_type(argname="argument snapshot_arn", value=snapshot_arn, expected_type=type_hints["snapshot_arn"])
1566
+ check_type(argname="argument snapshot_create_time", value=snapshot_create_time, expected_type=type_hints["snapshot_create_time"])
1567
+ check_type(argname="argument snapshot_name", value=snapshot_name, expected_type=type_hints["snapshot_name"])
1568
+ check_type(argname="argument status", value=status, expected_type=type_hints["status"])
1569
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
1570
+ if admin_username is not None:
1571
+ self._values["admin_username"] = admin_username
1572
+ if kms_key_id is not None:
1573
+ self._values["kms_key_id"] = kms_key_id
1574
+ if namespace_arn is not None:
1575
+ self._values["namespace_arn"] = namespace_arn
1576
+ if namespace_name is not None:
1577
+ self._values["namespace_name"] = namespace_name
1578
+ if owner_account is not None:
1579
+ self._values["owner_account"] = owner_account
1580
+ if retention_period is not None:
1581
+ self._values["retention_period"] = retention_period
1582
+ if snapshot_arn is not None:
1583
+ self._values["snapshot_arn"] = snapshot_arn
1584
+ if snapshot_create_time is not None:
1585
+ self._values["snapshot_create_time"] = snapshot_create_time
1586
+ if snapshot_name is not None:
1587
+ self._values["snapshot_name"] = snapshot_name
1588
+ if status is not None:
1589
+ self._values["status"] = status
1590
+
1591
+ @builtins.property
1592
+ def admin_username(self) -> typing.Optional[builtins.str]:
1593
+ '''
1594
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-adminusername
1595
+ '''
1596
+ result = self._values.get("admin_username")
1597
+ return typing.cast(typing.Optional[builtins.str], result)
1598
+
1599
+ @builtins.property
1600
+ def kms_key_id(self) -> typing.Optional[builtins.str]:
1601
+ '''
1602
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-kmskeyid
1603
+ '''
1604
+ result = self._values.get("kms_key_id")
1605
+ return typing.cast(typing.Optional[builtins.str], result)
1606
+
1607
+ @builtins.property
1608
+ def namespace_arn(self) -> typing.Optional[builtins.str]:
1609
+ '''
1610
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-namespacearn
1611
+ '''
1612
+ result = self._values.get("namespace_arn")
1613
+ return typing.cast(typing.Optional[builtins.str], result)
1614
+
1615
+ @builtins.property
1616
+ def namespace_name(self) -> typing.Optional[builtins.str]:
1617
+ '''
1618
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-namespacename
1619
+ '''
1620
+ result = self._values.get("namespace_name")
1621
+ return typing.cast(typing.Optional[builtins.str], result)
1622
+
1623
+ @builtins.property
1624
+ def owner_account(self) -> typing.Optional[builtins.str]:
1625
+ '''
1626
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-owneraccount
1627
+ '''
1628
+ result = self._values.get("owner_account")
1629
+ return typing.cast(typing.Optional[builtins.str], result)
1630
+
1631
+ @builtins.property
1632
+ def retention_period(self) -> typing.Optional[jsii.Number]:
1633
+ '''
1634
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-retentionperiod
1635
+ '''
1636
+ result = self._values.get("retention_period")
1637
+ return typing.cast(typing.Optional[jsii.Number], result)
1638
+
1639
+ @builtins.property
1640
+ def snapshot_arn(self) -> typing.Optional[builtins.str]:
1641
+ '''
1642
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-snapshotarn
1643
+ '''
1644
+ result = self._values.get("snapshot_arn")
1645
+ return typing.cast(typing.Optional[builtins.str], result)
1646
+
1647
+ @builtins.property
1648
+ def snapshot_create_time(self) -> typing.Optional[builtins.str]:
1649
+ '''
1650
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-snapshotcreatetime
1651
+ '''
1652
+ result = self._values.get("snapshot_create_time")
1653
+ return typing.cast(typing.Optional[builtins.str], result)
1654
+
1655
+ @builtins.property
1656
+ def snapshot_name(self) -> typing.Optional[builtins.str]:
1657
+ '''
1658
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-snapshotname
1659
+ '''
1660
+ result = self._values.get("snapshot_name")
1661
+ return typing.cast(typing.Optional[builtins.str], result)
1662
+
1663
+ @builtins.property
1664
+ def status(self) -> typing.Optional[builtins.str]:
1665
+ '''
1666
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshiftserverless-snapshot-snapshot.html#cfn-redshiftserverless-snapshot-snapshot-status
1667
+ '''
1668
+ result = self._values.get("status")
1669
+ return typing.cast(typing.Optional[builtins.str], result)
1670
+
1671
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1672
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1673
+
1674
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1675
+ return not (rhs == self)
1676
+
1677
+ def __repr__(self) -> str:
1678
+ return "SnapshotProperty(%s)" % ", ".join(
1679
+ k + "=" + repr(v) for k, v in self._values.items()
1680
+ )
1681
+
1682
+
1683
+ @jsii.data_type(
1684
+ jsii_type="aws-cdk-lib.aws_redshiftserverless.CfnSnapshotProps",
1685
+ jsii_struct_bases=[],
1686
+ name_mapping={
1687
+ "snapshot_name": "snapshotName",
1688
+ "namespace_name": "namespaceName",
1689
+ "retention_period": "retentionPeriod",
1690
+ "tags": "tags",
1691
+ },
1692
+ )
1693
+ class CfnSnapshotProps:
1694
+ def __init__(
1695
+ self,
1696
+ *,
1697
+ snapshot_name: builtins.str,
1698
+ namespace_name: typing.Optional[builtins.str] = None,
1699
+ retention_period: typing.Optional[jsii.Number] = None,
1700
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1701
+ ) -> None:
1702
+ '''Properties for defining a ``CfnSnapshot``.
1703
+
1704
+ :param snapshot_name: The name of the snapshot.
1705
+ :param namespace_name: The namespace the snapshot is associated with.
1706
+ :param retention_period: The retention period of the snapshot.
1707
+ :param tags: An array of key-value pairs to apply to this resource.
1708
+
1709
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshiftserverless-snapshot.html
1710
+ :exampleMetadata: fixture=_generated
1711
+
1712
+ Example::
1713
+
1714
+ # The code below shows an example of how to instantiate this type.
1715
+ # The values are placeholders you should change.
1716
+ from aws_cdk import aws_redshiftserverless as redshiftserverless
1717
+
1718
+ cfn_snapshot_props = redshiftserverless.CfnSnapshotProps(
1719
+ snapshot_name="snapshotName",
1720
+
1721
+ # the properties below are optional
1722
+ namespace_name="namespaceName",
1723
+ retention_period=123,
1724
+ tags=[CfnTag(
1725
+ key="key",
1726
+ value="value"
1727
+ )]
1728
+ )
1729
+ '''
1730
+ if __debug__:
1731
+ type_hints = typing.get_type_hints(_typecheckingstub__38cd0d09fc150d83197b13fb0e10ea82ffa589e88452cdfecbd53994ae2ced5b)
1732
+ check_type(argname="argument snapshot_name", value=snapshot_name, expected_type=type_hints["snapshot_name"])
1733
+ check_type(argname="argument namespace_name", value=namespace_name, expected_type=type_hints["namespace_name"])
1734
+ check_type(argname="argument retention_period", value=retention_period, expected_type=type_hints["retention_period"])
1735
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
1736
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1737
+ "snapshot_name": snapshot_name,
1738
+ }
1739
+ if namespace_name is not None:
1740
+ self._values["namespace_name"] = namespace_name
1741
+ if retention_period is not None:
1742
+ self._values["retention_period"] = retention_period
1743
+ if tags is not None:
1744
+ self._values["tags"] = tags
1745
+
1746
+ @builtins.property
1747
+ def snapshot_name(self) -> builtins.str:
1748
+ '''The name of the snapshot.
1749
+
1750
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshiftserverless-snapshot.html#cfn-redshiftserverless-snapshot-snapshotname
1751
+ '''
1752
+ result = self._values.get("snapshot_name")
1753
+ assert result is not None, "Required property 'snapshot_name' is missing"
1754
+ return typing.cast(builtins.str, result)
1755
+
1756
+ @builtins.property
1757
+ def namespace_name(self) -> typing.Optional[builtins.str]:
1758
+ '''The namespace the snapshot is associated with.
1759
+
1760
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshiftserverless-snapshot.html#cfn-redshiftserverless-snapshot-namespacename
1761
+ '''
1762
+ result = self._values.get("namespace_name")
1763
+ return typing.cast(typing.Optional[builtins.str], result)
1764
+
1765
+ @builtins.property
1766
+ def retention_period(self) -> typing.Optional[jsii.Number]:
1767
+ '''The retention period of the snapshot.
1768
+
1769
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshiftserverless-snapshot.html#cfn-redshiftserverless-snapshot-retentionperiod
1770
+ '''
1771
+ result = self._values.get("retention_period")
1772
+ return typing.cast(typing.Optional[jsii.Number], result)
1773
+
1774
+ @builtins.property
1775
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
1776
+ '''An array of key-value pairs to apply to this resource.
1777
+
1778
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshiftserverless-snapshot.html#cfn-redshiftserverless-snapshot-tags
1779
+ '''
1780
+ result = self._values.get("tags")
1781
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
1782
+
1783
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1784
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1785
+
1786
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1787
+ return not (rhs == self)
1788
+
1789
+ def __repr__(self) -> str:
1790
+ return "CfnSnapshotProps(%s)" % ", ".join(
1791
+ k + "=" + repr(v) for k, v in self._values.items()
1792
+ )
1793
+
1794
+
1239
1795
  @jsii.implements(_IInspectable_c2943556, _ITaggable_36806126)
1240
1796
  class CfnWorkgroup(
1241
1797
  _CfnResource_9df397a6,
@@ -3054,6 +3610,8 @@ class CfnWorkgroupProps:
3054
3610
  __all__ = [
3055
3611
  "CfnNamespace",
3056
3612
  "CfnNamespaceProps",
3613
+ "CfnSnapshot",
3614
+ "CfnSnapshotProps",
3057
3615
  "CfnWorkgroup",
3058
3616
  "CfnWorkgroupProps",
3059
3617
  ]
@@ -3242,6 +3800,80 @@ def _typecheckingstub__5964a5da555f62a5d9615a6e07cd0d1128cdf904fd5aa3c5be9fd5e53
3242
3800
  """Type checking stubs"""
3243
3801
  pass
3244
3802
 
3803
+ def _typecheckingstub__a1e2b5eeadcf14eaf0be75cda550b6bcef2aa009af0fe87d6f5e9e856ad0ef43(
3804
+ scope: _constructs_77d1e7e8.Construct,
3805
+ id: builtins.str,
3806
+ *,
3807
+ snapshot_name: builtins.str,
3808
+ namespace_name: typing.Optional[builtins.str] = None,
3809
+ retention_period: typing.Optional[jsii.Number] = None,
3810
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
3811
+ ) -> None:
3812
+ """Type checking stubs"""
3813
+ pass
3814
+
3815
+ def _typecheckingstub__5ddc470fc115016c807de39b9ff4325d249ff8657e32f92eefbcb4bac9e79eb0(
3816
+ inspector: _TreeInspector_488e0dd5,
3817
+ ) -> None:
3818
+ """Type checking stubs"""
3819
+ pass
3820
+
3821
+ def _typecheckingstub__4bdbe6940b32b0a05793c97cd18c6f2009d35937c086b1b342b276e310c97129(
3822
+ props: typing.Mapping[builtins.str, typing.Any],
3823
+ ) -> None:
3824
+ """Type checking stubs"""
3825
+ pass
3826
+
3827
+ def _typecheckingstub__f64f97556142b340a4fd0b74522c68b85e2157f2a27ece8203bd18185cfe3ce6(
3828
+ value: builtins.str,
3829
+ ) -> None:
3830
+ """Type checking stubs"""
3831
+ pass
3832
+
3833
+ def _typecheckingstub__5f6a30dd9c5c0b8045b8d36ef14977ccb4361c843f7dcb8ac7322f8fa349468d(
3834
+ value: typing.Optional[builtins.str],
3835
+ ) -> None:
3836
+ """Type checking stubs"""
3837
+ pass
3838
+
3839
+ def _typecheckingstub__521c1c8ca437327e56c1b9a24896fa19595912e045202fbf656a893304dd3c04(
3840
+ value: typing.Optional[jsii.Number],
3841
+ ) -> None:
3842
+ """Type checking stubs"""
3843
+ pass
3844
+
3845
+ def _typecheckingstub__77534803a2fb41b5883d0c89334777e664cec59572dd7a376bbe5dbc41ff64ef(
3846
+ value: typing.Optional[typing.List[_CfnTag_f6864754]],
3847
+ ) -> None:
3848
+ """Type checking stubs"""
3849
+ pass
3850
+
3851
+ def _typecheckingstub__d32a77292254bff347197e3bdcc04e2fea309ebb7baea20e5fee3f5714159ffa(
3852
+ *,
3853
+ admin_username: typing.Optional[builtins.str] = None,
3854
+ kms_key_id: typing.Optional[builtins.str] = None,
3855
+ namespace_arn: typing.Optional[builtins.str] = None,
3856
+ namespace_name: typing.Optional[builtins.str] = None,
3857
+ owner_account: typing.Optional[builtins.str] = None,
3858
+ retention_period: typing.Optional[jsii.Number] = None,
3859
+ snapshot_arn: typing.Optional[builtins.str] = None,
3860
+ snapshot_create_time: typing.Optional[builtins.str] = None,
3861
+ snapshot_name: typing.Optional[builtins.str] = None,
3862
+ status: typing.Optional[builtins.str] = None,
3863
+ ) -> None:
3864
+ """Type checking stubs"""
3865
+ pass
3866
+
3867
+ def _typecheckingstub__38cd0d09fc150d83197b13fb0e10ea82ffa589e88452cdfecbd53994ae2ced5b(
3868
+ *,
3869
+ snapshot_name: builtins.str,
3870
+ namespace_name: typing.Optional[builtins.str] = None,
3871
+ retention_period: typing.Optional[jsii.Number] = None,
3872
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
3873
+ ) -> None:
3874
+ """Type checking stubs"""
3875
+ pass
3876
+
3245
3877
  def _typecheckingstub__61a1b6ebbdacc577619f4e17ddabdaa553ffe5fe072b72e14ddf7d9c3f7e1a04(
3246
3878
  scope: _constructs_77d1e7e8.Construct,
3247
3879
  id: builtins.str,