aws-cdk-lib 2.126.0__py3-none-any.whl → 2.127.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 +0 -2
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.126.0.jsii.tgz → aws-cdk-lib@2.127.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +18 -6
- aws_cdk/aws_amazonmq/__init__.py +3 -2
- aws_cdk/aws_amplifyuibuilder/__init__.py +1212 -666
- aws_cdk/aws_apigateway/__init__.py +7 -3
- aws_cdk/aws_appconfig/__init__.py +108 -19
- aws_cdk/aws_appsync/__init__.py +43 -0
- aws_cdk/aws_autoscaling/__init__.py +37 -14
- aws_cdk/aws_cassandra/__init__.py +810 -4
- aws_cdk/aws_cloudfront/__init__.py +35 -37
- aws_cdk/aws_cloudfront/experimental/__init__.py +21 -0
- aws_cdk/aws_codebuild/__init__.py +43 -3
- aws_cdk/aws_codecommit/__init__.py +1 -0
- aws_cdk/aws_codepipeline/__init__.py +7 -3
- aws_cdk/aws_codepipeline_actions/__init__.py +11 -1
- aws_cdk/aws_codestarnotifications/__init__.py +24 -15
- aws_cdk/aws_cognito/__init__.py +180 -116
- aws_cdk/aws_datasync/__init__.py +8 -4
- aws_cdk/aws_dynamodb/__init__.py +80 -11
- aws_cdk/aws_ec2/__init__.py +207 -45
- aws_cdk/aws_ecs/__init__.py +171 -78
- aws_cdk/aws_ecs_patterns/__init__.py +24 -0
- aws_cdk/aws_efs/__init__.py +64 -8
- aws_cdk/aws_eks/__init__.py +52 -41
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +12 -9
- aws_cdk/aws_fis/__init__.py +32 -12
- aws_cdk/aws_fsx/__init__.py +61 -43
- aws_cdk/aws_glue/__init__.py +449 -0
- aws_cdk/aws_guardduty/__init__.py +0 -8
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_inspectorv2/__init__.py +989 -0
- aws_cdk/aws_internetmonitor/__init__.py +10 -12
- aws_cdk/aws_iot/__init__.py +112 -0
- aws_cdk/aws_iotwireless/__init__.py +32 -19
- aws_cdk/aws_lambda/__init__.py +129 -32
- aws_cdk/aws_lambda_event_sources/__init__.py +95 -4
- aws_cdk/aws_lambda_nodejs/__init__.py +21 -0
- aws_cdk/aws_location/__init__.py +8 -2
- aws_cdk/aws_logs/__init__.py +7 -3
- aws_cdk/aws_networkmanager/__init__.py +1 -1
- aws_cdk/aws_opensearchserverless/__init__.py +4 -4
- aws_cdk/aws_osis/__init__.py +13 -13
- aws_cdk/aws_personalize/__init__.py +1 -1
- aws_cdk/aws_pinpoint/__init__.py +5 -5
- aws_cdk/aws_pipes/__init__.py +7 -10
- aws_cdk/aws_rds/__init__.py +449 -8
- aws_cdk/aws_redshiftserverless/__init__.py +282 -0
- aws_cdk/aws_rolesanywhere/__init__.py +53 -41
- aws_cdk/aws_route53/__init__.py +282 -0
- aws_cdk/aws_s3/__init__.py +11 -6
- aws_cdk/aws_sagemaker/__init__.py +1398 -39
- aws_cdk/aws_sns/__init__.py +56 -13
- aws_cdk/aws_sqs/__init__.py +13 -10
- aws_cdk/aws_stepfunctions/__init__.py +3612 -1395
- aws_cdk/aws_stepfunctions_tasks/__init__.py +267 -181
- aws_cdk/aws_transfer/__init__.py +1 -1
- aws_cdk/aws_verifiedpermissions/__init__.py +55 -55
- aws_cdk/aws_workspacesweb/__init__.py +6 -3
- aws_cdk/cx_api/__init__.py +17 -0
- aws_cdk/triggers/__init__.py +21 -0
- {aws_cdk_lib-2.126.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.126.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/RECORD +68 -69
- aws_cdk/aws_ssmguiconnect/__init__.py +0 -540
- {aws_cdk_lib-2.126.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.126.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.126.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.126.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/top_level.txt +0 -0
|
@@ -48,6 +48,878 @@ from .. import (
|
|
|
48
48
|
)
|
|
49
49
|
|
|
50
50
|
|
|
51
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
52
|
+
class CfnCisScanConfiguration(
|
|
53
|
+
_CfnResource_9df397a6,
|
|
54
|
+
metaclass=jsii.JSIIMeta,
|
|
55
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfiguration",
|
|
56
|
+
):
|
|
57
|
+
'''The CIS scan configuration.
|
|
58
|
+
|
|
59
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html
|
|
60
|
+
:cloudformationResource: AWS::InspectorV2::CisScanConfiguration
|
|
61
|
+
:exampleMetadata: fixture=_generated
|
|
62
|
+
|
|
63
|
+
Example::
|
|
64
|
+
|
|
65
|
+
# The code below shows an example of how to instantiate this type.
|
|
66
|
+
# The values are placeholders you should change.
|
|
67
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
68
|
+
|
|
69
|
+
# one_time: Any
|
|
70
|
+
|
|
71
|
+
cfn_cis_scan_configuration = inspectorv2.CfnCisScanConfiguration(self, "MyCfnCisScanConfiguration",
|
|
72
|
+
scan_name="scanName",
|
|
73
|
+
schedule=inspectorv2.CfnCisScanConfiguration.ScheduleProperty(
|
|
74
|
+
daily=inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty(
|
|
75
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
76
|
+
time_of_day="timeOfDay",
|
|
77
|
+
time_zone="timeZone"
|
|
78
|
+
)
|
|
79
|
+
),
|
|
80
|
+
monthly=inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty(
|
|
81
|
+
day="day",
|
|
82
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
83
|
+
time_of_day="timeOfDay",
|
|
84
|
+
time_zone="timeZone"
|
|
85
|
+
)
|
|
86
|
+
),
|
|
87
|
+
one_time=one_time,
|
|
88
|
+
weekly=inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty(
|
|
89
|
+
days=["days"],
|
|
90
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
91
|
+
time_of_day="timeOfDay",
|
|
92
|
+
time_zone="timeZone"
|
|
93
|
+
)
|
|
94
|
+
)
|
|
95
|
+
),
|
|
96
|
+
security_level="securityLevel",
|
|
97
|
+
tags={
|
|
98
|
+
"tags_key": "tags"
|
|
99
|
+
},
|
|
100
|
+
targets=inspectorv2.CfnCisScanConfiguration.CisTargetsProperty(
|
|
101
|
+
account_ids=["accountIds"],
|
|
102
|
+
|
|
103
|
+
# the properties below are optional
|
|
104
|
+
target_resource_tags={
|
|
105
|
+
"target_resource_tags_key": ["targetResourceTags"]
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
)
|
|
109
|
+
'''
|
|
110
|
+
|
|
111
|
+
def __init__(
|
|
112
|
+
self,
|
|
113
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
114
|
+
id: builtins.str,
|
|
115
|
+
*,
|
|
116
|
+
scan_name: typing.Optional[builtins.str] = None,
|
|
117
|
+
schedule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.ScheduleProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
118
|
+
security_level: typing.Optional[builtins.str] = None,
|
|
119
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
120
|
+
targets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.CisTargetsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
121
|
+
) -> None:
|
|
122
|
+
'''
|
|
123
|
+
:param scope: Scope in which this resource is defined.
|
|
124
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
125
|
+
:param scan_name: The name of the CIS scan configuration.
|
|
126
|
+
:param schedule: The CIS scan configuration's schedule.
|
|
127
|
+
:param security_level: The CIS scan configuration's CIS Benchmark level.
|
|
128
|
+
:param tags: The CIS scan configuration's tags.
|
|
129
|
+
:param targets: The CIS scan configuration's targets.
|
|
130
|
+
'''
|
|
131
|
+
if __debug__:
|
|
132
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ee74cd979e0690afc5238694387a2bb443783c172f8af7544b4b5c468df80b9c)
|
|
133
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
134
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
135
|
+
props = CfnCisScanConfigurationProps(
|
|
136
|
+
scan_name=scan_name,
|
|
137
|
+
schedule=schedule,
|
|
138
|
+
security_level=security_level,
|
|
139
|
+
tags=tags,
|
|
140
|
+
targets=targets,
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
144
|
+
|
|
145
|
+
@jsii.member(jsii_name="inspect")
|
|
146
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
147
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
148
|
+
|
|
149
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
150
|
+
'''
|
|
151
|
+
if __debug__:
|
|
152
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1c340cf5a8052b5b5d1021305af92e23dcb4f62645a1014b0a49bb031d376ee8)
|
|
153
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
154
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
155
|
+
|
|
156
|
+
@jsii.member(jsii_name="renderProperties")
|
|
157
|
+
def _render_properties(
|
|
158
|
+
self,
|
|
159
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
160
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
161
|
+
'''
|
|
162
|
+
:param props: -
|
|
163
|
+
'''
|
|
164
|
+
if __debug__:
|
|
165
|
+
type_hints = typing.get_type_hints(_typecheckingstub__daf01f89651352328420f5a52535d8376706a979b3cb022464732eddc33e94c8)
|
|
166
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
167
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
168
|
+
|
|
169
|
+
@jsii.python.classproperty
|
|
170
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
171
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
172
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
173
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
174
|
+
|
|
175
|
+
@builtins.property
|
|
176
|
+
@jsii.member(jsii_name="attrArn")
|
|
177
|
+
def attr_arn(self) -> builtins.str:
|
|
178
|
+
'''The CIS scan configuration's scan configuration ARN.
|
|
179
|
+
|
|
180
|
+
:cloudformationAttribute: Arn
|
|
181
|
+
'''
|
|
182
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
183
|
+
|
|
184
|
+
@builtins.property
|
|
185
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
186
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
187
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
188
|
+
|
|
189
|
+
@builtins.property
|
|
190
|
+
@jsii.member(jsii_name="scanName")
|
|
191
|
+
def scan_name(self) -> typing.Optional[builtins.str]:
|
|
192
|
+
'''The name of the CIS scan configuration.'''
|
|
193
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "scanName"))
|
|
194
|
+
|
|
195
|
+
@scan_name.setter
|
|
196
|
+
def scan_name(self, value: typing.Optional[builtins.str]) -> None:
|
|
197
|
+
if __debug__:
|
|
198
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8f6f074ec34751eb6d66964ee6738d096c1429db3564cba2005e530e659871bc)
|
|
199
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
200
|
+
jsii.set(self, "scanName", value)
|
|
201
|
+
|
|
202
|
+
@builtins.property
|
|
203
|
+
@jsii.member(jsii_name="schedule")
|
|
204
|
+
def schedule(
|
|
205
|
+
self,
|
|
206
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.ScheduleProperty"]]:
|
|
207
|
+
'''The CIS scan configuration's schedule.'''
|
|
208
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.ScheduleProperty"]], jsii.get(self, "schedule"))
|
|
209
|
+
|
|
210
|
+
@schedule.setter
|
|
211
|
+
def schedule(
|
|
212
|
+
self,
|
|
213
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.ScheduleProperty"]],
|
|
214
|
+
) -> None:
|
|
215
|
+
if __debug__:
|
|
216
|
+
type_hints = typing.get_type_hints(_typecheckingstub__17c38c82086f8ffe9712e88585d2f980663e72bbb5b6ac70574594200cb759c2)
|
|
217
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
218
|
+
jsii.set(self, "schedule", value)
|
|
219
|
+
|
|
220
|
+
@builtins.property
|
|
221
|
+
@jsii.member(jsii_name="securityLevel")
|
|
222
|
+
def security_level(self) -> typing.Optional[builtins.str]:
|
|
223
|
+
'''The CIS scan configuration's CIS Benchmark level.'''
|
|
224
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "securityLevel"))
|
|
225
|
+
|
|
226
|
+
@security_level.setter
|
|
227
|
+
def security_level(self, value: typing.Optional[builtins.str]) -> None:
|
|
228
|
+
if __debug__:
|
|
229
|
+
type_hints = typing.get_type_hints(_typecheckingstub__53a976b81d95f07052322a80e8b1ff546ae083bdb3cb3d358b91e5b7e50b0909)
|
|
230
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
231
|
+
jsii.set(self, "securityLevel", value)
|
|
232
|
+
|
|
233
|
+
@builtins.property
|
|
234
|
+
@jsii.member(jsii_name="tags")
|
|
235
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
236
|
+
'''The CIS scan configuration's tags.'''
|
|
237
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
238
|
+
|
|
239
|
+
@tags.setter
|
|
240
|
+
def tags(
|
|
241
|
+
self,
|
|
242
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
243
|
+
) -> None:
|
|
244
|
+
if __debug__:
|
|
245
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5b4e1fac23c27cbc692267473e4cf9258b43062b9aea2a43b116dcfb105adb0d)
|
|
246
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
247
|
+
jsii.set(self, "tags", value)
|
|
248
|
+
|
|
249
|
+
@builtins.property
|
|
250
|
+
@jsii.member(jsii_name="targets")
|
|
251
|
+
def targets(
|
|
252
|
+
self,
|
|
253
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.CisTargetsProperty"]]:
|
|
254
|
+
'''The CIS scan configuration's targets.'''
|
|
255
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.CisTargetsProperty"]], jsii.get(self, "targets"))
|
|
256
|
+
|
|
257
|
+
@targets.setter
|
|
258
|
+
def targets(
|
|
259
|
+
self,
|
|
260
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.CisTargetsProperty"]],
|
|
261
|
+
) -> None:
|
|
262
|
+
if __debug__:
|
|
263
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8afffccf2a9a470f423d247abd4a6dfe735dc39c53a2abe26c8cdb1844ec12a2)
|
|
264
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
265
|
+
jsii.set(self, "targets", value)
|
|
266
|
+
|
|
267
|
+
@jsii.data_type(
|
|
268
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfiguration.CisTargetsProperty",
|
|
269
|
+
jsii_struct_bases=[],
|
|
270
|
+
name_mapping={
|
|
271
|
+
"account_ids": "accountIds",
|
|
272
|
+
"target_resource_tags": "targetResourceTags",
|
|
273
|
+
},
|
|
274
|
+
)
|
|
275
|
+
class CisTargetsProperty:
|
|
276
|
+
def __init__(
|
|
277
|
+
self,
|
|
278
|
+
*,
|
|
279
|
+
account_ids: typing.Sequence[builtins.str],
|
|
280
|
+
target_resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Sequence[builtins.str]]]] = None,
|
|
281
|
+
) -> None:
|
|
282
|
+
'''The CIS targets.
|
|
283
|
+
|
|
284
|
+
:param account_ids: The CIS target account ids.
|
|
285
|
+
:param target_resource_tags: The CIS target resource tags.
|
|
286
|
+
|
|
287
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html
|
|
288
|
+
:exampleMetadata: fixture=_generated
|
|
289
|
+
|
|
290
|
+
Example::
|
|
291
|
+
|
|
292
|
+
# The code below shows an example of how to instantiate this type.
|
|
293
|
+
# The values are placeholders you should change.
|
|
294
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
295
|
+
|
|
296
|
+
cis_targets_property = inspectorv2.CfnCisScanConfiguration.CisTargetsProperty(
|
|
297
|
+
account_ids=["accountIds"],
|
|
298
|
+
|
|
299
|
+
# the properties below are optional
|
|
300
|
+
target_resource_tags={
|
|
301
|
+
"target_resource_tags_key": ["targetResourceTags"]
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
'''
|
|
305
|
+
if __debug__:
|
|
306
|
+
type_hints = typing.get_type_hints(_typecheckingstub__48b07d123221faefb49073a28736f1aec9dc2a488247f39ec213274809cd3b6a)
|
|
307
|
+
check_type(argname="argument account_ids", value=account_ids, expected_type=type_hints["account_ids"])
|
|
308
|
+
check_type(argname="argument target_resource_tags", value=target_resource_tags, expected_type=type_hints["target_resource_tags"])
|
|
309
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
310
|
+
"account_ids": account_ids,
|
|
311
|
+
}
|
|
312
|
+
if target_resource_tags is not None:
|
|
313
|
+
self._values["target_resource_tags"] = target_resource_tags
|
|
314
|
+
|
|
315
|
+
@builtins.property
|
|
316
|
+
def account_ids(self) -> typing.List[builtins.str]:
|
|
317
|
+
'''The CIS target account ids.
|
|
318
|
+
|
|
319
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html#cfn-inspectorv2-cisscanconfiguration-cistargets-accountids
|
|
320
|
+
'''
|
|
321
|
+
result = self._values.get("account_ids")
|
|
322
|
+
assert result is not None, "Required property 'account_ids' is missing"
|
|
323
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
324
|
+
|
|
325
|
+
@builtins.property
|
|
326
|
+
def target_resource_tags(
|
|
327
|
+
self,
|
|
328
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.List[builtins.str]]]]:
|
|
329
|
+
'''The CIS target resource tags.
|
|
330
|
+
|
|
331
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html#cfn-inspectorv2-cisscanconfiguration-cistargets-targetresourcetags
|
|
332
|
+
'''
|
|
333
|
+
result = self._values.get("target_resource_tags")
|
|
334
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.List[builtins.str]]]], result)
|
|
335
|
+
|
|
336
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
337
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
338
|
+
|
|
339
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
340
|
+
return not (rhs == self)
|
|
341
|
+
|
|
342
|
+
def __repr__(self) -> str:
|
|
343
|
+
return "CisTargetsProperty(%s)" % ", ".join(
|
|
344
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
@jsii.data_type(
|
|
348
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty",
|
|
349
|
+
jsii_struct_bases=[],
|
|
350
|
+
name_mapping={"start_time": "startTime"},
|
|
351
|
+
)
|
|
352
|
+
class DailyScheduleProperty:
|
|
353
|
+
def __init__(
|
|
354
|
+
self,
|
|
355
|
+
*,
|
|
356
|
+
start_time: typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.TimeProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
357
|
+
) -> None:
|
|
358
|
+
'''A daily schedule.
|
|
359
|
+
|
|
360
|
+
:param start_time: The schedule start time.
|
|
361
|
+
|
|
362
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-dailyschedule.html
|
|
363
|
+
:exampleMetadata: fixture=_generated
|
|
364
|
+
|
|
365
|
+
Example::
|
|
366
|
+
|
|
367
|
+
# The code below shows an example of how to instantiate this type.
|
|
368
|
+
# The values are placeholders you should change.
|
|
369
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
370
|
+
|
|
371
|
+
daily_schedule_property = inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty(
|
|
372
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
373
|
+
time_of_day="timeOfDay",
|
|
374
|
+
time_zone="timeZone"
|
|
375
|
+
)
|
|
376
|
+
)
|
|
377
|
+
'''
|
|
378
|
+
if __debug__:
|
|
379
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bd3a6a48de82a0a7da55bb17cc5099cc069382b4a48c7b97e3ef62fa2f60aa59)
|
|
380
|
+
check_type(argname="argument start_time", value=start_time, expected_type=type_hints["start_time"])
|
|
381
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
382
|
+
"start_time": start_time,
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
@builtins.property
|
|
386
|
+
def start_time(
|
|
387
|
+
self,
|
|
388
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.TimeProperty"]:
|
|
389
|
+
'''The schedule start time.
|
|
390
|
+
|
|
391
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-dailyschedule.html#cfn-inspectorv2-cisscanconfiguration-dailyschedule-starttime
|
|
392
|
+
'''
|
|
393
|
+
result = self._values.get("start_time")
|
|
394
|
+
assert result is not None, "Required property 'start_time' is missing"
|
|
395
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.TimeProperty"], result)
|
|
396
|
+
|
|
397
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
398
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
399
|
+
|
|
400
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
401
|
+
return not (rhs == self)
|
|
402
|
+
|
|
403
|
+
def __repr__(self) -> str:
|
|
404
|
+
return "DailyScheduleProperty(%s)" % ", ".join(
|
|
405
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
406
|
+
)
|
|
407
|
+
|
|
408
|
+
@jsii.data_type(
|
|
409
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty",
|
|
410
|
+
jsii_struct_bases=[],
|
|
411
|
+
name_mapping={"day": "day", "start_time": "startTime"},
|
|
412
|
+
)
|
|
413
|
+
class MonthlyScheduleProperty:
|
|
414
|
+
def __init__(
|
|
415
|
+
self,
|
|
416
|
+
*,
|
|
417
|
+
day: builtins.str,
|
|
418
|
+
start_time: typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.TimeProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
419
|
+
) -> None:
|
|
420
|
+
'''A monthly schedule.
|
|
421
|
+
|
|
422
|
+
:param day: The monthly schedule's day.
|
|
423
|
+
:param start_time: The monthly schedule's start time.
|
|
424
|
+
|
|
425
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html
|
|
426
|
+
:exampleMetadata: fixture=_generated
|
|
427
|
+
|
|
428
|
+
Example::
|
|
429
|
+
|
|
430
|
+
# The code below shows an example of how to instantiate this type.
|
|
431
|
+
# The values are placeholders you should change.
|
|
432
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
433
|
+
|
|
434
|
+
monthly_schedule_property = inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty(
|
|
435
|
+
day="day",
|
|
436
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
437
|
+
time_of_day="timeOfDay",
|
|
438
|
+
time_zone="timeZone"
|
|
439
|
+
)
|
|
440
|
+
)
|
|
441
|
+
'''
|
|
442
|
+
if __debug__:
|
|
443
|
+
type_hints = typing.get_type_hints(_typecheckingstub__100314319c9ea946d9251b6fcc3341b05bf63331e32e3a7f7aa894b6b8421861)
|
|
444
|
+
check_type(argname="argument day", value=day, expected_type=type_hints["day"])
|
|
445
|
+
check_type(argname="argument start_time", value=start_time, expected_type=type_hints["start_time"])
|
|
446
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
447
|
+
"day": day,
|
|
448
|
+
"start_time": start_time,
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
@builtins.property
|
|
452
|
+
def day(self) -> builtins.str:
|
|
453
|
+
'''The monthly schedule's day.
|
|
454
|
+
|
|
455
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html#cfn-inspectorv2-cisscanconfiguration-monthlyschedule-day
|
|
456
|
+
'''
|
|
457
|
+
result = self._values.get("day")
|
|
458
|
+
assert result is not None, "Required property 'day' is missing"
|
|
459
|
+
return typing.cast(builtins.str, result)
|
|
460
|
+
|
|
461
|
+
@builtins.property
|
|
462
|
+
def start_time(
|
|
463
|
+
self,
|
|
464
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.TimeProperty"]:
|
|
465
|
+
'''The monthly schedule's start time.
|
|
466
|
+
|
|
467
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html#cfn-inspectorv2-cisscanconfiguration-monthlyschedule-starttime
|
|
468
|
+
'''
|
|
469
|
+
result = self._values.get("start_time")
|
|
470
|
+
assert result is not None, "Required property 'start_time' is missing"
|
|
471
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.TimeProperty"], result)
|
|
472
|
+
|
|
473
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
474
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
475
|
+
|
|
476
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
477
|
+
return not (rhs == self)
|
|
478
|
+
|
|
479
|
+
def __repr__(self) -> str:
|
|
480
|
+
return "MonthlyScheduleProperty(%s)" % ", ".join(
|
|
481
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
482
|
+
)
|
|
483
|
+
|
|
484
|
+
@jsii.data_type(
|
|
485
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfiguration.ScheduleProperty",
|
|
486
|
+
jsii_struct_bases=[],
|
|
487
|
+
name_mapping={
|
|
488
|
+
"daily": "daily",
|
|
489
|
+
"monthly": "monthly",
|
|
490
|
+
"one_time": "oneTime",
|
|
491
|
+
"weekly": "weekly",
|
|
492
|
+
},
|
|
493
|
+
)
|
|
494
|
+
class ScheduleProperty:
|
|
495
|
+
def __init__(
|
|
496
|
+
self,
|
|
497
|
+
*,
|
|
498
|
+
daily: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.DailyScheduleProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
499
|
+
monthly: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.MonthlyScheduleProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
500
|
+
one_time: typing.Any = None,
|
|
501
|
+
weekly: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.WeeklyScheduleProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
502
|
+
) -> None:
|
|
503
|
+
'''The schedule the CIS scan configuration runs on.
|
|
504
|
+
|
|
505
|
+
Each CIS scan configuration has exactly one type of schedule.
|
|
506
|
+
|
|
507
|
+
:param daily: A daily schedule.
|
|
508
|
+
:param monthly: A monthly schedule.
|
|
509
|
+
:param one_time: A one time schedule.
|
|
510
|
+
:param weekly: A weekly schedule.
|
|
511
|
+
|
|
512
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html
|
|
513
|
+
:exampleMetadata: fixture=_generated
|
|
514
|
+
|
|
515
|
+
Example::
|
|
516
|
+
|
|
517
|
+
# The code below shows an example of how to instantiate this type.
|
|
518
|
+
# The values are placeholders you should change.
|
|
519
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
520
|
+
|
|
521
|
+
# one_time: Any
|
|
522
|
+
|
|
523
|
+
schedule_property = inspectorv2.CfnCisScanConfiguration.ScheduleProperty(
|
|
524
|
+
daily=inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty(
|
|
525
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
526
|
+
time_of_day="timeOfDay",
|
|
527
|
+
time_zone="timeZone"
|
|
528
|
+
)
|
|
529
|
+
),
|
|
530
|
+
monthly=inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty(
|
|
531
|
+
day="day",
|
|
532
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
533
|
+
time_of_day="timeOfDay",
|
|
534
|
+
time_zone="timeZone"
|
|
535
|
+
)
|
|
536
|
+
),
|
|
537
|
+
one_time=one_time,
|
|
538
|
+
weekly=inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty(
|
|
539
|
+
days=["days"],
|
|
540
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
541
|
+
time_of_day="timeOfDay",
|
|
542
|
+
time_zone="timeZone"
|
|
543
|
+
)
|
|
544
|
+
)
|
|
545
|
+
)
|
|
546
|
+
'''
|
|
547
|
+
if __debug__:
|
|
548
|
+
type_hints = typing.get_type_hints(_typecheckingstub__db99f3a188203b64b30f42f8814cca36f1b859733833ecc2b25042b4eb91d395)
|
|
549
|
+
check_type(argname="argument daily", value=daily, expected_type=type_hints["daily"])
|
|
550
|
+
check_type(argname="argument monthly", value=monthly, expected_type=type_hints["monthly"])
|
|
551
|
+
check_type(argname="argument one_time", value=one_time, expected_type=type_hints["one_time"])
|
|
552
|
+
check_type(argname="argument weekly", value=weekly, expected_type=type_hints["weekly"])
|
|
553
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
554
|
+
if daily is not None:
|
|
555
|
+
self._values["daily"] = daily
|
|
556
|
+
if monthly is not None:
|
|
557
|
+
self._values["monthly"] = monthly
|
|
558
|
+
if one_time is not None:
|
|
559
|
+
self._values["one_time"] = one_time
|
|
560
|
+
if weekly is not None:
|
|
561
|
+
self._values["weekly"] = weekly
|
|
562
|
+
|
|
563
|
+
@builtins.property
|
|
564
|
+
def daily(
|
|
565
|
+
self,
|
|
566
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.DailyScheduleProperty"]]:
|
|
567
|
+
'''A daily schedule.
|
|
568
|
+
|
|
569
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-daily
|
|
570
|
+
'''
|
|
571
|
+
result = self._values.get("daily")
|
|
572
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.DailyScheduleProperty"]], result)
|
|
573
|
+
|
|
574
|
+
@builtins.property
|
|
575
|
+
def monthly(
|
|
576
|
+
self,
|
|
577
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.MonthlyScheduleProperty"]]:
|
|
578
|
+
'''A monthly schedule.
|
|
579
|
+
|
|
580
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-monthly
|
|
581
|
+
'''
|
|
582
|
+
result = self._values.get("monthly")
|
|
583
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.MonthlyScheduleProperty"]], result)
|
|
584
|
+
|
|
585
|
+
@builtins.property
|
|
586
|
+
def one_time(self) -> typing.Any:
|
|
587
|
+
'''A one time schedule.
|
|
588
|
+
|
|
589
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-onetime
|
|
590
|
+
'''
|
|
591
|
+
result = self._values.get("one_time")
|
|
592
|
+
return typing.cast(typing.Any, result)
|
|
593
|
+
|
|
594
|
+
@builtins.property
|
|
595
|
+
def weekly(
|
|
596
|
+
self,
|
|
597
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.WeeklyScheduleProperty"]]:
|
|
598
|
+
'''A weekly schedule.
|
|
599
|
+
|
|
600
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-weekly
|
|
601
|
+
'''
|
|
602
|
+
result = self._values.get("weekly")
|
|
603
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.WeeklyScheduleProperty"]], result)
|
|
604
|
+
|
|
605
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
606
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
607
|
+
|
|
608
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
609
|
+
return not (rhs == self)
|
|
610
|
+
|
|
611
|
+
def __repr__(self) -> str:
|
|
612
|
+
return "ScheduleProperty(%s)" % ", ".join(
|
|
613
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
614
|
+
)
|
|
615
|
+
|
|
616
|
+
@jsii.data_type(
|
|
617
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfiguration.TimeProperty",
|
|
618
|
+
jsii_struct_bases=[],
|
|
619
|
+
name_mapping={"time_of_day": "timeOfDay", "time_zone": "timeZone"},
|
|
620
|
+
)
|
|
621
|
+
class TimeProperty:
|
|
622
|
+
def __init__(
|
|
623
|
+
self,
|
|
624
|
+
*,
|
|
625
|
+
time_of_day: builtins.str,
|
|
626
|
+
time_zone: builtins.str,
|
|
627
|
+
) -> None:
|
|
628
|
+
'''The time.
|
|
629
|
+
|
|
630
|
+
:param time_of_day: The time of day in 24-hour format (00:00).
|
|
631
|
+
:param time_zone: The timezone.
|
|
632
|
+
|
|
633
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html
|
|
634
|
+
:exampleMetadata: fixture=_generated
|
|
635
|
+
|
|
636
|
+
Example::
|
|
637
|
+
|
|
638
|
+
# The code below shows an example of how to instantiate this type.
|
|
639
|
+
# The values are placeholders you should change.
|
|
640
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
641
|
+
|
|
642
|
+
time_property = inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
643
|
+
time_of_day="timeOfDay",
|
|
644
|
+
time_zone="timeZone"
|
|
645
|
+
)
|
|
646
|
+
'''
|
|
647
|
+
if __debug__:
|
|
648
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f2452dd795ce037d8e45e12f3b1e33517e2f22095c208d70f01cce9d97cc7f45)
|
|
649
|
+
check_type(argname="argument time_of_day", value=time_of_day, expected_type=type_hints["time_of_day"])
|
|
650
|
+
check_type(argname="argument time_zone", value=time_zone, expected_type=type_hints["time_zone"])
|
|
651
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
652
|
+
"time_of_day": time_of_day,
|
|
653
|
+
"time_zone": time_zone,
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
@builtins.property
|
|
657
|
+
def time_of_day(self) -> builtins.str:
|
|
658
|
+
'''The time of day in 24-hour format (00:00).
|
|
659
|
+
|
|
660
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html#cfn-inspectorv2-cisscanconfiguration-time-timeofday
|
|
661
|
+
'''
|
|
662
|
+
result = self._values.get("time_of_day")
|
|
663
|
+
assert result is not None, "Required property 'time_of_day' is missing"
|
|
664
|
+
return typing.cast(builtins.str, result)
|
|
665
|
+
|
|
666
|
+
@builtins.property
|
|
667
|
+
def time_zone(self) -> builtins.str:
|
|
668
|
+
'''The timezone.
|
|
669
|
+
|
|
670
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html#cfn-inspectorv2-cisscanconfiguration-time-timezone
|
|
671
|
+
'''
|
|
672
|
+
result = self._values.get("time_zone")
|
|
673
|
+
assert result is not None, "Required property 'time_zone' is missing"
|
|
674
|
+
return typing.cast(builtins.str, result)
|
|
675
|
+
|
|
676
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
677
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
678
|
+
|
|
679
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
680
|
+
return not (rhs == self)
|
|
681
|
+
|
|
682
|
+
def __repr__(self) -> str:
|
|
683
|
+
return "TimeProperty(%s)" % ", ".join(
|
|
684
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
685
|
+
)
|
|
686
|
+
|
|
687
|
+
@jsii.data_type(
|
|
688
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty",
|
|
689
|
+
jsii_struct_bases=[],
|
|
690
|
+
name_mapping={"days": "days", "start_time": "startTime"},
|
|
691
|
+
)
|
|
692
|
+
class WeeklyScheduleProperty:
|
|
693
|
+
def __init__(
|
|
694
|
+
self,
|
|
695
|
+
*,
|
|
696
|
+
days: typing.Sequence[builtins.str],
|
|
697
|
+
start_time: typing.Union[_IResolvable_da3f097b, typing.Union["CfnCisScanConfiguration.TimeProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
698
|
+
) -> None:
|
|
699
|
+
'''A weekly schedule.
|
|
700
|
+
|
|
701
|
+
:param days: The weekly schedule's days.
|
|
702
|
+
:param start_time: The weekly schedule's start time.
|
|
703
|
+
|
|
704
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html
|
|
705
|
+
:exampleMetadata: fixture=_generated
|
|
706
|
+
|
|
707
|
+
Example::
|
|
708
|
+
|
|
709
|
+
# The code below shows an example of how to instantiate this type.
|
|
710
|
+
# The values are placeholders you should change.
|
|
711
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
712
|
+
|
|
713
|
+
weekly_schedule_property = inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty(
|
|
714
|
+
days=["days"],
|
|
715
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
716
|
+
time_of_day="timeOfDay",
|
|
717
|
+
time_zone="timeZone"
|
|
718
|
+
)
|
|
719
|
+
)
|
|
720
|
+
'''
|
|
721
|
+
if __debug__:
|
|
722
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d30b6b9756e498926a5cf63c7bbf5e7f937d68b176005d1670779697c6b3abb4)
|
|
723
|
+
check_type(argname="argument days", value=days, expected_type=type_hints["days"])
|
|
724
|
+
check_type(argname="argument start_time", value=start_time, expected_type=type_hints["start_time"])
|
|
725
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
726
|
+
"days": days,
|
|
727
|
+
"start_time": start_time,
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
@builtins.property
|
|
731
|
+
def days(self) -> typing.List[builtins.str]:
|
|
732
|
+
'''The weekly schedule's days.
|
|
733
|
+
|
|
734
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html#cfn-inspectorv2-cisscanconfiguration-weeklyschedule-days
|
|
735
|
+
'''
|
|
736
|
+
result = self._values.get("days")
|
|
737
|
+
assert result is not None, "Required property 'days' is missing"
|
|
738
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
739
|
+
|
|
740
|
+
@builtins.property
|
|
741
|
+
def start_time(
|
|
742
|
+
self,
|
|
743
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.TimeProperty"]:
|
|
744
|
+
'''The weekly schedule's start time.
|
|
745
|
+
|
|
746
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html#cfn-inspectorv2-cisscanconfiguration-weeklyschedule-starttime
|
|
747
|
+
'''
|
|
748
|
+
result = self._values.get("start_time")
|
|
749
|
+
assert result is not None, "Required property 'start_time' is missing"
|
|
750
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnCisScanConfiguration.TimeProperty"], result)
|
|
751
|
+
|
|
752
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
753
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
754
|
+
|
|
755
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
756
|
+
return not (rhs == self)
|
|
757
|
+
|
|
758
|
+
def __repr__(self) -> str:
|
|
759
|
+
return "WeeklyScheduleProperty(%s)" % ", ".join(
|
|
760
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
761
|
+
)
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
@jsii.data_type(
|
|
765
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCisScanConfigurationProps",
|
|
766
|
+
jsii_struct_bases=[],
|
|
767
|
+
name_mapping={
|
|
768
|
+
"scan_name": "scanName",
|
|
769
|
+
"schedule": "schedule",
|
|
770
|
+
"security_level": "securityLevel",
|
|
771
|
+
"tags": "tags",
|
|
772
|
+
"targets": "targets",
|
|
773
|
+
},
|
|
774
|
+
)
|
|
775
|
+
class CfnCisScanConfigurationProps:
|
|
776
|
+
def __init__(
|
|
777
|
+
self,
|
|
778
|
+
*,
|
|
779
|
+
scan_name: typing.Optional[builtins.str] = None,
|
|
780
|
+
schedule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.ScheduleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
781
|
+
security_level: typing.Optional[builtins.str] = None,
|
|
782
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
783
|
+
targets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.CisTargetsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
784
|
+
) -> None:
|
|
785
|
+
'''Properties for defining a ``CfnCisScanConfiguration``.
|
|
786
|
+
|
|
787
|
+
:param scan_name: The name of the CIS scan configuration.
|
|
788
|
+
:param schedule: The CIS scan configuration's schedule.
|
|
789
|
+
:param security_level: The CIS scan configuration's CIS Benchmark level.
|
|
790
|
+
:param tags: The CIS scan configuration's tags.
|
|
791
|
+
:param targets: The CIS scan configuration's targets.
|
|
792
|
+
|
|
793
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html
|
|
794
|
+
:exampleMetadata: fixture=_generated
|
|
795
|
+
|
|
796
|
+
Example::
|
|
797
|
+
|
|
798
|
+
# The code below shows an example of how to instantiate this type.
|
|
799
|
+
# The values are placeholders you should change.
|
|
800
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
801
|
+
|
|
802
|
+
# one_time: Any
|
|
803
|
+
|
|
804
|
+
cfn_cis_scan_configuration_props = inspectorv2.CfnCisScanConfigurationProps(
|
|
805
|
+
scan_name="scanName",
|
|
806
|
+
schedule=inspectorv2.CfnCisScanConfiguration.ScheduleProperty(
|
|
807
|
+
daily=inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty(
|
|
808
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
809
|
+
time_of_day="timeOfDay",
|
|
810
|
+
time_zone="timeZone"
|
|
811
|
+
)
|
|
812
|
+
),
|
|
813
|
+
monthly=inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty(
|
|
814
|
+
day="day",
|
|
815
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
816
|
+
time_of_day="timeOfDay",
|
|
817
|
+
time_zone="timeZone"
|
|
818
|
+
)
|
|
819
|
+
),
|
|
820
|
+
one_time=one_time,
|
|
821
|
+
weekly=inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty(
|
|
822
|
+
days=["days"],
|
|
823
|
+
start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
|
|
824
|
+
time_of_day="timeOfDay",
|
|
825
|
+
time_zone="timeZone"
|
|
826
|
+
)
|
|
827
|
+
)
|
|
828
|
+
),
|
|
829
|
+
security_level="securityLevel",
|
|
830
|
+
tags={
|
|
831
|
+
"tags_key": "tags"
|
|
832
|
+
},
|
|
833
|
+
targets=inspectorv2.CfnCisScanConfiguration.CisTargetsProperty(
|
|
834
|
+
account_ids=["accountIds"],
|
|
835
|
+
|
|
836
|
+
# the properties below are optional
|
|
837
|
+
target_resource_tags={
|
|
838
|
+
"target_resource_tags_key": ["targetResourceTags"]
|
|
839
|
+
}
|
|
840
|
+
)
|
|
841
|
+
)
|
|
842
|
+
'''
|
|
843
|
+
if __debug__:
|
|
844
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e3f0430cb9cf97c73c0c85526ac298bc695a6c9d3bf5e578a6d9b5c85d5623dc)
|
|
845
|
+
check_type(argname="argument scan_name", value=scan_name, expected_type=type_hints["scan_name"])
|
|
846
|
+
check_type(argname="argument schedule", value=schedule, expected_type=type_hints["schedule"])
|
|
847
|
+
check_type(argname="argument security_level", value=security_level, expected_type=type_hints["security_level"])
|
|
848
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
849
|
+
check_type(argname="argument targets", value=targets, expected_type=type_hints["targets"])
|
|
850
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
851
|
+
if scan_name is not None:
|
|
852
|
+
self._values["scan_name"] = scan_name
|
|
853
|
+
if schedule is not None:
|
|
854
|
+
self._values["schedule"] = schedule
|
|
855
|
+
if security_level is not None:
|
|
856
|
+
self._values["security_level"] = security_level
|
|
857
|
+
if tags is not None:
|
|
858
|
+
self._values["tags"] = tags
|
|
859
|
+
if targets is not None:
|
|
860
|
+
self._values["targets"] = targets
|
|
861
|
+
|
|
862
|
+
@builtins.property
|
|
863
|
+
def scan_name(self) -> typing.Optional[builtins.str]:
|
|
864
|
+
'''The name of the CIS scan configuration.
|
|
865
|
+
|
|
866
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-scanname
|
|
867
|
+
'''
|
|
868
|
+
result = self._values.get("scan_name")
|
|
869
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
870
|
+
|
|
871
|
+
@builtins.property
|
|
872
|
+
def schedule(
|
|
873
|
+
self,
|
|
874
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCisScanConfiguration.ScheduleProperty]]:
|
|
875
|
+
'''The CIS scan configuration's schedule.
|
|
876
|
+
|
|
877
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-schedule
|
|
878
|
+
'''
|
|
879
|
+
result = self._values.get("schedule")
|
|
880
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCisScanConfiguration.ScheduleProperty]], result)
|
|
881
|
+
|
|
882
|
+
@builtins.property
|
|
883
|
+
def security_level(self) -> typing.Optional[builtins.str]:
|
|
884
|
+
'''The CIS scan configuration's CIS Benchmark level.
|
|
885
|
+
|
|
886
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-securitylevel
|
|
887
|
+
'''
|
|
888
|
+
result = self._values.get("security_level")
|
|
889
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
890
|
+
|
|
891
|
+
@builtins.property
|
|
892
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
893
|
+
'''The CIS scan configuration's tags.
|
|
894
|
+
|
|
895
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-tags
|
|
896
|
+
'''
|
|
897
|
+
result = self._values.get("tags")
|
|
898
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
899
|
+
|
|
900
|
+
@builtins.property
|
|
901
|
+
def targets(
|
|
902
|
+
self,
|
|
903
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCisScanConfiguration.CisTargetsProperty]]:
|
|
904
|
+
'''The CIS scan configuration's targets.
|
|
905
|
+
|
|
906
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-targets
|
|
907
|
+
'''
|
|
908
|
+
result = self._values.get("targets")
|
|
909
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCisScanConfiguration.CisTargetsProperty]], result)
|
|
910
|
+
|
|
911
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
912
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
913
|
+
|
|
914
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
915
|
+
return not (rhs == self)
|
|
916
|
+
|
|
917
|
+
def __repr__(self) -> str:
|
|
918
|
+
return "CfnCisScanConfigurationProps(%s)" % ", ".join(
|
|
919
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
920
|
+
)
|
|
921
|
+
|
|
922
|
+
|
|
51
923
|
@jsii.implements(_IInspectable_c2943556)
|
|
52
924
|
class CfnFilter(
|
|
53
925
|
_CfnResource_9df397a6,
|
|
@@ -1878,12 +2750,129 @@ class CfnFilterProps:
|
|
|
1878
2750
|
|
|
1879
2751
|
|
|
1880
2752
|
__all__ = [
|
|
2753
|
+
"CfnCisScanConfiguration",
|
|
2754
|
+
"CfnCisScanConfigurationProps",
|
|
1881
2755
|
"CfnFilter",
|
|
1882
2756
|
"CfnFilterProps",
|
|
1883
2757
|
]
|
|
1884
2758
|
|
|
1885
2759
|
publication.publish()
|
|
1886
2760
|
|
|
2761
|
+
def _typecheckingstub__ee74cd979e0690afc5238694387a2bb443783c172f8af7544b4b5c468df80b9c(
|
|
2762
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2763
|
+
id: builtins.str,
|
|
2764
|
+
*,
|
|
2765
|
+
scan_name: typing.Optional[builtins.str] = None,
|
|
2766
|
+
schedule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.ScheduleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2767
|
+
security_level: typing.Optional[builtins.str] = None,
|
|
2768
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2769
|
+
targets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.CisTargetsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2770
|
+
) -> None:
|
|
2771
|
+
"""Type checking stubs"""
|
|
2772
|
+
pass
|
|
2773
|
+
|
|
2774
|
+
def _typecheckingstub__1c340cf5a8052b5b5d1021305af92e23dcb4f62645a1014b0a49bb031d376ee8(
|
|
2775
|
+
inspector: _TreeInspector_488e0dd5,
|
|
2776
|
+
) -> None:
|
|
2777
|
+
"""Type checking stubs"""
|
|
2778
|
+
pass
|
|
2779
|
+
|
|
2780
|
+
def _typecheckingstub__daf01f89651352328420f5a52535d8376706a979b3cb022464732eddc33e94c8(
|
|
2781
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2782
|
+
) -> None:
|
|
2783
|
+
"""Type checking stubs"""
|
|
2784
|
+
pass
|
|
2785
|
+
|
|
2786
|
+
def _typecheckingstub__8f6f074ec34751eb6d66964ee6738d096c1429db3564cba2005e530e659871bc(
|
|
2787
|
+
value: typing.Optional[builtins.str],
|
|
2788
|
+
) -> None:
|
|
2789
|
+
"""Type checking stubs"""
|
|
2790
|
+
pass
|
|
2791
|
+
|
|
2792
|
+
def _typecheckingstub__17c38c82086f8ffe9712e88585d2f980663e72bbb5b6ac70574594200cb759c2(
|
|
2793
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCisScanConfiguration.ScheduleProperty]],
|
|
2794
|
+
) -> None:
|
|
2795
|
+
"""Type checking stubs"""
|
|
2796
|
+
pass
|
|
2797
|
+
|
|
2798
|
+
def _typecheckingstub__53a976b81d95f07052322a80e8b1ff546ae083bdb3cb3d358b91e5b7e50b0909(
|
|
2799
|
+
value: typing.Optional[builtins.str],
|
|
2800
|
+
) -> None:
|
|
2801
|
+
"""Type checking stubs"""
|
|
2802
|
+
pass
|
|
2803
|
+
|
|
2804
|
+
def _typecheckingstub__5b4e1fac23c27cbc692267473e4cf9258b43062b9aea2a43b116dcfb105adb0d(
|
|
2805
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
2806
|
+
) -> None:
|
|
2807
|
+
"""Type checking stubs"""
|
|
2808
|
+
pass
|
|
2809
|
+
|
|
2810
|
+
def _typecheckingstub__8afffccf2a9a470f423d247abd4a6dfe735dc39c53a2abe26c8cdb1844ec12a2(
|
|
2811
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCisScanConfiguration.CisTargetsProperty]],
|
|
2812
|
+
) -> None:
|
|
2813
|
+
"""Type checking stubs"""
|
|
2814
|
+
pass
|
|
2815
|
+
|
|
2816
|
+
def _typecheckingstub__48b07d123221faefb49073a28736f1aec9dc2a488247f39ec213274809cd3b6a(
|
|
2817
|
+
*,
|
|
2818
|
+
account_ids: typing.Sequence[builtins.str],
|
|
2819
|
+
target_resource_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Sequence[builtins.str]]]] = None,
|
|
2820
|
+
) -> None:
|
|
2821
|
+
"""Type checking stubs"""
|
|
2822
|
+
pass
|
|
2823
|
+
|
|
2824
|
+
def _typecheckingstub__bd3a6a48de82a0a7da55bb17cc5099cc069382b4a48c7b97e3ef62fa2f60aa59(
|
|
2825
|
+
*,
|
|
2826
|
+
start_time: typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.TimeProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2827
|
+
) -> None:
|
|
2828
|
+
"""Type checking stubs"""
|
|
2829
|
+
pass
|
|
2830
|
+
|
|
2831
|
+
def _typecheckingstub__100314319c9ea946d9251b6fcc3341b05bf63331e32e3a7f7aa894b6b8421861(
|
|
2832
|
+
*,
|
|
2833
|
+
day: builtins.str,
|
|
2834
|
+
start_time: typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.TimeProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2835
|
+
) -> None:
|
|
2836
|
+
"""Type checking stubs"""
|
|
2837
|
+
pass
|
|
2838
|
+
|
|
2839
|
+
def _typecheckingstub__db99f3a188203b64b30f42f8814cca36f1b859733833ecc2b25042b4eb91d395(
|
|
2840
|
+
*,
|
|
2841
|
+
daily: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.DailyScheduleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2842
|
+
monthly: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.MonthlyScheduleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2843
|
+
one_time: typing.Any = None,
|
|
2844
|
+
weekly: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.WeeklyScheduleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2845
|
+
) -> None:
|
|
2846
|
+
"""Type checking stubs"""
|
|
2847
|
+
pass
|
|
2848
|
+
|
|
2849
|
+
def _typecheckingstub__f2452dd795ce037d8e45e12f3b1e33517e2f22095c208d70f01cce9d97cc7f45(
|
|
2850
|
+
*,
|
|
2851
|
+
time_of_day: builtins.str,
|
|
2852
|
+
time_zone: builtins.str,
|
|
2853
|
+
) -> None:
|
|
2854
|
+
"""Type checking stubs"""
|
|
2855
|
+
pass
|
|
2856
|
+
|
|
2857
|
+
def _typecheckingstub__d30b6b9756e498926a5cf63c7bbf5e7f937d68b176005d1670779697c6b3abb4(
|
|
2858
|
+
*,
|
|
2859
|
+
days: typing.Sequence[builtins.str],
|
|
2860
|
+
start_time: typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.TimeProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2861
|
+
) -> None:
|
|
2862
|
+
"""Type checking stubs"""
|
|
2863
|
+
pass
|
|
2864
|
+
|
|
2865
|
+
def _typecheckingstub__e3f0430cb9cf97c73c0c85526ac298bc695a6c9d3bf5e578a6d9b5c85d5623dc(
|
|
2866
|
+
*,
|
|
2867
|
+
scan_name: typing.Optional[builtins.str] = None,
|
|
2868
|
+
schedule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.ScheduleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2869
|
+
security_level: typing.Optional[builtins.str] = None,
|
|
2870
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2871
|
+
targets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCisScanConfiguration.CisTargetsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2872
|
+
) -> None:
|
|
2873
|
+
"""Type checking stubs"""
|
|
2874
|
+
pass
|
|
2875
|
+
|
|
1887
2876
|
def _typecheckingstub__76aaac8f8d755716225a5dd2d4902f3e7ec007381fa82a2d163553362c975c9d(
|
|
1888
2877
|
scope: _constructs_77d1e7e8.Construct,
|
|
1889
2878
|
id: builtins.str,
|