aws-cdk-lib 2.207.0__py3-none-any.whl → 2.209.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +31 -3
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.207.0.jsii.tgz → aws-cdk-lib@2.209.0.jsii.tgz} +0 -0
- aws_cdk/aws_aiops/__init__.py +16 -12
- aws_cdk/aws_amazonmq/__init__.py +8 -18
- aws_cdk/aws_appstream/__init__.py +36 -4
- aws_cdk/aws_bedrock/__init__.py +227 -102
- aws_cdk/aws_certificatemanager/__init__.py +45 -0
- aws_cdk/aws_cloudfront/__init__.py +12 -2
- aws_cdk/aws_connect/__init__.py +107 -3
- aws_cdk/aws_customerprofiles/__init__.py +27 -22
- aws_cdk/aws_docdb/__init__.py +5 -3
- aws_cdk/aws_ec2/__init__.py +58 -16
- aws_cdk/aws_ecs/__init__.py +1554 -78
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +27 -15
- aws_cdk/aws_events/__init__.py +142 -0
- aws_cdk/aws_gamelift/__init__.py +2 -2
- aws_cdk/aws_guardduty/__init__.py +86 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +377 -4
- aws_cdk/aws_lambda/__init__.py +76 -67
- aws_cdk/aws_logs/__init__.py +53 -4
- aws_cdk/aws_mediapackagev2/__init__.py +881 -0
- aws_cdk/aws_omics/__init__.py +13 -10
- aws_cdk/aws_quicksight/__init__.py +111 -4
- aws_cdk/aws_rds/__init__.py +214 -10
- aws_cdk/aws_route53/__init__.py +97 -41
- aws_cdk/aws_s3/__init__.py +775 -5
- aws_cdk/aws_s3express/__init__.py +61 -3
- aws_cdk/aws_s3tables/__init__.py +254 -0
- aws_cdk/aws_sagemaker/__init__.py +524 -137
- aws_cdk/aws_ssm/__init__.py +48 -0
- aws_cdk/aws_transfer/__init__.py +49 -0
- aws_cdk/aws_wisdom/__init__.py +1185 -100
- aws_cdk/cloud_assembly_schema/__init__.py +28 -2
- aws_cdk/custom_resources/__init__.py +1 -1
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/RECORD +41 -41
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.207.0.dist-info → aws_cdk_lib-2.209.0.dist-info}/top_level.txt +0 -0
|
@@ -70,8 +70,11 @@ from .._jsii import *
|
|
|
70
70
|
import constructs as _constructs_77d1e7e8
|
|
71
71
|
from .. import (
|
|
72
72
|
CfnResource as _CfnResource_9df397a6,
|
|
73
|
+
CfnTag as _CfnTag_f6864754,
|
|
73
74
|
IInspectable as _IInspectable_c2943556,
|
|
74
75
|
IResolvable as _IResolvable_da3f097b,
|
|
76
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
77
|
+
TagManager as _TagManager_0a598cb3,
|
|
75
78
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
76
79
|
)
|
|
77
80
|
|
|
@@ -969,7 +972,7 @@ class CfnBucketPolicyProps:
|
|
|
969
972
|
)
|
|
970
973
|
|
|
971
974
|
|
|
972
|
-
@jsii.implements(_IInspectable_c2943556)
|
|
975
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
973
976
|
class CfnDirectoryBucket(
|
|
974
977
|
_CfnResource_9df397a6,
|
|
975
978
|
metaclass=jsii.JSIIMeta,
|
|
@@ -1049,7 +1052,11 @@ class CfnDirectoryBucket(
|
|
|
1049
1052
|
object_size_less_than="objectSizeLessThan",
|
|
1050
1053
|
prefix="prefix"
|
|
1051
1054
|
)]
|
|
1052
|
-
)
|
|
1055
|
+
),
|
|
1056
|
+
tags=[CfnTag(
|
|
1057
|
+
key="key",
|
|
1058
|
+
value="value"
|
|
1059
|
+
)]
|
|
1053
1060
|
)
|
|
1054
1061
|
'''
|
|
1055
1062
|
|
|
@@ -1063,6 +1070,7 @@ class CfnDirectoryBucket(
|
|
|
1063
1070
|
bucket_encryption: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDirectoryBucket.BucketEncryptionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1064
1071
|
bucket_name: typing.Optional[builtins.str] = None,
|
|
1065
1072
|
lifecycle_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDirectoryBucket.LifecycleConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1073
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1066
1074
|
) -> None:
|
|
1067
1075
|
'''
|
|
1068
1076
|
:param scope: Scope in which this resource is defined.
|
|
@@ -1072,6 +1080,7 @@ class CfnDirectoryBucket(
|
|
|
1072
1080
|
:param bucket_encryption: Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see `Setting and monitoring default encryption for directory buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-bucket-encryption.html>`_ in the *Amazon S3 User Guide* .
|
|
1073
1081
|
:param bucket_name: A name for the bucket. The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Zone (Availability Zone or Local Zone). The bucket name must also follow the format ``*bucket_base_name* -- *zone_id* --x-s3`` (for example, ``*bucket_base_name* -- *usw2-az1* --x-s3`` ). If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. For information about bucket naming restrictions, see `Directory bucket naming rules <https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html>`_ in the *Amazon S3 User Guide* . .. epigraph:: If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
|
|
1074
1082
|
:param lifecycle_configuration: Container for lifecycle rules. You can add as many as 1000 rules. For more information see, `Creating and managing a lifecycle configuration for directory buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-lifecycle.html>`_ in the *Amazon S3 User Guide* .
|
|
1083
|
+
:param tags: An array of tags that you can apply to the S3 directory bucket. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access. For more information, see `Using tags with directory buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html>`_ .
|
|
1075
1084
|
'''
|
|
1076
1085
|
if __debug__:
|
|
1077
1086
|
type_hints = typing.get_type_hints(_typecheckingstub__ea5a1e5897b0467fb93393ad6ea2dbcd3916f27713079e8bef3badf71ce2bb20)
|
|
@@ -1083,6 +1092,7 @@ class CfnDirectoryBucket(
|
|
|
1083
1092
|
bucket_encryption=bucket_encryption,
|
|
1084
1093
|
bucket_name=bucket_name,
|
|
1085
1094
|
lifecycle_configuration=lifecycle_configuration,
|
|
1095
|
+
tags=tags,
|
|
1086
1096
|
)
|
|
1087
1097
|
|
|
1088
1098
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -1142,6 +1152,12 @@ class CfnDirectoryBucket(
|
|
|
1142
1152
|
'''
|
|
1143
1153
|
return typing.cast(builtins.str, jsii.get(self, "attrAvailabilityZoneName"))
|
|
1144
1154
|
|
|
1155
|
+
@builtins.property
|
|
1156
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
1157
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
1158
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
1159
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
1160
|
+
|
|
1145
1161
|
@builtins.property
|
|
1146
1162
|
@jsii.member(jsii_name="cfnProperties")
|
|
1147
1163
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
@@ -1225,6 +1241,19 @@ class CfnDirectoryBucket(
|
|
|
1225
1241
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1226
1242
|
jsii.set(self, "lifecycleConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
1227
1243
|
|
|
1244
|
+
@builtins.property
|
|
1245
|
+
@jsii.member(jsii_name="tags")
|
|
1246
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1247
|
+
'''An array of tags that you can apply to the S3 directory bucket.'''
|
|
1248
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
1249
|
+
|
|
1250
|
+
@tags.setter
|
|
1251
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
1252
|
+
if __debug__:
|
|
1253
|
+
type_hints = typing.get_type_hints(_typecheckingstub__33beef481039e735a6eece9cb8670801f4ba6324284d9ed7c5f1e794009634d3)
|
|
1254
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1255
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
1256
|
+
|
|
1228
1257
|
@jsii.data_type(
|
|
1229
1258
|
jsii_type="aws-cdk-lib.aws_s3express.CfnDirectoryBucket.AbortIncompleteMultipartUploadProperty",
|
|
1230
1259
|
jsii_struct_bases=[],
|
|
@@ -1793,6 +1822,7 @@ class CfnDirectoryBucket(
|
|
|
1793
1822
|
"bucket_encryption": "bucketEncryption",
|
|
1794
1823
|
"bucket_name": "bucketName",
|
|
1795
1824
|
"lifecycle_configuration": "lifecycleConfiguration",
|
|
1825
|
+
"tags": "tags",
|
|
1796
1826
|
},
|
|
1797
1827
|
)
|
|
1798
1828
|
class CfnDirectoryBucketProps:
|
|
@@ -1804,6 +1834,7 @@ class CfnDirectoryBucketProps:
|
|
|
1804
1834
|
bucket_encryption: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDirectoryBucket.BucketEncryptionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1805
1835
|
bucket_name: typing.Optional[builtins.str] = None,
|
|
1806
1836
|
lifecycle_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDirectoryBucket.LifecycleConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1837
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1807
1838
|
) -> None:
|
|
1808
1839
|
'''Properties for defining a ``CfnDirectoryBucket``.
|
|
1809
1840
|
|
|
@@ -1812,6 +1843,7 @@ class CfnDirectoryBucketProps:
|
|
|
1812
1843
|
:param bucket_encryption: Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). For information about default encryption for directory buckets, see `Setting and monitoring default encryption for directory buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-bucket-encryption.html>`_ in the *Amazon S3 User Guide* .
|
|
1813
1844
|
:param bucket_name: A name for the bucket. The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Zone (Availability Zone or Local Zone). The bucket name must also follow the format ``*bucket_base_name* -- *zone_id* --x-s3`` (for example, ``*bucket_base_name* -- *usw2-az1* --x-s3`` ). If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. For information about bucket naming restrictions, see `Directory bucket naming rules <https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html>`_ in the *Amazon S3 User Guide* . .. epigraph:: If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
|
|
1814
1845
|
:param lifecycle_configuration: Container for lifecycle rules. You can add as many as 1000 rules. For more information see, `Creating and managing a lifecycle configuration for directory buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-lifecycle.html>`_ in the *Amazon S3 User Guide* .
|
|
1846
|
+
:param tags: An array of tags that you can apply to the S3 directory bucket. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access. For more information, see `Using tags with directory buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html>`_ .
|
|
1815
1847
|
|
|
1816
1848
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3express-directorybucket.html
|
|
1817
1849
|
:exampleMetadata: fixture=_generated
|
|
@@ -1853,7 +1885,11 @@ class CfnDirectoryBucketProps:
|
|
|
1853
1885
|
object_size_less_than="objectSizeLessThan",
|
|
1854
1886
|
prefix="prefix"
|
|
1855
1887
|
)]
|
|
1856
|
-
)
|
|
1888
|
+
),
|
|
1889
|
+
tags=[CfnTag(
|
|
1890
|
+
key="key",
|
|
1891
|
+
value="value"
|
|
1892
|
+
)]
|
|
1857
1893
|
)
|
|
1858
1894
|
'''
|
|
1859
1895
|
if __debug__:
|
|
@@ -1863,6 +1899,7 @@ class CfnDirectoryBucketProps:
|
|
|
1863
1899
|
check_type(argname="argument bucket_encryption", value=bucket_encryption, expected_type=type_hints["bucket_encryption"])
|
|
1864
1900
|
check_type(argname="argument bucket_name", value=bucket_name, expected_type=type_hints["bucket_name"])
|
|
1865
1901
|
check_type(argname="argument lifecycle_configuration", value=lifecycle_configuration, expected_type=type_hints["lifecycle_configuration"])
|
|
1902
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1866
1903
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1867
1904
|
"data_redundancy": data_redundancy,
|
|
1868
1905
|
"location_name": location_name,
|
|
@@ -1873,6 +1910,8 @@ class CfnDirectoryBucketProps:
|
|
|
1873
1910
|
self._values["bucket_name"] = bucket_name
|
|
1874
1911
|
if lifecycle_configuration is not None:
|
|
1875
1912
|
self._values["lifecycle_configuration"] = lifecycle_configuration
|
|
1913
|
+
if tags is not None:
|
|
1914
|
+
self._values["tags"] = tags
|
|
1876
1915
|
|
|
1877
1916
|
@builtins.property
|
|
1878
1917
|
def data_redundancy(self) -> builtins.str:
|
|
@@ -1936,6 +1975,17 @@ class CfnDirectoryBucketProps:
|
|
|
1936
1975
|
result = self._values.get("lifecycle_configuration")
|
|
1937
1976
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDirectoryBucket.LifecycleConfigurationProperty]], result)
|
|
1938
1977
|
|
|
1978
|
+
@builtins.property
|
|
1979
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1980
|
+
'''An array of tags that you can apply to the S3 directory bucket.
|
|
1981
|
+
|
|
1982
|
+
Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access. For more information, see `Using tags with directory buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html>`_ .
|
|
1983
|
+
|
|
1984
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3express-directorybucket.html#cfn-s3express-directorybucket-tags
|
|
1985
|
+
'''
|
|
1986
|
+
result = self._values.get("tags")
|
|
1987
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
1988
|
+
|
|
1939
1989
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1940
1990
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1941
1991
|
|
|
@@ -2117,6 +2167,7 @@ def _typecheckingstub__ea5a1e5897b0467fb93393ad6ea2dbcd3916f27713079e8bef3badf71
|
|
|
2117
2167
|
bucket_encryption: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDirectoryBucket.BucketEncryptionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2118
2168
|
bucket_name: typing.Optional[builtins.str] = None,
|
|
2119
2169
|
lifecycle_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDirectoryBucket.LifecycleConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2170
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2120
2171
|
) -> None:
|
|
2121
2172
|
"""Type checking stubs"""
|
|
2122
2173
|
pass
|
|
@@ -2163,6 +2214,12 @@ def _typecheckingstub__ddfd3872142b33ae9fa409c0018df1c791508213de3582b65e63e55af
|
|
|
2163
2214
|
"""Type checking stubs"""
|
|
2164
2215
|
pass
|
|
2165
2216
|
|
|
2217
|
+
def _typecheckingstub__33beef481039e735a6eece9cb8670801f4ba6324284d9ed7c5f1e794009634d3(
|
|
2218
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
2219
|
+
) -> None:
|
|
2220
|
+
"""Type checking stubs"""
|
|
2221
|
+
pass
|
|
2222
|
+
|
|
2166
2223
|
def _typecheckingstub__94d67335bbcb78d0b027e59764707d68d59cd3646befac6651614e419d8af6f4(
|
|
2167
2224
|
*,
|
|
2168
2225
|
days_after_initiation: jsii.Number,
|
|
@@ -2220,6 +2277,7 @@ def _typecheckingstub__997b2abc28c849393aef2f13f43682b271277998e07114f1b22407894
|
|
|
2220
2277
|
bucket_encryption: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDirectoryBucket.BucketEncryptionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2221
2278
|
bucket_name: typing.Optional[builtins.str] = None,
|
|
2222
2279
|
lifecycle_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDirectoryBucket.LifecycleConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2280
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2223
2281
|
) -> None:
|
|
2224
2282
|
"""Type checking stubs"""
|
|
2225
2283
|
pass
|
aws_cdk/aws_s3tables/__init__.py
CHANGED
|
@@ -1562,6 +1562,216 @@ class CfnTableBucketProps:
|
|
|
1562
1562
|
)
|
|
1563
1563
|
|
|
1564
1564
|
|
|
1565
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
1566
|
+
class CfnTablePolicy(
|
|
1567
|
+
_CfnResource_9df397a6,
|
|
1568
|
+
metaclass=jsii.JSIIMeta,
|
|
1569
|
+
jsii_type="aws-cdk-lib.aws_s3tables.CfnTablePolicy",
|
|
1570
|
+
):
|
|
1571
|
+
'''Creates a new maintenance configuration or replaces an existing table policy for a table.
|
|
1572
|
+
|
|
1573
|
+
For more information, see `Adding a table policy <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-table-policy.html#table-policy-add>`_ in the *Amazon Simple Storage Service User Guide* .
|
|
1574
|
+
|
|
1575
|
+
- **Permissions** - You must have the ``s3tables:PutTablePolicy`` permission to use this operation.
|
|
1576
|
+
|
|
1577
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3tables-tablepolicy.html
|
|
1578
|
+
:cloudformationResource: AWS::S3Tables::TablePolicy
|
|
1579
|
+
:exampleMetadata: fixture=_generated
|
|
1580
|
+
|
|
1581
|
+
Example::
|
|
1582
|
+
|
|
1583
|
+
# The code below shows an example of how to instantiate this type.
|
|
1584
|
+
# The values are placeholders you should change.
|
|
1585
|
+
from aws_cdk import aws_s3tables as s3tables
|
|
1586
|
+
|
|
1587
|
+
# resource_policy: Any
|
|
1588
|
+
|
|
1589
|
+
cfn_table_policy = s3tables.CfnTablePolicy(self, "MyCfnTablePolicy",
|
|
1590
|
+
resource_policy=resource_policy,
|
|
1591
|
+
table_arn="tableArn"
|
|
1592
|
+
)
|
|
1593
|
+
'''
|
|
1594
|
+
|
|
1595
|
+
def __init__(
|
|
1596
|
+
self,
|
|
1597
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1598
|
+
id: builtins.str,
|
|
1599
|
+
*,
|
|
1600
|
+
resource_policy: typing.Any,
|
|
1601
|
+
table_arn: builtins.str,
|
|
1602
|
+
) -> None:
|
|
1603
|
+
'''
|
|
1604
|
+
:param scope: Scope in which this resource is defined.
|
|
1605
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1606
|
+
:param resource_policy:
|
|
1607
|
+
:param table_arn: The Amazon Resource Name (ARN) of the specified table.
|
|
1608
|
+
'''
|
|
1609
|
+
if __debug__:
|
|
1610
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a411c2784ec9f97ff20ac6b524d48b9d66affbbc6dde8cf88f11829983b62656)
|
|
1611
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1612
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1613
|
+
props = CfnTablePolicyProps(
|
|
1614
|
+
resource_policy=resource_policy, table_arn=table_arn
|
|
1615
|
+
)
|
|
1616
|
+
|
|
1617
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1618
|
+
|
|
1619
|
+
@jsii.member(jsii_name="inspect")
|
|
1620
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1621
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1622
|
+
|
|
1623
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1624
|
+
'''
|
|
1625
|
+
if __debug__:
|
|
1626
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f0a3947da1bdccb78be78c5e73ba6a761b9581cfdb6fde618a0c2e2cc24e62e6)
|
|
1627
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1628
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1629
|
+
|
|
1630
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1631
|
+
def _render_properties(
|
|
1632
|
+
self,
|
|
1633
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1634
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1635
|
+
'''
|
|
1636
|
+
:param props: -
|
|
1637
|
+
'''
|
|
1638
|
+
if __debug__:
|
|
1639
|
+
type_hints = typing.get_type_hints(_typecheckingstub__79081d3da496e49f8054cf224d3c19c14084df9686495715d7c13deb2b01f4e5)
|
|
1640
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1641
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1642
|
+
|
|
1643
|
+
@jsii.python.classproperty
|
|
1644
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1645
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1646
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1647
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1648
|
+
|
|
1649
|
+
@builtins.property
|
|
1650
|
+
@jsii.member(jsii_name="attrNamespace")
|
|
1651
|
+
def attr_namespace(self) -> builtins.str:
|
|
1652
|
+
'''The namespace that the table belongs to.
|
|
1653
|
+
|
|
1654
|
+
:cloudformationAttribute: Namespace
|
|
1655
|
+
'''
|
|
1656
|
+
return typing.cast(builtins.str, jsii.get(self, "attrNamespace"))
|
|
1657
|
+
|
|
1658
|
+
@builtins.property
|
|
1659
|
+
@jsii.member(jsii_name="attrTableBucketArn")
|
|
1660
|
+
def attr_table_bucket_arn(self) -> builtins.str:
|
|
1661
|
+
'''The Amazon Resource Name (ARN) of the specified table bucket.
|
|
1662
|
+
|
|
1663
|
+
:cloudformationAttribute: TableBucketARN
|
|
1664
|
+
'''
|
|
1665
|
+
return typing.cast(builtins.str, jsii.get(self, "attrTableBucketArn"))
|
|
1666
|
+
|
|
1667
|
+
@builtins.property
|
|
1668
|
+
@jsii.member(jsii_name="attrTableName")
|
|
1669
|
+
def attr_table_name(self) -> builtins.str:
|
|
1670
|
+
'''The name for the table.
|
|
1671
|
+
|
|
1672
|
+
:cloudformationAttribute: TableName
|
|
1673
|
+
'''
|
|
1674
|
+
return typing.cast(builtins.str, jsii.get(self, "attrTableName"))
|
|
1675
|
+
|
|
1676
|
+
@builtins.property
|
|
1677
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1678
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1679
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1680
|
+
|
|
1681
|
+
@builtins.property
|
|
1682
|
+
@jsii.member(jsii_name="resourcePolicy")
|
|
1683
|
+
def resource_policy(self) -> typing.Any:
|
|
1684
|
+
return typing.cast(typing.Any, jsii.get(self, "resourcePolicy"))
|
|
1685
|
+
|
|
1686
|
+
@resource_policy.setter
|
|
1687
|
+
def resource_policy(self, value: typing.Any) -> None:
|
|
1688
|
+
if __debug__:
|
|
1689
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e5ff64cf2723b6c321a7dae00772c6657abff46b53f326cb7ef2461494ecaead)
|
|
1690
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1691
|
+
jsii.set(self, "resourcePolicy", value) # pyright: ignore[reportArgumentType]
|
|
1692
|
+
|
|
1693
|
+
@builtins.property
|
|
1694
|
+
@jsii.member(jsii_name="tableArn")
|
|
1695
|
+
def table_arn(self) -> builtins.str:
|
|
1696
|
+
'''The Amazon Resource Name (ARN) of the specified table.'''
|
|
1697
|
+
return typing.cast(builtins.str, jsii.get(self, "tableArn"))
|
|
1698
|
+
|
|
1699
|
+
@table_arn.setter
|
|
1700
|
+
def table_arn(self, value: builtins.str) -> None:
|
|
1701
|
+
if __debug__:
|
|
1702
|
+
type_hints = typing.get_type_hints(_typecheckingstub__87d38159ba1fcdcd6a78891e84e79fef3b2492c5066559f8f91cd5cc6191efe4)
|
|
1703
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1704
|
+
jsii.set(self, "tableArn", value) # pyright: ignore[reportArgumentType]
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
@jsii.data_type(
|
|
1708
|
+
jsii_type="aws-cdk-lib.aws_s3tables.CfnTablePolicyProps",
|
|
1709
|
+
jsii_struct_bases=[],
|
|
1710
|
+
name_mapping={"resource_policy": "resourcePolicy", "table_arn": "tableArn"},
|
|
1711
|
+
)
|
|
1712
|
+
class CfnTablePolicyProps:
|
|
1713
|
+
def __init__(self, *, resource_policy: typing.Any, table_arn: builtins.str) -> None:
|
|
1714
|
+
'''Properties for defining a ``CfnTablePolicy``.
|
|
1715
|
+
|
|
1716
|
+
:param resource_policy:
|
|
1717
|
+
:param table_arn: The Amazon Resource Name (ARN) of the specified table.
|
|
1718
|
+
|
|
1719
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3tables-tablepolicy.html
|
|
1720
|
+
:exampleMetadata: fixture=_generated
|
|
1721
|
+
|
|
1722
|
+
Example::
|
|
1723
|
+
|
|
1724
|
+
# The code below shows an example of how to instantiate this type.
|
|
1725
|
+
# The values are placeholders you should change.
|
|
1726
|
+
from aws_cdk import aws_s3tables as s3tables
|
|
1727
|
+
|
|
1728
|
+
# resource_policy: Any
|
|
1729
|
+
|
|
1730
|
+
cfn_table_policy_props = s3tables.CfnTablePolicyProps(
|
|
1731
|
+
resource_policy=resource_policy,
|
|
1732
|
+
table_arn="tableArn"
|
|
1733
|
+
)
|
|
1734
|
+
'''
|
|
1735
|
+
if __debug__:
|
|
1736
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9e4efe8d2b5f3164478497385240c6eecce420e07f634572b7fac929a357ad5f)
|
|
1737
|
+
check_type(argname="argument resource_policy", value=resource_policy, expected_type=type_hints["resource_policy"])
|
|
1738
|
+
check_type(argname="argument table_arn", value=table_arn, expected_type=type_hints["table_arn"])
|
|
1739
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1740
|
+
"resource_policy": resource_policy,
|
|
1741
|
+
"table_arn": table_arn,
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
@builtins.property
|
|
1745
|
+
def resource_policy(self) -> typing.Any:
|
|
1746
|
+
'''
|
|
1747
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3tables-tablepolicy.html#cfn-s3tables-tablepolicy-resourcepolicy
|
|
1748
|
+
'''
|
|
1749
|
+
result = self._values.get("resource_policy")
|
|
1750
|
+
assert result is not None, "Required property 'resource_policy' is missing"
|
|
1751
|
+
return typing.cast(typing.Any, result)
|
|
1752
|
+
|
|
1753
|
+
@builtins.property
|
|
1754
|
+
def table_arn(self) -> builtins.str:
|
|
1755
|
+
'''The Amazon Resource Name (ARN) of the specified table.
|
|
1756
|
+
|
|
1757
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3tables-tablepolicy.html#cfn-s3tables-tablepolicy-tablearn
|
|
1758
|
+
'''
|
|
1759
|
+
result = self._values.get("table_arn")
|
|
1760
|
+
assert result is not None, "Required property 'table_arn' is missing"
|
|
1761
|
+
return typing.cast(builtins.str, result)
|
|
1762
|
+
|
|
1763
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1764
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1765
|
+
|
|
1766
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1767
|
+
return not (rhs == self)
|
|
1768
|
+
|
|
1769
|
+
def __repr__(self) -> str:
|
|
1770
|
+
return "CfnTablePolicyProps(%s)" % ", ".join(
|
|
1771
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1772
|
+
)
|
|
1773
|
+
|
|
1774
|
+
|
|
1565
1775
|
@jsii.data_type(
|
|
1566
1776
|
jsii_type="aws-cdk-lib.aws_s3tables.CfnTableProps",
|
|
1567
1777
|
jsii_struct_bases=[],
|
|
@@ -1772,6 +1982,8 @@ __all__ = [
|
|
|
1772
1982
|
"CfnTableBucketPolicy",
|
|
1773
1983
|
"CfnTableBucketPolicyProps",
|
|
1774
1984
|
"CfnTableBucketProps",
|
|
1985
|
+
"CfnTablePolicy",
|
|
1986
|
+
"CfnTablePolicyProps",
|
|
1775
1987
|
"CfnTableProps",
|
|
1776
1988
|
]
|
|
1777
1989
|
|
|
@@ -2044,6 +2256,48 @@ def _typecheckingstub__6fb9342a13c0e9f7b21679814e793d7ccc0964ccfe53bc5e0916676b6
|
|
|
2044
2256
|
"""Type checking stubs"""
|
|
2045
2257
|
pass
|
|
2046
2258
|
|
|
2259
|
+
def _typecheckingstub__a411c2784ec9f97ff20ac6b524d48b9d66affbbc6dde8cf88f11829983b62656(
|
|
2260
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2261
|
+
id: builtins.str,
|
|
2262
|
+
*,
|
|
2263
|
+
resource_policy: typing.Any,
|
|
2264
|
+
table_arn: builtins.str,
|
|
2265
|
+
) -> None:
|
|
2266
|
+
"""Type checking stubs"""
|
|
2267
|
+
pass
|
|
2268
|
+
|
|
2269
|
+
def _typecheckingstub__f0a3947da1bdccb78be78c5e73ba6a761b9581cfdb6fde618a0c2e2cc24e62e6(
|
|
2270
|
+
inspector: _TreeInspector_488e0dd5,
|
|
2271
|
+
) -> None:
|
|
2272
|
+
"""Type checking stubs"""
|
|
2273
|
+
pass
|
|
2274
|
+
|
|
2275
|
+
def _typecheckingstub__79081d3da496e49f8054cf224d3c19c14084df9686495715d7c13deb2b01f4e5(
|
|
2276
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2277
|
+
) -> None:
|
|
2278
|
+
"""Type checking stubs"""
|
|
2279
|
+
pass
|
|
2280
|
+
|
|
2281
|
+
def _typecheckingstub__e5ff64cf2723b6c321a7dae00772c6657abff46b53f326cb7ef2461494ecaead(
|
|
2282
|
+
value: typing.Any,
|
|
2283
|
+
) -> None:
|
|
2284
|
+
"""Type checking stubs"""
|
|
2285
|
+
pass
|
|
2286
|
+
|
|
2287
|
+
def _typecheckingstub__87d38159ba1fcdcd6a78891e84e79fef3b2492c5066559f8f91cd5cc6191efe4(
|
|
2288
|
+
value: builtins.str,
|
|
2289
|
+
) -> None:
|
|
2290
|
+
"""Type checking stubs"""
|
|
2291
|
+
pass
|
|
2292
|
+
|
|
2293
|
+
def _typecheckingstub__9e4efe8d2b5f3164478497385240c6eecce420e07f634572b7fac929a357ad5f(
|
|
2294
|
+
*,
|
|
2295
|
+
resource_policy: typing.Any,
|
|
2296
|
+
table_arn: builtins.str,
|
|
2297
|
+
) -> None:
|
|
2298
|
+
"""Type checking stubs"""
|
|
2299
|
+
pass
|
|
2300
|
+
|
|
2047
2301
|
def _typecheckingstub__6346a05fb3e021dceca566705037999fa06de23c2e117b37dcdd3e46838b7bc6(
|
|
2048
2302
|
*,
|
|
2049
2303
|
namespace: builtins.str,
|