aws-cdk-lib 2.193.0__py3-none-any.whl → 2.195.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 +2 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.193.0.jsii.tgz → aws-cdk-lib@2.195.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +63 -2
- aws_cdk/aws_aps/__init__.py +34 -22
- aws_cdk/aws_autoscaling/__init__.py +8 -0
- aws_cdk/aws_batch/__init__.py +2 -2
- aws_cdk/aws_bedrock/__init__.py +587 -8
- aws_cdk/aws_ce/__init__.py +34 -22
- aws_cdk/aws_cloudfront/__init__.py +6090 -3972
- aws_cdk/aws_codebuild/__init__.py +19 -10
- aws_cdk/aws_codepipeline/__init__.py +108 -0
- aws_cdk/aws_cognito/__init__.py +132 -6
- aws_cdk/aws_datazone/__init__.py +370 -0
- aws_cdk/aws_dlm/__init__.py +2 -2
- aws_cdk/aws_dsql/__init__.py +9 -0
- aws_cdk/aws_dynamodb/__init__.py +5 -3
- aws_cdk/aws_ec2/__init__.py +138 -11
- aws_cdk/aws_ecr/__init__.py +419 -0
- aws_cdk/aws_ecs/__init__.py +22 -25
- aws_cdk/aws_entityresolution/__init__.py +7 -2
- aws_cdk/aws_events/__init__.py +41 -8
- aws_cdk/aws_fsx/__init__.py +2 -3
- aws_cdk/aws_imagebuilder/__init__.py +160 -10
- aws_cdk/aws_kinesisanalytics/__init__.py +4 -2
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +4 -2
- aws_cdk/aws_lambda/__init__.py +1 -1
- aws_cdk/aws_medialive/__init__.py +4 -6
- aws_cdk/aws_mediapackagev2/__init__.py +50 -6
- aws_cdk/aws_mediatailor/__init__.py +115 -0
- aws_cdk/aws_memorydb/__init__.py +21 -11
- aws_cdk/aws_oam/__init__.py +43 -10
- aws_cdk/aws_omics/__init__.py +5 -5
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_quicksight/__init__.py +1 -1
- aws_cdk/aws_rds/__init__.py +87 -8
- aws_cdk/aws_redshiftserverless/__init__.py +20 -0
- aws_cdk/aws_route53/__init__.py +18 -14
- aws_cdk/aws_route53_targets/__init__.py +62 -1
- aws_cdk/aws_route53profiles/__init__.py +1 -1
- aws_cdk/aws_route53resolver/__init__.py +41 -0
- aws_cdk/aws_s3/__init__.py +2 -4
- aws_cdk/aws_s3_notifications/__init__.py +5 -5
- aws_cdk/aws_sagemaker/__init__.py +255 -8
- aws_cdk/aws_ssmguiconnect/__init__.py +544 -0
- aws_cdk/aws_vpclattice/__init__.py +6 -2
- aws_cdk/aws_wisdom/__init__.py +25 -6
- aws_cdk/cloud_assembly_schema/__init__.py +7 -1
- {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.195.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.195.0.dist-info}/RECORD +54 -53
- {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.195.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.195.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.195.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.195.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ecr/__init__.py
CHANGED
|
@@ -1248,6 +1248,365 @@ class CfnRegistryPolicyProps:
|
|
|
1248
1248
|
)
|
|
1249
1249
|
|
|
1250
1250
|
|
|
1251
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
1252
|
+
class CfnRegistryScanningConfiguration(
|
|
1253
|
+
_CfnResource_9df397a6,
|
|
1254
|
+
metaclass=jsii.JSIIMeta,
|
|
1255
|
+
jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration",
|
|
1256
|
+
):
|
|
1257
|
+
'''The scanning configuration for a private registry.
|
|
1258
|
+
|
|
1259
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
|
|
1260
|
+
:cloudformationResource: AWS::ECR::RegistryScanningConfiguration
|
|
1261
|
+
:exampleMetadata: fixture=_generated
|
|
1262
|
+
|
|
1263
|
+
Example::
|
|
1264
|
+
|
|
1265
|
+
# The code below shows an example of how to instantiate this type.
|
|
1266
|
+
# The values are placeholders you should change.
|
|
1267
|
+
from aws_cdk import aws_ecr as ecr
|
|
1268
|
+
|
|
1269
|
+
cfn_registry_scanning_configuration = ecr.CfnRegistryScanningConfiguration(self, "MyCfnRegistryScanningConfiguration",
|
|
1270
|
+
rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
|
|
1271
|
+
repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
|
|
1272
|
+
filter="filter",
|
|
1273
|
+
filter_type="filterType"
|
|
1274
|
+
)],
|
|
1275
|
+
scan_frequency="scanFrequency"
|
|
1276
|
+
)],
|
|
1277
|
+
scan_type="scanType"
|
|
1278
|
+
)
|
|
1279
|
+
'''
|
|
1280
|
+
|
|
1281
|
+
def __init__(
|
|
1282
|
+
self,
|
|
1283
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1284
|
+
id: builtins.str,
|
|
1285
|
+
*,
|
|
1286
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRegistryScanningConfiguration.ScanningRuleProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
1287
|
+
scan_type: builtins.str,
|
|
1288
|
+
) -> None:
|
|
1289
|
+
'''
|
|
1290
|
+
:param scope: Scope in which this resource is defined.
|
|
1291
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1292
|
+
:param rules: The scanning rules associated with the registry.
|
|
1293
|
+
:param scan_type: The type of scanning configured for the registry.
|
|
1294
|
+
'''
|
|
1295
|
+
if __debug__:
|
|
1296
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6b68a41065b53c404ecfbf77d1c1dca4759228bec8020c901ec850026c1f0f7f)
|
|
1297
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1298
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1299
|
+
props = CfnRegistryScanningConfigurationProps(rules=rules, scan_type=scan_type)
|
|
1300
|
+
|
|
1301
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1302
|
+
|
|
1303
|
+
@jsii.member(jsii_name="inspect")
|
|
1304
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1305
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1306
|
+
|
|
1307
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1308
|
+
'''
|
|
1309
|
+
if __debug__:
|
|
1310
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c4d08cae9fcc3be8b1528f23c35bc9a22ca0fba2fab068fc08b75c1cfe389e24)
|
|
1311
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1312
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1313
|
+
|
|
1314
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1315
|
+
def _render_properties(
|
|
1316
|
+
self,
|
|
1317
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1318
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1319
|
+
'''
|
|
1320
|
+
:param props: -
|
|
1321
|
+
'''
|
|
1322
|
+
if __debug__:
|
|
1323
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fcd0a067b02317e542152310e0b6796223c0fe4536450fbf2cdfa3673b5fac6f)
|
|
1324
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1325
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1326
|
+
|
|
1327
|
+
@jsii.python.classproperty
|
|
1328
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1329
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1330
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1331
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1332
|
+
|
|
1333
|
+
@builtins.property
|
|
1334
|
+
@jsii.member(jsii_name="attrRegistryId")
|
|
1335
|
+
def attr_registry_id(self) -> builtins.str:
|
|
1336
|
+
'''The account ID of the destination registry.
|
|
1337
|
+
|
|
1338
|
+
:cloudformationAttribute: RegistryId
|
|
1339
|
+
'''
|
|
1340
|
+
return typing.cast(builtins.str, jsii.get(self, "attrRegistryId"))
|
|
1341
|
+
|
|
1342
|
+
@builtins.property
|
|
1343
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1344
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1345
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1346
|
+
|
|
1347
|
+
@builtins.property
|
|
1348
|
+
@jsii.member(jsii_name="rules")
|
|
1349
|
+
def rules(
|
|
1350
|
+
self,
|
|
1351
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]]:
|
|
1352
|
+
'''The scanning rules associated with the registry.'''
|
|
1353
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]], jsii.get(self, "rules"))
|
|
1354
|
+
|
|
1355
|
+
@rules.setter
|
|
1356
|
+
def rules(
|
|
1357
|
+
self,
|
|
1358
|
+
value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]],
|
|
1359
|
+
) -> None:
|
|
1360
|
+
if __debug__:
|
|
1361
|
+
type_hints = typing.get_type_hints(_typecheckingstub__921150d6d5faa8474ec7f3be3b2d6d58c6eb0b5024b547f0c929470055982457)
|
|
1362
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1363
|
+
jsii.set(self, "rules", value) # pyright: ignore[reportArgumentType]
|
|
1364
|
+
|
|
1365
|
+
@builtins.property
|
|
1366
|
+
@jsii.member(jsii_name="scanType")
|
|
1367
|
+
def scan_type(self) -> builtins.str:
|
|
1368
|
+
'''The type of scanning configured for the registry.'''
|
|
1369
|
+
return typing.cast(builtins.str, jsii.get(self, "scanType"))
|
|
1370
|
+
|
|
1371
|
+
@scan_type.setter
|
|
1372
|
+
def scan_type(self, value: builtins.str) -> None:
|
|
1373
|
+
if __debug__:
|
|
1374
|
+
type_hints = typing.get_type_hints(_typecheckingstub__94a43f834f1cd998ab3369a817b4af2fe53258974556dc78b9e2c75aaeaaa5ac)
|
|
1375
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1376
|
+
jsii.set(self, "scanType", value) # pyright: ignore[reportArgumentType]
|
|
1377
|
+
|
|
1378
|
+
@jsii.data_type(
|
|
1379
|
+
jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty",
|
|
1380
|
+
jsii_struct_bases=[],
|
|
1381
|
+
name_mapping={"filter": "filter", "filter_type": "filterType"},
|
|
1382
|
+
)
|
|
1383
|
+
class RepositoryFilterProperty:
|
|
1384
|
+
def __init__(self, *, filter: builtins.str, filter_type: builtins.str) -> None:
|
|
1385
|
+
'''The filter settings used with image replication.
|
|
1386
|
+
|
|
1387
|
+
Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.
|
|
1388
|
+
|
|
1389
|
+
:param filter: The filter to use when scanning.
|
|
1390
|
+
:param filter_type: The type associated with the filter.
|
|
1391
|
+
|
|
1392
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-repositoryfilter.html
|
|
1393
|
+
:exampleMetadata: fixture=_generated
|
|
1394
|
+
|
|
1395
|
+
Example::
|
|
1396
|
+
|
|
1397
|
+
# The code below shows an example of how to instantiate this type.
|
|
1398
|
+
# The values are placeholders you should change.
|
|
1399
|
+
from aws_cdk import aws_ecr as ecr
|
|
1400
|
+
|
|
1401
|
+
repository_filter_property = ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
|
|
1402
|
+
filter="filter",
|
|
1403
|
+
filter_type="filterType"
|
|
1404
|
+
)
|
|
1405
|
+
'''
|
|
1406
|
+
if __debug__:
|
|
1407
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9ff81a98ae71376276df972cda0909207513e4f0b7a1f6fea94a077f86e2b2f5)
|
|
1408
|
+
check_type(argname="argument filter", value=filter, expected_type=type_hints["filter"])
|
|
1409
|
+
check_type(argname="argument filter_type", value=filter_type, expected_type=type_hints["filter_type"])
|
|
1410
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1411
|
+
"filter": filter,
|
|
1412
|
+
"filter_type": filter_type,
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
@builtins.property
|
|
1416
|
+
def filter(self) -> builtins.str:
|
|
1417
|
+
'''The filter to use when scanning.
|
|
1418
|
+
|
|
1419
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-repositoryfilter.html#cfn-ecr-registryscanningconfiguration-repositoryfilter-filter
|
|
1420
|
+
'''
|
|
1421
|
+
result = self._values.get("filter")
|
|
1422
|
+
assert result is not None, "Required property 'filter' is missing"
|
|
1423
|
+
return typing.cast(builtins.str, result)
|
|
1424
|
+
|
|
1425
|
+
@builtins.property
|
|
1426
|
+
def filter_type(self) -> builtins.str:
|
|
1427
|
+
'''The type associated with the filter.
|
|
1428
|
+
|
|
1429
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-repositoryfilter.html#cfn-ecr-registryscanningconfiguration-repositoryfilter-filtertype
|
|
1430
|
+
'''
|
|
1431
|
+
result = self._values.get("filter_type")
|
|
1432
|
+
assert result is not None, "Required property 'filter_type' is missing"
|
|
1433
|
+
return typing.cast(builtins.str, result)
|
|
1434
|
+
|
|
1435
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1436
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1437
|
+
|
|
1438
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1439
|
+
return not (rhs == self)
|
|
1440
|
+
|
|
1441
|
+
def __repr__(self) -> str:
|
|
1442
|
+
return "RepositoryFilterProperty(%s)" % ", ".join(
|
|
1443
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1444
|
+
)
|
|
1445
|
+
|
|
1446
|
+
@jsii.data_type(
|
|
1447
|
+
jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty",
|
|
1448
|
+
jsii_struct_bases=[],
|
|
1449
|
+
name_mapping={
|
|
1450
|
+
"repository_filters": "repositoryFilters",
|
|
1451
|
+
"scan_frequency": "scanFrequency",
|
|
1452
|
+
},
|
|
1453
|
+
)
|
|
1454
|
+
class ScanningRuleProperty:
|
|
1455
|
+
def __init__(
|
|
1456
|
+
self,
|
|
1457
|
+
*,
|
|
1458
|
+
repository_filters: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRegistryScanningConfiguration.RepositoryFilterProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
1459
|
+
scan_frequency: builtins.str,
|
|
1460
|
+
) -> None:
|
|
1461
|
+
'''The scanning rules associated with the registry.
|
|
1462
|
+
|
|
1463
|
+
:param repository_filters: The details of a scanning repository filter. For more information on how to use filters, see `Using filters <https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html#image-scanning-filters>`_ in the *Amazon Elastic Container Registry User Guide* .
|
|
1464
|
+
:param scan_frequency: The frequency that scans are performed at for a private registry. When the ``ENHANCED`` scan type is specified, the supported scan frequencies are ``CONTINUOUS_SCAN`` and ``SCAN_ON_PUSH`` . When the ``BASIC`` scan type is specified, the ``SCAN_ON_PUSH`` scan frequency is supported. If scan on push is not specified, then the ``MANUAL`` scan frequency is set by default.
|
|
1465
|
+
|
|
1466
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html
|
|
1467
|
+
:exampleMetadata: fixture=_generated
|
|
1468
|
+
|
|
1469
|
+
Example::
|
|
1470
|
+
|
|
1471
|
+
# The code below shows an example of how to instantiate this type.
|
|
1472
|
+
# The values are placeholders you should change.
|
|
1473
|
+
from aws_cdk import aws_ecr as ecr
|
|
1474
|
+
|
|
1475
|
+
scanning_rule_property = ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
|
|
1476
|
+
repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
|
|
1477
|
+
filter="filter",
|
|
1478
|
+
filter_type="filterType"
|
|
1479
|
+
)],
|
|
1480
|
+
scan_frequency="scanFrequency"
|
|
1481
|
+
)
|
|
1482
|
+
'''
|
|
1483
|
+
if __debug__:
|
|
1484
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a5764ae58f5a18a9eb6b651d412c176771cb3de37bf83810ee9cf74fbb8950bd)
|
|
1485
|
+
check_type(argname="argument repository_filters", value=repository_filters, expected_type=type_hints["repository_filters"])
|
|
1486
|
+
check_type(argname="argument scan_frequency", value=scan_frequency, expected_type=type_hints["scan_frequency"])
|
|
1487
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1488
|
+
"repository_filters": repository_filters,
|
|
1489
|
+
"scan_frequency": scan_frequency,
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
@builtins.property
|
|
1493
|
+
def repository_filters(
|
|
1494
|
+
self,
|
|
1495
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.RepositoryFilterProperty"]]]:
|
|
1496
|
+
'''The details of a scanning repository filter.
|
|
1497
|
+
|
|
1498
|
+
For more information on how to use filters, see `Using filters <https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html#image-scanning-filters>`_ in the *Amazon Elastic Container Registry User Guide* .
|
|
1499
|
+
|
|
1500
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-repositoryfilters
|
|
1501
|
+
'''
|
|
1502
|
+
result = self._values.get("repository_filters")
|
|
1503
|
+
assert result is not None, "Required property 'repository_filters' is missing"
|
|
1504
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.RepositoryFilterProperty"]]], result)
|
|
1505
|
+
|
|
1506
|
+
@builtins.property
|
|
1507
|
+
def scan_frequency(self) -> builtins.str:
|
|
1508
|
+
'''The frequency that scans are performed at for a private registry.
|
|
1509
|
+
|
|
1510
|
+
When the ``ENHANCED`` scan type is specified, the supported scan frequencies are ``CONTINUOUS_SCAN`` and ``SCAN_ON_PUSH`` . When the ``BASIC`` scan type is specified, the ``SCAN_ON_PUSH`` scan frequency is supported. If scan on push is not specified, then the ``MANUAL`` scan frequency is set by default.
|
|
1511
|
+
|
|
1512
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-scanfrequency
|
|
1513
|
+
'''
|
|
1514
|
+
result = self._values.get("scan_frequency")
|
|
1515
|
+
assert result is not None, "Required property 'scan_frequency' is missing"
|
|
1516
|
+
return typing.cast(builtins.str, result)
|
|
1517
|
+
|
|
1518
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1519
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1520
|
+
|
|
1521
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1522
|
+
return not (rhs == self)
|
|
1523
|
+
|
|
1524
|
+
def __repr__(self) -> str:
|
|
1525
|
+
return "ScanningRuleProperty(%s)" % ", ".join(
|
|
1526
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1527
|
+
)
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
@jsii.data_type(
|
|
1531
|
+
jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfigurationProps",
|
|
1532
|
+
jsii_struct_bases=[],
|
|
1533
|
+
name_mapping={"rules": "rules", "scan_type": "scanType"},
|
|
1534
|
+
)
|
|
1535
|
+
class CfnRegistryScanningConfigurationProps:
|
|
1536
|
+
def __init__(
|
|
1537
|
+
self,
|
|
1538
|
+
*,
|
|
1539
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
1540
|
+
scan_type: builtins.str,
|
|
1541
|
+
) -> None:
|
|
1542
|
+
'''Properties for defining a ``CfnRegistryScanningConfiguration``.
|
|
1543
|
+
|
|
1544
|
+
:param rules: The scanning rules associated with the registry.
|
|
1545
|
+
:param scan_type: The type of scanning configured for the registry.
|
|
1546
|
+
|
|
1547
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
|
|
1548
|
+
:exampleMetadata: fixture=_generated
|
|
1549
|
+
|
|
1550
|
+
Example::
|
|
1551
|
+
|
|
1552
|
+
# The code below shows an example of how to instantiate this type.
|
|
1553
|
+
# The values are placeholders you should change.
|
|
1554
|
+
from aws_cdk import aws_ecr as ecr
|
|
1555
|
+
|
|
1556
|
+
cfn_registry_scanning_configuration_props = ecr.CfnRegistryScanningConfigurationProps(
|
|
1557
|
+
rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
|
|
1558
|
+
repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
|
|
1559
|
+
filter="filter",
|
|
1560
|
+
filter_type="filterType"
|
|
1561
|
+
)],
|
|
1562
|
+
scan_frequency="scanFrequency"
|
|
1563
|
+
)],
|
|
1564
|
+
scan_type="scanType"
|
|
1565
|
+
)
|
|
1566
|
+
'''
|
|
1567
|
+
if __debug__:
|
|
1568
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c0cb9229bec3c4ef027deaf853b1b19296c230ef0a56be8bdbedc54630c259c5)
|
|
1569
|
+
check_type(argname="argument rules", value=rules, expected_type=type_hints["rules"])
|
|
1570
|
+
check_type(argname="argument scan_type", value=scan_type, expected_type=type_hints["scan_type"])
|
|
1571
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1572
|
+
"rules": rules,
|
|
1573
|
+
"scan_type": scan_type,
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
@builtins.property
|
|
1577
|
+
def rules(
|
|
1578
|
+
self,
|
|
1579
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]]:
|
|
1580
|
+
'''The scanning rules associated with the registry.
|
|
1581
|
+
|
|
1582
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html#cfn-ecr-registryscanningconfiguration-rules
|
|
1583
|
+
'''
|
|
1584
|
+
result = self._values.get("rules")
|
|
1585
|
+
assert result is not None, "Required property 'rules' is missing"
|
|
1586
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]], result)
|
|
1587
|
+
|
|
1588
|
+
@builtins.property
|
|
1589
|
+
def scan_type(self) -> builtins.str:
|
|
1590
|
+
'''The type of scanning configured for the registry.
|
|
1591
|
+
|
|
1592
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html#cfn-ecr-registryscanningconfiguration-scantype
|
|
1593
|
+
'''
|
|
1594
|
+
result = self._values.get("scan_type")
|
|
1595
|
+
assert result is not None, "Required property 'scan_type' is missing"
|
|
1596
|
+
return typing.cast(builtins.str, result)
|
|
1597
|
+
|
|
1598
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1599
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1600
|
+
|
|
1601
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1602
|
+
return not (rhs == self)
|
|
1603
|
+
|
|
1604
|
+
def __repr__(self) -> str:
|
|
1605
|
+
return "CfnRegistryScanningConfigurationProps(%s)" % ", ".join(
|
|
1606
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1607
|
+
)
|
|
1608
|
+
|
|
1609
|
+
|
|
1251
1610
|
@jsii.implements(_IInspectable_c2943556)
|
|
1252
1611
|
class CfnReplicationConfiguration(
|
|
1253
1612
|
_CfnResource_9df397a6,
|
|
@@ -5196,6 +5555,8 @@ __all__ = [
|
|
|
5196
5555
|
"CfnPullThroughCacheRuleProps",
|
|
5197
5556
|
"CfnRegistryPolicy",
|
|
5198
5557
|
"CfnRegistryPolicyProps",
|
|
5558
|
+
"CfnRegistryScanningConfiguration",
|
|
5559
|
+
"CfnRegistryScanningConfigurationProps",
|
|
5199
5560
|
"CfnReplicationConfiguration",
|
|
5200
5561
|
"CfnReplicationConfigurationProps",
|
|
5201
5562
|
"CfnRepository",
|
|
@@ -5402,6 +5763,64 @@ def _typecheckingstub__61caec2d35981c77552d8e7762d2c96379773ad1cbd183c24427fd900
|
|
|
5402
5763
|
"""Type checking stubs"""
|
|
5403
5764
|
pass
|
|
5404
5765
|
|
|
5766
|
+
def _typecheckingstub__6b68a41065b53c404ecfbf77d1c1dca4759228bec8020c901ec850026c1f0f7f(
|
|
5767
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
5768
|
+
id: builtins.str,
|
|
5769
|
+
*,
|
|
5770
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
5771
|
+
scan_type: builtins.str,
|
|
5772
|
+
) -> None:
|
|
5773
|
+
"""Type checking stubs"""
|
|
5774
|
+
pass
|
|
5775
|
+
|
|
5776
|
+
def _typecheckingstub__c4d08cae9fcc3be8b1528f23c35bc9a22ca0fba2fab068fc08b75c1cfe389e24(
|
|
5777
|
+
inspector: _TreeInspector_488e0dd5,
|
|
5778
|
+
) -> None:
|
|
5779
|
+
"""Type checking stubs"""
|
|
5780
|
+
pass
|
|
5781
|
+
|
|
5782
|
+
def _typecheckingstub__fcd0a067b02317e542152310e0b6796223c0fe4536450fbf2cdfa3673b5fac6f(
|
|
5783
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
5784
|
+
) -> None:
|
|
5785
|
+
"""Type checking stubs"""
|
|
5786
|
+
pass
|
|
5787
|
+
|
|
5788
|
+
def _typecheckingstub__921150d6d5faa8474ec7f3be3b2d6d58c6eb0b5024b547f0c929470055982457(
|
|
5789
|
+
value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]],
|
|
5790
|
+
) -> None:
|
|
5791
|
+
"""Type checking stubs"""
|
|
5792
|
+
pass
|
|
5793
|
+
|
|
5794
|
+
def _typecheckingstub__94a43f834f1cd998ab3369a817b4af2fe53258974556dc78b9e2c75aaeaaa5ac(
|
|
5795
|
+
value: builtins.str,
|
|
5796
|
+
) -> None:
|
|
5797
|
+
"""Type checking stubs"""
|
|
5798
|
+
pass
|
|
5799
|
+
|
|
5800
|
+
def _typecheckingstub__9ff81a98ae71376276df972cda0909207513e4f0b7a1f6fea94a077f86e2b2f5(
|
|
5801
|
+
*,
|
|
5802
|
+
filter: builtins.str,
|
|
5803
|
+
filter_type: builtins.str,
|
|
5804
|
+
) -> None:
|
|
5805
|
+
"""Type checking stubs"""
|
|
5806
|
+
pass
|
|
5807
|
+
|
|
5808
|
+
def _typecheckingstub__a5764ae58f5a18a9eb6b651d412c176771cb3de37bf83810ee9cf74fbb8950bd(
|
|
5809
|
+
*,
|
|
5810
|
+
repository_filters: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.RepositoryFilterProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
5811
|
+
scan_frequency: builtins.str,
|
|
5812
|
+
) -> None:
|
|
5813
|
+
"""Type checking stubs"""
|
|
5814
|
+
pass
|
|
5815
|
+
|
|
5816
|
+
def _typecheckingstub__c0cb9229bec3c4ef027deaf853b1b19296c230ef0a56be8bdbedc54630c259c5(
|
|
5817
|
+
*,
|
|
5818
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
5819
|
+
scan_type: builtins.str,
|
|
5820
|
+
) -> None:
|
|
5821
|
+
"""Type checking stubs"""
|
|
5822
|
+
pass
|
|
5823
|
+
|
|
5405
5824
|
def _typecheckingstub__9ec8853622a7046906439da72fd8cf7dc34848650d739a637e7ae30cf30d26db(
|
|
5406
5825
|
scope: _constructs_77d1e7e8.Construct,
|
|
5407
5826
|
id: builtins.str,
|