aws-cdk-lib 2.167.2__py3-none-any.whl → 2.169.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 +2083 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.167.2.jsii.tgz → aws-cdk-lib@2.169.0.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +244 -13
- aws_cdk/aws_applicationautoscaling/__init__.py +1691 -95
- aws_cdk/aws_applicationinsights/__init__.py +41 -0
- aws_cdk/aws_applicationsignals/__init__.py +124 -0
- aws_cdk/aws_autoscaling/__init__.py +743 -7
- aws_cdk/aws_batch/__init__.py +202 -5
- aws_cdk/aws_bedrock/__init__.py +12 -12
- aws_cdk/aws_cleanrooms/__init__.py +17 -8
- aws_cdk/aws_cloudformation/__init__.py +2571 -492
- aws_cdk/aws_cloudfront/__init__.py +281 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +714 -132
- aws_cdk/aws_cloudtrail/__init__.py +52 -14
- aws_cdk/aws_codebuild/__init__.py +670 -4
- aws_cdk/aws_connect/__init__.py +378 -0
- aws_cdk/aws_connectcampaignsv2/__init__.py +3376 -0
- aws_cdk/aws_customerprofiles/__init__.py +44 -0
- aws_cdk/aws_deadline/__init__.py +299 -6
- aws_cdk/aws_dynamodb/__init__.py +359 -16
- aws_cdk/aws_ec2/__init__.py +19 -6
- aws_cdk/aws_ecs/__init__.py +231 -12
- aws_cdk/aws_efs/__init__.py +61 -4
- aws_cdk/aws_eks/__init__.py +116 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +160 -11
- aws_cdk/aws_fis/__init__.py +495 -0
- aws_cdk/aws_gamelift/__init__.py +3204 -1104
- aws_cdk/aws_iot/__init__.py +209 -0
- aws_cdk/aws_iotfleetwise/__init__.py +550 -0
- aws_cdk/aws_iotsitewise/__init__.py +6 -3
- aws_cdk/aws_ivs/__init__.py +458 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +756 -8
- aws_cdk/aws_lambda/__init__.py +634 -259
- aws_cdk/aws_lambda_destinations/__init__.py +73 -0
- aws_cdk/aws_lambda_event_sources/__init__.py +102 -2
- aws_cdk/aws_location/__init__.py +18 -18
- aws_cdk/aws_mediastore/__init__.py +22 -10
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_quicksight/__init__.py +35 -19
- aws_cdk/aws_rbin/__init__.py +902 -0
- aws_cdk/aws_rds/__init__.py +166 -3
- aws_cdk/aws_route53resolver/__init__.py +76 -19
- aws_cdk/aws_sagemaker/__init__.py +32 -0
- aws_cdk/aws_securityhub/__init__.py +11 -14
- aws_cdk/aws_ses/__init__.py +58 -5
- aws_cdk/aws_sns/__init__.py +593 -8
- aws_cdk/aws_sns_subscriptions/__init__.py +68 -22
- aws_cdk/aws_stepfunctions_tasks/__init__.py +1601 -8
- aws_cdk/aws_synthetics/__init__.py +46 -0
- aws_cdk/aws_transfer/__init__.py +0 -8
- aws_cdk/aws_vpclattice/__init__.py +157 -2
- aws_cdk/aws_wisdom/__init__.py +113 -69
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/RECORD +60 -58
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,902 @@
|
|
|
1
|
+
r'''
|
|
2
|
+
# AWS::Rbin Construct Library
|
|
3
|
+
|
|
4
|
+
<!--BEGIN STABILITY BANNER-->---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
> All classes with the `Cfn` prefix in this module ([CFN Resources](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) are always stable and safe to use.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
<!--END STABILITY BANNER-->
|
|
13
|
+
|
|
14
|
+
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
import aws_cdk.aws_rbin as rbin
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
21
|
+
|
|
22
|
+
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
|
|
23
|
+
|
|
24
|
+
* Search [Construct Hub for Rbin construct libraries](https://constructs.dev/search?q=rbin)
|
|
25
|
+
* Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::Rbin resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Rbin.html) directly.
|
|
26
|
+
|
|
27
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
28
|
+
|
|
29
|
+
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
|
|
30
|
+
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
|
|
31
|
+
|
|
32
|
+
For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::Rbin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Rbin.html).
|
|
33
|
+
|
|
34
|
+
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
|
|
35
|
+
|
|
36
|
+
<!--END CFNONLY DISCLAIMER-->
|
|
37
|
+
'''
|
|
38
|
+
from pkgutil import extend_path
|
|
39
|
+
__path__ = extend_path(__path__, __name__)
|
|
40
|
+
|
|
41
|
+
import abc
|
|
42
|
+
import builtins
|
|
43
|
+
import datetime
|
|
44
|
+
import enum
|
|
45
|
+
import typing
|
|
46
|
+
|
|
47
|
+
import jsii
|
|
48
|
+
import publication
|
|
49
|
+
import typing_extensions
|
|
50
|
+
|
|
51
|
+
import typeguard
|
|
52
|
+
from importlib.metadata import version as _metadata_package_version
|
|
53
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
54
|
+
|
|
55
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
56
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
57
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
58
|
+
else:
|
|
59
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
60
|
+
pass
|
|
61
|
+
else:
|
|
62
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
63
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
64
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
65
|
+
else:
|
|
66
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
67
|
+
|
|
68
|
+
from .._jsii import *
|
|
69
|
+
|
|
70
|
+
import constructs as _constructs_77d1e7e8
|
|
71
|
+
from .. import (
|
|
72
|
+
CfnResource as _CfnResource_9df397a6,
|
|
73
|
+
CfnTag as _CfnTag_f6864754,
|
|
74
|
+
IInspectable as _IInspectable_c2943556,
|
|
75
|
+
IResolvable as _IResolvable_da3f097b,
|
|
76
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
77
|
+
TagManager as _TagManager_0a598cb3,
|
|
78
|
+
TreeInspector as _TreeInspector_488e0dd5,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
83
|
+
class CfnRule(
|
|
84
|
+
_CfnResource_9df397a6,
|
|
85
|
+
metaclass=jsii.JSIIMeta,
|
|
86
|
+
jsii_type="aws-cdk-lib.aws_rbin.CfnRule",
|
|
87
|
+
):
|
|
88
|
+
'''Resource Type definition for AWS::Rbin::Rule.
|
|
89
|
+
|
|
90
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html
|
|
91
|
+
:cloudformationResource: AWS::Rbin::Rule
|
|
92
|
+
:exampleMetadata: fixture=_generated
|
|
93
|
+
|
|
94
|
+
Example::
|
|
95
|
+
|
|
96
|
+
# The code below shows an example of how to instantiate this type.
|
|
97
|
+
# The values are placeholders you should change.
|
|
98
|
+
from aws_cdk import aws_rbin as rbin
|
|
99
|
+
|
|
100
|
+
cfn_rule = rbin.CfnRule(self, "MyCfnRule",
|
|
101
|
+
resource_type="resourceType",
|
|
102
|
+
retention_period=rbin.CfnRule.RetentionPeriodProperty(
|
|
103
|
+
retention_period_unit="retentionPeriodUnit",
|
|
104
|
+
retention_period_value=123
|
|
105
|
+
),
|
|
106
|
+
|
|
107
|
+
# the properties below are optional
|
|
108
|
+
description="description",
|
|
109
|
+
exclude_resource_tags=[rbin.CfnRule.ResourceTagProperty(
|
|
110
|
+
resource_tag_key="resourceTagKey",
|
|
111
|
+
resource_tag_value="resourceTagValue"
|
|
112
|
+
)],
|
|
113
|
+
lock_configuration=rbin.CfnRule.UnlockDelayProperty(
|
|
114
|
+
unlock_delay_unit="unlockDelayUnit",
|
|
115
|
+
unlock_delay_value=123
|
|
116
|
+
),
|
|
117
|
+
resource_tags=[rbin.CfnRule.ResourceTagProperty(
|
|
118
|
+
resource_tag_key="resourceTagKey",
|
|
119
|
+
resource_tag_value="resourceTagValue"
|
|
120
|
+
)],
|
|
121
|
+
status="status",
|
|
122
|
+
tags=[CfnTag(
|
|
123
|
+
key="key",
|
|
124
|
+
value="value"
|
|
125
|
+
)]
|
|
126
|
+
)
|
|
127
|
+
'''
|
|
128
|
+
|
|
129
|
+
def __init__(
|
|
130
|
+
self,
|
|
131
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
132
|
+
id: builtins.str,
|
|
133
|
+
*,
|
|
134
|
+
resource_type: builtins.str,
|
|
135
|
+
retention_period: typing.Union[_IResolvable_da3f097b, typing.Union["CfnRule.RetentionPeriodProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
136
|
+
description: typing.Optional[builtins.str] = None,
|
|
137
|
+
exclude_resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRule.ResourceTagProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
138
|
+
lock_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRule.UnlockDelayProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
139
|
+
resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRule.ResourceTagProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
140
|
+
status: typing.Optional[builtins.str] = None,
|
|
141
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
142
|
+
) -> None:
|
|
143
|
+
'''
|
|
144
|
+
:param scope: Scope in which this resource is defined.
|
|
145
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
146
|
+
:param resource_type: The resource type retained by the retention rule.
|
|
147
|
+
:param retention_period: The retention period of the rule.
|
|
148
|
+
:param description: The description of the retention rule.
|
|
149
|
+
:param exclude_resource_tags: Information about the exclude resource tags used to identify resources that are excluded by the retention rule.
|
|
150
|
+
:param lock_configuration:
|
|
151
|
+
:param resource_tags: Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
152
|
+
:param status: The state of the retention rule. Only retention rules that are in the available state retain resources.
|
|
153
|
+
:param tags: Information about the tags assigned to the retention rule.
|
|
154
|
+
'''
|
|
155
|
+
if __debug__:
|
|
156
|
+
type_hints = typing.get_type_hints(_typecheckingstub__38111a34066818ca2f172524180ec7dec02ce564c681ac0c87097b02350ebe17)
|
|
157
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
158
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
159
|
+
props = CfnRuleProps(
|
|
160
|
+
resource_type=resource_type,
|
|
161
|
+
retention_period=retention_period,
|
|
162
|
+
description=description,
|
|
163
|
+
exclude_resource_tags=exclude_resource_tags,
|
|
164
|
+
lock_configuration=lock_configuration,
|
|
165
|
+
resource_tags=resource_tags,
|
|
166
|
+
status=status,
|
|
167
|
+
tags=tags,
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
171
|
+
|
|
172
|
+
@jsii.member(jsii_name="inspect")
|
|
173
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
174
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
175
|
+
|
|
176
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
177
|
+
'''
|
|
178
|
+
if __debug__:
|
|
179
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a5e2d558e79cd4c1853664243affb2788ae164a541fe9173013893487ad12468)
|
|
180
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
181
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
182
|
+
|
|
183
|
+
@jsii.member(jsii_name="renderProperties")
|
|
184
|
+
def _render_properties(
|
|
185
|
+
self,
|
|
186
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
187
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
188
|
+
'''
|
|
189
|
+
:param props: -
|
|
190
|
+
'''
|
|
191
|
+
if __debug__:
|
|
192
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6f8034d4fc6a3ab8d042623ec8857f056b79c1bd97f0d82b66729845c9f14fa5)
|
|
193
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
194
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
195
|
+
|
|
196
|
+
@jsii.python.classproperty
|
|
197
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
198
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
199
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
200
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
201
|
+
|
|
202
|
+
@builtins.property
|
|
203
|
+
@jsii.member(jsii_name="attrArn")
|
|
204
|
+
def attr_arn(self) -> builtins.str:
|
|
205
|
+
'''Rule Arn is unique for each rule.
|
|
206
|
+
|
|
207
|
+
:cloudformationAttribute: Arn
|
|
208
|
+
'''
|
|
209
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
210
|
+
|
|
211
|
+
@builtins.property
|
|
212
|
+
@jsii.member(jsii_name="attrIdentifier")
|
|
213
|
+
def attr_identifier(self) -> builtins.str:
|
|
214
|
+
'''The unique ID of the retention rule.
|
|
215
|
+
|
|
216
|
+
:cloudformationAttribute: Identifier
|
|
217
|
+
'''
|
|
218
|
+
return typing.cast(builtins.str, jsii.get(self, "attrIdentifier"))
|
|
219
|
+
|
|
220
|
+
@builtins.property
|
|
221
|
+
@jsii.member(jsii_name="attrLockState")
|
|
222
|
+
def attr_lock_state(self) -> builtins.str:
|
|
223
|
+
'''The lock state for the retention rule.
|
|
224
|
+
|
|
225
|
+
:cloudformationAttribute: LockState
|
|
226
|
+
'''
|
|
227
|
+
return typing.cast(builtins.str, jsii.get(self, "attrLockState"))
|
|
228
|
+
|
|
229
|
+
@builtins.property
|
|
230
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
231
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
232
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
233
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
234
|
+
|
|
235
|
+
@builtins.property
|
|
236
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
237
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
238
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
239
|
+
|
|
240
|
+
@builtins.property
|
|
241
|
+
@jsii.member(jsii_name="resourceType")
|
|
242
|
+
def resource_type(self) -> builtins.str:
|
|
243
|
+
'''The resource type retained by the retention rule.'''
|
|
244
|
+
return typing.cast(builtins.str, jsii.get(self, "resourceType"))
|
|
245
|
+
|
|
246
|
+
@resource_type.setter
|
|
247
|
+
def resource_type(self, value: builtins.str) -> None:
|
|
248
|
+
if __debug__:
|
|
249
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5c74a6102cda767f81d08a2ce4a9f380c01bef76688ed3f2426a6abc2f6878bc)
|
|
250
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
251
|
+
jsii.set(self, "resourceType", value) # pyright: ignore[reportArgumentType]
|
|
252
|
+
|
|
253
|
+
@builtins.property
|
|
254
|
+
@jsii.member(jsii_name="retentionPeriod")
|
|
255
|
+
def retention_period(
|
|
256
|
+
self,
|
|
257
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnRule.RetentionPeriodProperty"]:
|
|
258
|
+
'''The retention period of the rule.'''
|
|
259
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnRule.RetentionPeriodProperty"], jsii.get(self, "retentionPeriod"))
|
|
260
|
+
|
|
261
|
+
@retention_period.setter
|
|
262
|
+
def retention_period(
|
|
263
|
+
self,
|
|
264
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnRule.RetentionPeriodProperty"],
|
|
265
|
+
) -> None:
|
|
266
|
+
if __debug__:
|
|
267
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d0d27934aff5d763d4a0cff90f748b18d817167613cec2de784a19e0980a2fe4)
|
|
268
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
269
|
+
jsii.set(self, "retentionPeriod", value) # pyright: ignore[reportArgumentType]
|
|
270
|
+
|
|
271
|
+
@builtins.property
|
|
272
|
+
@jsii.member(jsii_name="description")
|
|
273
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
274
|
+
'''The description of the retention rule.'''
|
|
275
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
276
|
+
|
|
277
|
+
@description.setter
|
|
278
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
279
|
+
if __debug__:
|
|
280
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d3d64ebf98762cb6f5e840690eeebd382523d8cea931da2c8618a90f770698c9)
|
|
281
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
282
|
+
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
283
|
+
|
|
284
|
+
@builtins.property
|
|
285
|
+
@jsii.member(jsii_name="excludeResourceTags")
|
|
286
|
+
def exclude_resource_tags(
|
|
287
|
+
self,
|
|
288
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]]:
|
|
289
|
+
'''Information about the exclude resource tags used to identify resources that are excluded by the retention rule.'''
|
|
290
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]], jsii.get(self, "excludeResourceTags"))
|
|
291
|
+
|
|
292
|
+
@exclude_resource_tags.setter
|
|
293
|
+
def exclude_resource_tags(
|
|
294
|
+
self,
|
|
295
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]],
|
|
296
|
+
) -> None:
|
|
297
|
+
if __debug__:
|
|
298
|
+
type_hints = typing.get_type_hints(_typecheckingstub__20704aef7f8bc3c60046956bdcd1dc4e858b35b183e74b90587dae29d670872b)
|
|
299
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
300
|
+
jsii.set(self, "excludeResourceTags", value) # pyright: ignore[reportArgumentType]
|
|
301
|
+
|
|
302
|
+
@builtins.property
|
|
303
|
+
@jsii.member(jsii_name="lockConfiguration")
|
|
304
|
+
def lock_configuration(
|
|
305
|
+
self,
|
|
306
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRule.UnlockDelayProperty"]]:
|
|
307
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRule.UnlockDelayProperty"]], jsii.get(self, "lockConfiguration"))
|
|
308
|
+
|
|
309
|
+
@lock_configuration.setter
|
|
310
|
+
def lock_configuration(
|
|
311
|
+
self,
|
|
312
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRule.UnlockDelayProperty"]],
|
|
313
|
+
) -> None:
|
|
314
|
+
if __debug__:
|
|
315
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9f565c87c44cc6deeef0351aeb8e4b8ead6860f0e90c735ebf7826cdbc04ae0a)
|
|
316
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
317
|
+
jsii.set(self, "lockConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
318
|
+
|
|
319
|
+
@builtins.property
|
|
320
|
+
@jsii.member(jsii_name="resourceTags")
|
|
321
|
+
def resource_tags(
|
|
322
|
+
self,
|
|
323
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]]:
|
|
324
|
+
'''Information about the resource tags used to identify resources that are retained by the retention rule.'''
|
|
325
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]], jsii.get(self, "resourceTags"))
|
|
326
|
+
|
|
327
|
+
@resource_tags.setter
|
|
328
|
+
def resource_tags(
|
|
329
|
+
self,
|
|
330
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]],
|
|
331
|
+
) -> None:
|
|
332
|
+
if __debug__:
|
|
333
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5e0b94a905f0a4a1448048e0ead85a45b5b5aa837fc74feedc20218875209250)
|
|
334
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
335
|
+
jsii.set(self, "resourceTags", value) # pyright: ignore[reportArgumentType]
|
|
336
|
+
|
|
337
|
+
@builtins.property
|
|
338
|
+
@jsii.member(jsii_name="status")
|
|
339
|
+
def status(self) -> typing.Optional[builtins.str]:
|
|
340
|
+
'''The state of the retention rule.'''
|
|
341
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "status"))
|
|
342
|
+
|
|
343
|
+
@status.setter
|
|
344
|
+
def status(self, value: typing.Optional[builtins.str]) -> None:
|
|
345
|
+
if __debug__:
|
|
346
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cb14fdab3dd71774cb9bab4038b816ff578268a68dda7042fda45b88adf4a647)
|
|
347
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
348
|
+
jsii.set(self, "status", value) # pyright: ignore[reportArgumentType]
|
|
349
|
+
|
|
350
|
+
@builtins.property
|
|
351
|
+
@jsii.member(jsii_name="tags")
|
|
352
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
353
|
+
'''Information about the tags assigned to the retention rule.'''
|
|
354
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
355
|
+
|
|
356
|
+
@tags.setter
|
|
357
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
358
|
+
if __debug__:
|
|
359
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ce724038f2c5f6b081624628cfc2e8ecba465376fcb9fc6a115d81b322693c72)
|
|
360
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
361
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
362
|
+
|
|
363
|
+
@jsii.data_type(
|
|
364
|
+
jsii_type="aws-cdk-lib.aws_rbin.CfnRule.ResourceTagProperty",
|
|
365
|
+
jsii_struct_bases=[],
|
|
366
|
+
name_mapping={
|
|
367
|
+
"resource_tag_key": "resourceTagKey",
|
|
368
|
+
"resource_tag_value": "resourceTagValue",
|
|
369
|
+
},
|
|
370
|
+
)
|
|
371
|
+
class ResourceTagProperty:
|
|
372
|
+
def __init__(
|
|
373
|
+
self,
|
|
374
|
+
*,
|
|
375
|
+
resource_tag_key: builtins.str,
|
|
376
|
+
resource_tag_value: builtins.str,
|
|
377
|
+
) -> None:
|
|
378
|
+
'''The resource tag of the rule.
|
|
379
|
+
|
|
380
|
+
:param resource_tag_key: The tag key of the resource.
|
|
381
|
+
:param resource_tag_value: The tag value of the resource.
|
|
382
|
+
|
|
383
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html
|
|
384
|
+
:exampleMetadata: fixture=_generated
|
|
385
|
+
|
|
386
|
+
Example::
|
|
387
|
+
|
|
388
|
+
# The code below shows an example of how to instantiate this type.
|
|
389
|
+
# The values are placeholders you should change.
|
|
390
|
+
from aws_cdk import aws_rbin as rbin
|
|
391
|
+
|
|
392
|
+
resource_tag_property = rbin.CfnRule.ResourceTagProperty(
|
|
393
|
+
resource_tag_key="resourceTagKey",
|
|
394
|
+
resource_tag_value="resourceTagValue"
|
|
395
|
+
)
|
|
396
|
+
'''
|
|
397
|
+
if __debug__:
|
|
398
|
+
type_hints = typing.get_type_hints(_typecheckingstub__86dbca3d8e90ed21aab495dd4465cd65c5600b932f6947382977ac6049cfdc9b)
|
|
399
|
+
check_type(argname="argument resource_tag_key", value=resource_tag_key, expected_type=type_hints["resource_tag_key"])
|
|
400
|
+
check_type(argname="argument resource_tag_value", value=resource_tag_value, expected_type=type_hints["resource_tag_value"])
|
|
401
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
402
|
+
"resource_tag_key": resource_tag_key,
|
|
403
|
+
"resource_tag_value": resource_tag_value,
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@builtins.property
|
|
407
|
+
def resource_tag_key(self) -> builtins.str:
|
|
408
|
+
'''The tag key of the resource.
|
|
409
|
+
|
|
410
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html#cfn-rbin-rule-resourcetag-resourcetagkey
|
|
411
|
+
'''
|
|
412
|
+
result = self._values.get("resource_tag_key")
|
|
413
|
+
assert result is not None, "Required property 'resource_tag_key' is missing"
|
|
414
|
+
return typing.cast(builtins.str, result)
|
|
415
|
+
|
|
416
|
+
@builtins.property
|
|
417
|
+
def resource_tag_value(self) -> builtins.str:
|
|
418
|
+
'''The tag value of the resource.
|
|
419
|
+
|
|
420
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html#cfn-rbin-rule-resourcetag-resourcetagvalue
|
|
421
|
+
'''
|
|
422
|
+
result = self._values.get("resource_tag_value")
|
|
423
|
+
assert result is not None, "Required property 'resource_tag_value' is missing"
|
|
424
|
+
return typing.cast(builtins.str, result)
|
|
425
|
+
|
|
426
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
427
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
428
|
+
|
|
429
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
430
|
+
return not (rhs == self)
|
|
431
|
+
|
|
432
|
+
def __repr__(self) -> str:
|
|
433
|
+
return "ResourceTagProperty(%s)" % ", ".join(
|
|
434
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
435
|
+
)
|
|
436
|
+
|
|
437
|
+
@jsii.data_type(
|
|
438
|
+
jsii_type="aws-cdk-lib.aws_rbin.CfnRule.RetentionPeriodProperty",
|
|
439
|
+
jsii_struct_bases=[],
|
|
440
|
+
name_mapping={
|
|
441
|
+
"retention_period_unit": "retentionPeriodUnit",
|
|
442
|
+
"retention_period_value": "retentionPeriodValue",
|
|
443
|
+
},
|
|
444
|
+
)
|
|
445
|
+
class RetentionPeriodProperty:
|
|
446
|
+
def __init__(
|
|
447
|
+
self,
|
|
448
|
+
*,
|
|
449
|
+
retention_period_unit: builtins.str,
|
|
450
|
+
retention_period_value: jsii.Number,
|
|
451
|
+
) -> None:
|
|
452
|
+
'''The retention period of the rule.
|
|
453
|
+
|
|
454
|
+
:param retention_period_unit: The retention period unit of the rule.
|
|
455
|
+
:param retention_period_value: The retention period value of the rule.
|
|
456
|
+
|
|
457
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-retentionperiod.html
|
|
458
|
+
:exampleMetadata: fixture=_generated
|
|
459
|
+
|
|
460
|
+
Example::
|
|
461
|
+
|
|
462
|
+
# The code below shows an example of how to instantiate this type.
|
|
463
|
+
# The values are placeholders you should change.
|
|
464
|
+
from aws_cdk import aws_rbin as rbin
|
|
465
|
+
|
|
466
|
+
retention_period_property = rbin.CfnRule.RetentionPeriodProperty(
|
|
467
|
+
retention_period_unit="retentionPeriodUnit",
|
|
468
|
+
retention_period_value=123
|
|
469
|
+
)
|
|
470
|
+
'''
|
|
471
|
+
if __debug__:
|
|
472
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8c623c23074f8bcff0ea21ef370a8648f359985c15fca05e00e93100e4fc5254)
|
|
473
|
+
check_type(argname="argument retention_period_unit", value=retention_period_unit, expected_type=type_hints["retention_period_unit"])
|
|
474
|
+
check_type(argname="argument retention_period_value", value=retention_period_value, expected_type=type_hints["retention_period_value"])
|
|
475
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
476
|
+
"retention_period_unit": retention_period_unit,
|
|
477
|
+
"retention_period_value": retention_period_value,
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
@builtins.property
|
|
481
|
+
def retention_period_unit(self) -> builtins.str:
|
|
482
|
+
'''The retention period unit of the rule.
|
|
483
|
+
|
|
484
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-retentionperiod.html#cfn-rbin-rule-retentionperiod-retentionperiodunit
|
|
485
|
+
'''
|
|
486
|
+
result = self._values.get("retention_period_unit")
|
|
487
|
+
assert result is not None, "Required property 'retention_period_unit' is missing"
|
|
488
|
+
return typing.cast(builtins.str, result)
|
|
489
|
+
|
|
490
|
+
@builtins.property
|
|
491
|
+
def retention_period_value(self) -> jsii.Number:
|
|
492
|
+
'''The retention period value of the rule.
|
|
493
|
+
|
|
494
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-retentionperiod.html#cfn-rbin-rule-retentionperiod-retentionperiodvalue
|
|
495
|
+
'''
|
|
496
|
+
result = self._values.get("retention_period_value")
|
|
497
|
+
assert result is not None, "Required property 'retention_period_value' is missing"
|
|
498
|
+
return typing.cast(jsii.Number, result)
|
|
499
|
+
|
|
500
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
501
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
502
|
+
|
|
503
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
504
|
+
return not (rhs == self)
|
|
505
|
+
|
|
506
|
+
def __repr__(self) -> str:
|
|
507
|
+
return "RetentionPeriodProperty(%s)" % ", ".join(
|
|
508
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
509
|
+
)
|
|
510
|
+
|
|
511
|
+
@jsii.data_type(
|
|
512
|
+
jsii_type="aws-cdk-lib.aws_rbin.CfnRule.UnlockDelayProperty",
|
|
513
|
+
jsii_struct_bases=[],
|
|
514
|
+
name_mapping={
|
|
515
|
+
"unlock_delay_unit": "unlockDelayUnit",
|
|
516
|
+
"unlock_delay_value": "unlockDelayValue",
|
|
517
|
+
},
|
|
518
|
+
)
|
|
519
|
+
class UnlockDelayProperty:
|
|
520
|
+
def __init__(
|
|
521
|
+
self,
|
|
522
|
+
*,
|
|
523
|
+
unlock_delay_unit: typing.Optional[builtins.str] = None,
|
|
524
|
+
unlock_delay_value: typing.Optional[jsii.Number] = None,
|
|
525
|
+
) -> None:
|
|
526
|
+
'''
|
|
527
|
+
:param unlock_delay_unit: The unit of time in which to measure the unlock delay. Currently, the unlock delay can be measure only in days.
|
|
528
|
+
:param unlock_delay_value: The unlock delay period, measured in the unit specified for UnlockDelayUnit.
|
|
529
|
+
|
|
530
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html
|
|
531
|
+
:exampleMetadata: fixture=_generated
|
|
532
|
+
|
|
533
|
+
Example::
|
|
534
|
+
|
|
535
|
+
# The code below shows an example of how to instantiate this type.
|
|
536
|
+
# The values are placeholders you should change.
|
|
537
|
+
from aws_cdk import aws_rbin as rbin
|
|
538
|
+
|
|
539
|
+
unlock_delay_property = rbin.CfnRule.UnlockDelayProperty(
|
|
540
|
+
unlock_delay_unit="unlockDelayUnit",
|
|
541
|
+
unlock_delay_value=123
|
|
542
|
+
)
|
|
543
|
+
'''
|
|
544
|
+
if __debug__:
|
|
545
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d5cb70d54df5cb782865dd65947c16d9455e200989ec0b11ea250d28107e4894)
|
|
546
|
+
check_type(argname="argument unlock_delay_unit", value=unlock_delay_unit, expected_type=type_hints["unlock_delay_unit"])
|
|
547
|
+
check_type(argname="argument unlock_delay_value", value=unlock_delay_value, expected_type=type_hints["unlock_delay_value"])
|
|
548
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
549
|
+
if unlock_delay_unit is not None:
|
|
550
|
+
self._values["unlock_delay_unit"] = unlock_delay_unit
|
|
551
|
+
if unlock_delay_value is not None:
|
|
552
|
+
self._values["unlock_delay_value"] = unlock_delay_value
|
|
553
|
+
|
|
554
|
+
@builtins.property
|
|
555
|
+
def unlock_delay_unit(self) -> typing.Optional[builtins.str]:
|
|
556
|
+
'''The unit of time in which to measure the unlock delay.
|
|
557
|
+
|
|
558
|
+
Currently, the unlock delay can be measure only in days.
|
|
559
|
+
|
|
560
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html#cfn-rbin-rule-unlockdelay-unlockdelayunit
|
|
561
|
+
'''
|
|
562
|
+
result = self._values.get("unlock_delay_unit")
|
|
563
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
564
|
+
|
|
565
|
+
@builtins.property
|
|
566
|
+
def unlock_delay_value(self) -> typing.Optional[jsii.Number]:
|
|
567
|
+
'''The unlock delay period, measured in the unit specified for UnlockDelayUnit.
|
|
568
|
+
|
|
569
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html#cfn-rbin-rule-unlockdelay-unlockdelayvalue
|
|
570
|
+
'''
|
|
571
|
+
result = self._values.get("unlock_delay_value")
|
|
572
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
573
|
+
|
|
574
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
575
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
576
|
+
|
|
577
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
578
|
+
return not (rhs == self)
|
|
579
|
+
|
|
580
|
+
def __repr__(self) -> str:
|
|
581
|
+
return "UnlockDelayProperty(%s)" % ", ".join(
|
|
582
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
583
|
+
)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
@jsii.data_type(
|
|
587
|
+
jsii_type="aws-cdk-lib.aws_rbin.CfnRuleProps",
|
|
588
|
+
jsii_struct_bases=[],
|
|
589
|
+
name_mapping={
|
|
590
|
+
"resource_type": "resourceType",
|
|
591
|
+
"retention_period": "retentionPeriod",
|
|
592
|
+
"description": "description",
|
|
593
|
+
"exclude_resource_tags": "excludeResourceTags",
|
|
594
|
+
"lock_configuration": "lockConfiguration",
|
|
595
|
+
"resource_tags": "resourceTags",
|
|
596
|
+
"status": "status",
|
|
597
|
+
"tags": "tags",
|
|
598
|
+
},
|
|
599
|
+
)
|
|
600
|
+
class CfnRuleProps:
|
|
601
|
+
def __init__(
|
|
602
|
+
self,
|
|
603
|
+
*,
|
|
604
|
+
resource_type: builtins.str,
|
|
605
|
+
retention_period: typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.RetentionPeriodProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
606
|
+
description: typing.Optional[builtins.str] = None,
|
|
607
|
+
exclude_resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
608
|
+
lock_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.UnlockDelayProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
609
|
+
resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
610
|
+
status: typing.Optional[builtins.str] = None,
|
|
611
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
612
|
+
) -> None:
|
|
613
|
+
'''Properties for defining a ``CfnRule``.
|
|
614
|
+
|
|
615
|
+
:param resource_type: The resource type retained by the retention rule.
|
|
616
|
+
:param retention_period: The retention period of the rule.
|
|
617
|
+
:param description: The description of the retention rule.
|
|
618
|
+
:param exclude_resource_tags: Information about the exclude resource tags used to identify resources that are excluded by the retention rule.
|
|
619
|
+
:param lock_configuration:
|
|
620
|
+
:param resource_tags: Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
621
|
+
:param status: The state of the retention rule. Only retention rules that are in the available state retain resources.
|
|
622
|
+
:param tags: Information about the tags assigned to the retention rule.
|
|
623
|
+
|
|
624
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html
|
|
625
|
+
:exampleMetadata: fixture=_generated
|
|
626
|
+
|
|
627
|
+
Example::
|
|
628
|
+
|
|
629
|
+
# The code below shows an example of how to instantiate this type.
|
|
630
|
+
# The values are placeholders you should change.
|
|
631
|
+
from aws_cdk import aws_rbin as rbin
|
|
632
|
+
|
|
633
|
+
cfn_rule_props = rbin.CfnRuleProps(
|
|
634
|
+
resource_type="resourceType",
|
|
635
|
+
retention_period=rbin.CfnRule.RetentionPeriodProperty(
|
|
636
|
+
retention_period_unit="retentionPeriodUnit",
|
|
637
|
+
retention_period_value=123
|
|
638
|
+
),
|
|
639
|
+
|
|
640
|
+
# the properties below are optional
|
|
641
|
+
description="description",
|
|
642
|
+
exclude_resource_tags=[rbin.CfnRule.ResourceTagProperty(
|
|
643
|
+
resource_tag_key="resourceTagKey",
|
|
644
|
+
resource_tag_value="resourceTagValue"
|
|
645
|
+
)],
|
|
646
|
+
lock_configuration=rbin.CfnRule.UnlockDelayProperty(
|
|
647
|
+
unlock_delay_unit="unlockDelayUnit",
|
|
648
|
+
unlock_delay_value=123
|
|
649
|
+
),
|
|
650
|
+
resource_tags=[rbin.CfnRule.ResourceTagProperty(
|
|
651
|
+
resource_tag_key="resourceTagKey",
|
|
652
|
+
resource_tag_value="resourceTagValue"
|
|
653
|
+
)],
|
|
654
|
+
status="status",
|
|
655
|
+
tags=[CfnTag(
|
|
656
|
+
key="key",
|
|
657
|
+
value="value"
|
|
658
|
+
)]
|
|
659
|
+
)
|
|
660
|
+
'''
|
|
661
|
+
if __debug__:
|
|
662
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f246c80846d7b6504b1f19f501c0aca8aa64ad2d5daf1c0f3c805f6f96d87faa)
|
|
663
|
+
check_type(argname="argument resource_type", value=resource_type, expected_type=type_hints["resource_type"])
|
|
664
|
+
check_type(argname="argument retention_period", value=retention_period, expected_type=type_hints["retention_period"])
|
|
665
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
666
|
+
check_type(argname="argument exclude_resource_tags", value=exclude_resource_tags, expected_type=type_hints["exclude_resource_tags"])
|
|
667
|
+
check_type(argname="argument lock_configuration", value=lock_configuration, expected_type=type_hints["lock_configuration"])
|
|
668
|
+
check_type(argname="argument resource_tags", value=resource_tags, expected_type=type_hints["resource_tags"])
|
|
669
|
+
check_type(argname="argument status", value=status, expected_type=type_hints["status"])
|
|
670
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
671
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
672
|
+
"resource_type": resource_type,
|
|
673
|
+
"retention_period": retention_period,
|
|
674
|
+
}
|
|
675
|
+
if description is not None:
|
|
676
|
+
self._values["description"] = description
|
|
677
|
+
if exclude_resource_tags is not None:
|
|
678
|
+
self._values["exclude_resource_tags"] = exclude_resource_tags
|
|
679
|
+
if lock_configuration is not None:
|
|
680
|
+
self._values["lock_configuration"] = lock_configuration
|
|
681
|
+
if resource_tags is not None:
|
|
682
|
+
self._values["resource_tags"] = resource_tags
|
|
683
|
+
if status is not None:
|
|
684
|
+
self._values["status"] = status
|
|
685
|
+
if tags is not None:
|
|
686
|
+
self._values["tags"] = tags
|
|
687
|
+
|
|
688
|
+
@builtins.property
|
|
689
|
+
def resource_type(self) -> builtins.str:
|
|
690
|
+
'''The resource type retained by the retention rule.
|
|
691
|
+
|
|
692
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-resourcetype
|
|
693
|
+
'''
|
|
694
|
+
result = self._values.get("resource_type")
|
|
695
|
+
assert result is not None, "Required property 'resource_type' is missing"
|
|
696
|
+
return typing.cast(builtins.str, result)
|
|
697
|
+
|
|
698
|
+
@builtins.property
|
|
699
|
+
def retention_period(
|
|
700
|
+
self,
|
|
701
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnRule.RetentionPeriodProperty]:
|
|
702
|
+
'''The retention period of the rule.
|
|
703
|
+
|
|
704
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-retentionperiod
|
|
705
|
+
'''
|
|
706
|
+
result = self._values.get("retention_period")
|
|
707
|
+
assert result is not None, "Required property 'retention_period' is missing"
|
|
708
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnRule.RetentionPeriodProperty], result)
|
|
709
|
+
|
|
710
|
+
@builtins.property
|
|
711
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
712
|
+
'''The description of the retention rule.
|
|
713
|
+
|
|
714
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-description
|
|
715
|
+
'''
|
|
716
|
+
result = self._values.get("description")
|
|
717
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
718
|
+
|
|
719
|
+
@builtins.property
|
|
720
|
+
def exclude_resource_tags(
|
|
721
|
+
self,
|
|
722
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRule.ResourceTagProperty]]]]:
|
|
723
|
+
'''Information about the exclude resource tags used to identify resources that are excluded by the retention rule.
|
|
724
|
+
|
|
725
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-excluderesourcetags
|
|
726
|
+
'''
|
|
727
|
+
result = self._values.get("exclude_resource_tags")
|
|
728
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRule.ResourceTagProperty]]]], result)
|
|
729
|
+
|
|
730
|
+
@builtins.property
|
|
731
|
+
def lock_configuration(
|
|
732
|
+
self,
|
|
733
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnRule.UnlockDelayProperty]]:
|
|
734
|
+
'''
|
|
735
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-lockconfiguration
|
|
736
|
+
'''
|
|
737
|
+
result = self._values.get("lock_configuration")
|
|
738
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnRule.UnlockDelayProperty]], result)
|
|
739
|
+
|
|
740
|
+
@builtins.property
|
|
741
|
+
def resource_tags(
|
|
742
|
+
self,
|
|
743
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRule.ResourceTagProperty]]]]:
|
|
744
|
+
'''Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
745
|
+
|
|
746
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-resourcetags
|
|
747
|
+
'''
|
|
748
|
+
result = self._values.get("resource_tags")
|
|
749
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRule.ResourceTagProperty]]]], result)
|
|
750
|
+
|
|
751
|
+
@builtins.property
|
|
752
|
+
def status(self) -> typing.Optional[builtins.str]:
|
|
753
|
+
'''The state of the retention rule.
|
|
754
|
+
|
|
755
|
+
Only retention rules that are in the available state retain resources.
|
|
756
|
+
|
|
757
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-status
|
|
758
|
+
'''
|
|
759
|
+
result = self._values.get("status")
|
|
760
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
761
|
+
|
|
762
|
+
@builtins.property
|
|
763
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
764
|
+
'''Information about the tags assigned to the retention rule.
|
|
765
|
+
|
|
766
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-tags
|
|
767
|
+
'''
|
|
768
|
+
result = self._values.get("tags")
|
|
769
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
770
|
+
|
|
771
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
772
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
773
|
+
|
|
774
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
775
|
+
return not (rhs == self)
|
|
776
|
+
|
|
777
|
+
def __repr__(self) -> str:
|
|
778
|
+
return "CfnRuleProps(%s)" % ", ".join(
|
|
779
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
780
|
+
)
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
__all__ = [
|
|
784
|
+
"CfnRule",
|
|
785
|
+
"CfnRuleProps",
|
|
786
|
+
]
|
|
787
|
+
|
|
788
|
+
publication.publish()
|
|
789
|
+
|
|
790
|
+
def _typecheckingstub__38111a34066818ca2f172524180ec7dec02ce564c681ac0c87097b02350ebe17(
|
|
791
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
792
|
+
id: builtins.str,
|
|
793
|
+
*,
|
|
794
|
+
resource_type: builtins.str,
|
|
795
|
+
retention_period: typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.RetentionPeriodProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
796
|
+
description: typing.Optional[builtins.str] = None,
|
|
797
|
+
exclude_resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
798
|
+
lock_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.UnlockDelayProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
799
|
+
resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
800
|
+
status: typing.Optional[builtins.str] = None,
|
|
801
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
802
|
+
) -> None:
|
|
803
|
+
"""Type checking stubs"""
|
|
804
|
+
pass
|
|
805
|
+
|
|
806
|
+
def _typecheckingstub__a5e2d558e79cd4c1853664243affb2788ae164a541fe9173013893487ad12468(
|
|
807
|
+
inspector: _TreeInspector_488e0dd5,
|
|
808
|
+
) -> None:
|
|
809
|
+
"""Type checking stubs"""
|
|
810
|
+
pass
|
|
811
|
+
|
|
812
|
+
def _typecheckingstub__6f8034d4fc6a3ab8d042623ec8857f056b79c1bd97f0d82b66729845c9f14fa5(
|
|
813
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
814
|
+
) -> None:
|
|
815
|
+
"""Type checking stubs"""
|
|
816
|
+
pass
|
|
817
|
+
|
|
818
|
+
def _typecheckingstub__5c74a6102cda767f81d08a2ce4a9f380c01bef76688ed3f2426a6abc2f6878bc(
|
|
819
|
+
value: builtins.str,
|
|
820
|
+
) -> None:
|
|
821
|
+
"""Type checking stubs"""
|
|
822
|
+
pass
|
|
823
|
+
|
|
824
|
+
def _typecheckingstub__d0d27934aff5d763d4a0cff90f748b18d817167613cec2de784a19e0980a2fe4(
|
|
825
|
+
value: typing.Union[_IResolvable_da3f097b, CfnRule.RetentionPeriodProperty],
|
|
826
|
+
) -> None:
|
|
827
|
+
"""Type checking stubs"""
|
|
828
|
+
pass
|
|
829
|
+
|
|
830
|
+
def _typecheckingstub__d3d64ebf98762cb6f5e840690eeebd382523d8cea931da2c8618a90f770698c9(
|
|
831
|
+
value: typing.Optional[builtins.str],
|
|
832
|
+
) -> None:
|
|
833
|
+
"""Type checking stubs"""
|
|
834
|
+
pass
|
|
835
|
+
|
|
836
|
+
def _typecheckingstub__20704aef7f8bc3c60046956bdcd1dc4e858b35b183e74b90587dae29d670872b(
|
|
837
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRule.ResourceTagProperty]]]],
|
|
838
|
+
) -> None:
|
|
839
|
+
"""Type checking stubs"""
|
|
840
|
+
pass
|
|
841
|
+
|
|
842
|
+
def _typecheckingstub__9f565c87c44cc6deeef0351aeb8e4b8ead6860f0e90c735ebf7826cdbc04ae0a(
|
|
843
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnRule.UnlockDelayProperty]],
|
|
844
|
+
) -> None:
|
|
845
|
+
"""Type checking stubs"""
|
|
846
|
+
pass
|
|
847
|
+
|
|
848
|
+
def _typecheckingstub__5e0b94a905f0a4a1448048e0ead85a45b5b5aa837fc74feedc20218875209250(
|
|
849
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRule.ResourceTagProperty]]]],
|
|
850
|
+
) -> None:
|
|
851
|
+
"""Type checking stubs"""
|
|
852
|
+
pass
|
|
853
|
+
|
|
854
|
+
def _typecheckingstub__cb14fdab3dd71774cb9bab4038b816ff578268a68dda7042fda45b88adf4a647(
|
|
855
|
+
value: typing.Optional[builtins.str],
|
|
856
|
+
) -> None:
|
|
857
|
+
"""Type checking stubs"""
|
|
858
|
+
pass
|
|
859
|
+
|
|
860
|
+
def _typecheckingstub__ce724038f2c5f6b081624628cfc2e8ecba465376fcb9fc6a115d81b322693c72(
|
|
861
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
862
|
+
) -> None:
|
|
863
|
+
"""Type checking stubs"""
|
|
864
|
+
pass
|
|
865
|
+
|
|
866
|
+
def _typecheckingstub__86dbca3d8e90ed21aab495dd4465cd65c5600b932f6947382977ac6049cfdc9b(
|
|
867
|
+
*,
|
|
868
|
+
resource_tag_key: builtins.str,
|
|
869
|
+
resource_tag_value: builtins.str,
|
|
870
|
+
) -> None:
|
|
871
|
+
"""Type checking stubs"""
|
|
872
|
+
pass
|
|
873
|
+
|
|
874
|
+
def _typecheckingstub__8c623c23074f8bcff0ea21ef370a8648f359985c15fca05e00e93100e4fc5254(
|
|
875
|
+
*,
|
|
876
|
+
retention_period_unit: builtins.str,
|
|
877
|
+
retention_period_value: jsii.Number,
|
|
878
|
+
) -> None:
|
|
879
|
+
"""Type checking stubs"""
|
|
880
|
+
pass
|
|
881
|
+
|
|
882
|
+
def _typecheckingstub__d5cb70d54df5cb782865dd65947c16d9455e200989ec0b11ea250d28107e4894(
|
|
883
|
+
*,
|
|
884
|
+
unlock_delay_unit: typing.Optional[builtins.str] = None,
|
|
885
|
+
unlock_delay_value: typing.Optional[jsii.Number] = None,
|
|
886
|
+
) -> None:
|
|
887
|
+
"""Type checking stubs"""
|
|
888
|
+
pass
|
|
889
|
+
|
|
890
|
+
def _typecheckingstub__f246c80846d7b6504b1f19f501c0aca8aa64ad2d5daf1c0f3c805f6f96d87faa(
|
|
891
|
+
*,
|
|
892
|
+
resource_type: builtins.str,
|
|
893
|
+
retention_period: typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.RetentionPeriodProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
894
|
+
description: typing.Optional[builtins.str] = None,
|
|
895
|
+
exclude_resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
896
|
+
lock_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.UnlockDelayProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
897
|
+
resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRule.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
898
|
+
status: typing.Optional[builtins.str] = None,
|
|
899
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
900
|
+
) -> None:
|
|
901
|
+
"""Type checking stubs"""
|
|
902
|
+
pass
|