aws-cdk-lib 2.192.0__py3-none-any.whl → 2.194.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/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.192.0.jsii.tgz → aws-cdk-lib@2.194.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +3 -1
- aws_cdk/aws_appsync/__init__.py +4367 -336
- 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 +6 -4
- aws_cdk/aws_ce/__init__.py +34 -22
- aws_cdk/aws_cloudfront/__init__.py +3019 -971
- aws_cdk/aws_codebuild/__init__.py +19 -10
- aws_cdk/aws_codepipeline_actions/__init__.py +526 -0
- aws_cdk/aws_dlm/__init__.py +2 -2
- aws_cdk/aws_ec2/__init__.py +6 -3
- aws_cdk/aws_ecr/__init__.py +417 -0
- aws_cdk/aws_ecs/__init__.py +18 -10
- aws_cdk/aws_eks/__init__.py +170 -2
- aws_cdk/aws_entityresolution/__init__.py +7 -2
- aws_cdk/aws_events/__init__.py +41 -8
- aws_cdk/aws_lambda/__init__.py +1 -1
- aws_cdk/aws_mediapackagev2/__init__.py +50 -6
- aws_cdk/aws_memorydb/__init__.py +21 -11
- aws_cdk/aws_omics/__init__.py +5 -5
- aws_cdk/aws_opensearchservice/__init__.py +45 -25
- aws_cdk/aws_qbusiness/__init__.py +2 -2
- aws_cdk/aws_quicksight/__init__.py +1 -1
- aws_cdk/aws_rds/__init__.py +46 -2
- aws_cdk/aws_redshiftserverless/__init__.py +20 -0
- aws_cdk/aws_route53resolver/__init__.py +41 -0
- aws_cdk/aws_s3/__init__.py +2 -4
- aws_cdk/aws_sagemaker/__init__.py +2 -4
- aws_cdk/aws_vpclattice/__init__.py +6 -2
- aws_cdk/aws_wisdom/__init__.py +25 -6
- {aws_cdk_lib-2.192.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.192.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/RECORD +39 -39
- {aws_cdk_lib-2.192.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.192.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.192.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.192.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ec2/__init__.py
CHANGED
|
@@ -12470,7 +12470,7 @@ class CfnEC2Fleet(
|
|
|
12470
12470
|
:param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
|
|
12471
12471
|
:param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
|
|
12472
12472
|
:param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
|
|
12473
|
-
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . Default: Any accelerator type
|
|
12473
|
+
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
|
|
12474
12474
|
:param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
|
|
12475
12475
|
:param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
|
|
12476
12476
|
:param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
|
|
@@ -12718,6 +12718,7 @@ class CfnEC2Fleet(
|
|
|
12718
12718
|
|
|
12719
12719
|
- For instance types with FPGA accelerators, specify ``fpga`` .
|
|
12720
12720
|
- For instance types with GPU accelerators, specify ``gpu`` .
|
|
12721
|
+
- For instance types with Inference accelerators, specify ``inference`` .
|
|
12721
12722
|
|
|
12722
12723
|
Default: Any accelerator type
|
|
12723
12724
|
|
|
@@ -27086,7 +27087,7 @@ class CfnLaunchTemplate(
|
|
|
27086
27087
|
:param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
|
|
27087
27088
|
:param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
|
|
27088
27089
|
:param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
|
|
27089
|
-
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . Default: Any accelerator type
|
|
27090
|
+
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
|
|
27090
27091
|
:param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
|
|
27091
27092
|
:param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
|
|
27092
27093
|
:param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
|
|
@@ -27334,6 +27335,7 @@ class CfnLaunchTemplate(
|
|
|
27334
27335
|
|
|
27335
27336
|
- For instance types with FPGA accelerators, specify ``fpga`` .
|
|
27336
27337
|
- For instance types with GPU accelerators, specify ``gpu`` .
|
|
27338
|
+
- For instance types with Inference accelerators, specify ``inference`` .
|
|
27337
27339
|
|
|
27338
27340
|
Default: Any accelerator type
|
|
27339
27341
|
|
|
@@ -47893,7 +47895,7 @@ class CfnSpotFleet(
|
|
|
47893
47895
|
:param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
|
|
47894
47896
|
:param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
|
|
47895
47897
|
:param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
|
|
47896
|
-
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . Default: Any accelerator type
|
|
47898
|
+
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
|
|
47897
47899
|
:param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
|
|
47898
47900
|
:param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
|
|
47899
47901
|
:param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
|
|
@@ -48141,6 +48143,7 @@ class CfnSpotFleet(
|
|
|
48141
48143
|
|
|
48142
48144
|
- For instance types with FPGA accelerators, specify ``fpga`` .
|
|
48143
48145
|
- For instance types with GPU accelerators, specify ``gpu`` .
|
|
48146
|
+
- For instance types with Inference accelerators, specify ``inference`` .
|
|
48144
48147
|
|
|
48145
48148
|
Default: Any accelerator type
|
|
48146
48149
|
|
aws_cdk/aws_ecr/__init__.py
CHANGED
|
@@ -1248,6 +1248,363 @@ 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 AWS::ECR::RegistryScanningConfiguration controls the scanning configuration for an Amazon Elastic Container Registry (Amazon Private ECR).
|
|
1258
|
+
|
|
1259
|
+
For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html
|
|
1260
|
+
|
|
1261
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
|
|
1262
|
+
:cloudformationResource: AWS::ECR::RegistryScanningConfiguration
|
|
1263
|
+
:exampleMetadata: fixture=_generated
|
|
1264
|
+
|
|
1265
|
+
Example::
|
|
1266
|
+
|
|
1267
|
+
# The code below shows an example of how to instantiate this type.
|
|
1268
|
+
# The values are placeholders you should change.
|
|
1269
|
+
from aws_cdk import aws_ecr as ecr
|
|
1270
|
+
|
|
1271
|
+
cfn_registry_scanning_configuration = ecr.CfnRegistryScanningConfiguration(self, "MyCfnRegistryScanningConfiguration",
|
|
1272
|
+
rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
|
|
1273
|
+
repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
|
|
1274
|
+
filter="filter",
|
|
1275
|
+
filter_type="filterType"
|
|
1276
|
+
)],
|
|
1277
|
+
scan_frequency="scanFrequency"
|
|
1278
|
+
)],
|
|
1279
|
+
scan_type="scanType"
|
|
1280
|
+
)
|
|
1281
|
+
'''
|
|
1282
|
+
|
|
1283
|
+
def __init__(
|
|
1284
|
+
self,
|
|
1285
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1286
|
+
id: builtins.str,
|
|
1287
|
+
*,
|
|
1288
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRegistryScanningConfiguration.ScanningRuleProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
1289
|
+
scan_type: builtins.str,
|
|
1290
|
+
) -> None:
|
|
1291
|
+
'''
|
|
1292
|
+
:param scope: Scope in which this resource is defined.
|
|
1293
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1294
|
+
:param rules: The scanning rules associated with the registry. A registry scanning configuration may contain a maximum of 2 rules.
|
|
1295
|
+
:param scan_type: The type of scanning configured for the registry.
|
|
1296
|
+
'''
|
|
1297
|
+
if __debug__:
|
|
1298
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6b68a41065b53c404ecfbf77d1c1dca4759228bec8020c901ec850026c1f0f7f)
|
|
1299
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1300
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1301
|
+
props = CfnRegistryScanningConfigurationProps(rules=rules, scan_type=scan_type)
|
|
1302
|
+
|
|
1303
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1304
|
+
|
|
1305
|
+
@jsii.member(jsii_name="inspect")
|
|
1306
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1307
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1308
|
+
|
|
1309
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1310
|
+
'''
|
|
1311
|
+
if __debug__:
|
|
1312
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c4d08cae9fcc3be8b1528f23c35bc9a22ca0fba2fab068fc08b75c1cfe389e24)
|
|
1313
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1314
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1315
|
+
|
|
1316
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1317
|
+
def _render_properties(
|
|
1318
|
+
self,
|
|
1319
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1320
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1321
|
+
'''
|
|
1322
|
+
:param props: -
|
|
1323
|
+
'''
|
|
1324
|
+
if __debug__:
|
|
1325
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fcd0a067b02317e542152310e0b6796223c0fe4536450fbf2cdfa3673b5fac6f)
|
|
1326
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1327
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1328
|
+
|
|
1329
|
+
@jsii.python.classproperty
|
|
1330
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1331
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1332
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1333
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1334
|
+
|
|
1335
|
+
@builtins.property
|
|
1336
|
+
@jsii.member(jsii_name="attrRegistryId")
|
|
1337
|
+
def attr_registry_id(self) -> builtins.str:
|
|
1338
|
+
'''The registry id.
|
|
1339
|
+
|
|
1340
|
+
:cloudformationAttribute: RegistryId
|
|
1341
|
+
'''
|
|
1342
|
+
return typing.cast(builtins.str, jsii.get(self, "attrRegistryId"))
|
|
1343
|
+
|
|
1344
|
+
@builtins.property
|
|
1345
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1346
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1347
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1348
|
+
|
|
1349
|
+
@builtins.property
|
|
1350
|
+
@jsii.member(jsii_name="rules")
|
|
1351
|
+
def rules(
|
|
1352
|
+
self,
|
|
1353
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]]:
|
|
1354
|
+
'''The scanning rules associated with the registry.'''
|
|
1355
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]], jsii.get(self, "rules"))
|
|
1356
|
+
|
|
1357
|
+
@rules.setter
|
|
1358
|
+
def rules(
|
|
1359
|
+
self,
|
|
1360
|
+
value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]],
|
|
1361
|
+
) -> None:
|
|
1362
|
+
if __debug__:
|
|
1363
|
+
type_hints = typing.get_type_hints(_typecheckingstub__921150d6d5faa8474ec7f3be3b2d6d58c6eb0b5024b547f0c929470055982457)
|
|
1364
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1365
|
+
jsii.set(self, "rules", value) # pyright: ignore[reportArgumentType]
|
|
1366
|
+
|
|
1367
|
+
@builtins.property
|
|
1368
|
+
@jsii.member(jsii_name="scanType")
|
|
1369
|
+
def scan_type(self) -> builtins.str:
|
|
1370
|
+
'''The type of scanning configured for the registry.'''
|
|
1371
|
+
return typing.cast(builtins.str, jsii.get(self, "scanType"))
|
|
1372
|
+
|
|
1373
|
+
@scan_type.setter
|
|
1374
|
+
def scan_type(self, value: builtins.str) -> None:
|
|
1375
|
+
if __debug__:
|
|
1376
|
+
type_hints = typing.get_type_hints(_typecheckingstub__94a43f834f1cd998ab3369a817b4af2fe53258974556dc78b9e2c75aaeaaa5ac)
|
|
1377
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1378
|
+
jsii.set(self, "scanType", value) # pyright: ignore[reportArgumentType]
|
|
1379
|
+
|
|
1380
|
+
@jsii.data_type(
|
|
1381
|
+
jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty",
|
|
1382
|
+
jsii_struct_bases=[],
|
|
1383
|
+
name_mapping={"filter": "filter", "filter_type": "filterType"},
|
|
1384
|
+
)
|
|
1385
|
+
class RepositoryFilterProperty:
|
|
1386
|
+
def __init__(self, *, filter: builtins.str, filter_type: builtins.str) -> None:
|
|
1387
|
+
'''The details of a scanning repository filter.
|
|
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
|
+
'''A rule representing the details of a scanning configuration.
|
|
1462
|
+
|
|
1463
|
+
:param repository_filters: The repository filters associated with the scanning configuration for a private registry.
|
|
1464
|
+
:param scan_frequency: The frequency that scans are performed.
|
|
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 repository filters associated with the scanning configuration for a private registry.
|
|
1497
|
+
|
|
1498
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-repositoryfilters
|
|
1499
|
+
'''
|
|
1500
|
+
result = self._values.get("repository_filters")
|
|
1501
|
+
assert result is not None, "Required property 'repository_filters' is missing"
|
|
1502
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.RepositoryFilterProperty"]]], result)
|
|
1503
|
+
|
|
1504
|
+
@builtins.property
|
|
1505
|
+
def scan_frequency(self) -> builtins.str:
|
|
1506
|
+
'''The frequency that scans are performed.
|
|
1507
|
+
|
|
1508
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-scanfrequency
|
|
1509
|
+
'''
|
|
1510
|
+
result = self._values.get("scan_frequency")
|
|
1511
|
+
assert result is not None, "Required property 'scan_frequency' is missing"
|
|
1512
|
+
return typing.cast(builtins.str, result)
|
|
1513
|
+
|
|
1514
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1515
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1516
|
+
|
|
1517
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1518
|
+
return not (rhs == self)
|
|
1519
|
+
|
|
1520
|
+
def __repr__(self) -> str:
|
|
1521
|
+
return "ScanningRuleProperty(%s)" % ", ".join(
|
|
1522
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1523
|
+
)
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
@jsii.data_type(
|
|
1527
|
+
jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfigurationProps",
|
|
1528
|
+
jsii_struct_bases=[],
|
|
1529
|
+
name_mapping={"rules": "rules", "scan_type": "scanType"},
|
|
1530
|
+
)
|
|
1531
|
+
class CfnRegistryScanningConfigurationProps:
|
|
1532
|
+
def __init__(
|
|
1533
|
+
self,
|
|
1534
|
+
*,
|
|
1535
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
1536
|
+
scan_type: builtins.str,
|
|
1537
|
+
) -> None:
|
|
1538
|
+
'''Properties for defining a ``CfnRegistryScanningConfiguration``.
|
|
1539
|
+
|
|
1540
|
+
:param rules: The scanning rules associated with the registry. A registry scanning configuration may contain a maximum of 2 rules.
|
|
1541
|
+
:param scan_type: The type of scanning configured for the registry.
|
|
1542
|
+
|
|
1543
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
|
|
1544
|
+
:exampleMetadata: fixture=_generated
|
|
1545
|
+
|
|
1546
|
+
Example::
|
|
1547
|
+
|
|
1548
|
+
# The code below shows an example of how to instantiate this type.
|
|
1549
|
+
# The values are placeholders you should change.
|
|
1550
|
+
from aws_cdk import aws_ecr as ecr
|
|
1551
|
+
|
|
1552
|
+
cfn_registry_scanning_configuration_props = ecr.CfnRegistryScanningConfigurationProps(
|
|
1553
|
+
rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
|
|
1554
|
+
repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
|
|
1555
|
+
filter="filter",
|
|
1556
|
+
filter_type="filterType"
|
|
1557
|
+
)],
|
|
1558
|
+
scan_frequency="scanFrequency"
|
|
1559
|
+
)],
|
|
1560
|
+
scan_type="scanType"
|
|
1561
|
+
)
|
|
1562
|
+
'''
|
|
1563
|
+
if __debug__:
|
|
1564
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c0cb9229bec3c4ef027deaf853b1b19296c230ef0a56be8bdbedc54630c259c5)
|
|
1565
|
+
check_type(argname="argument rules", value=rules, expected_type=type_hints["rules"])
|
|
1566
|
+
check_type(argname="argument scan_type", value=scan_type, expected_type=type_hints["scan_type"])
|
|
1567
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1568
|
+
"rules": rules,
|
|
1569
|
+
"scan_type": scan_type,
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
@builtins.property
|
|
1573
|
+
def rules(
|
|
1574
|
+
self,
|
|
1575
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]]:
|
|
1576
|
+
'''The scanning rules associated with the registry.
|
|
1577
|
+
|
|
1578
|
+
A registry scanning configuration may contain a maximum of 2 rules.
|
|
1579
|
+
|
|
1580
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html#cfn-ecr-registryscanningconfiguration-rules
|
|
1581
|
+
'''
|
|
1582
|
+
result = self._values.get("rules")
|
|
1583
|
+
assert result is not None, "Required property 'rules' is missing"
|
|
1584
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]], result)
|
|
1585
|
+
|
|
1586
|
+
@builtins.property
|
|
1587
|
+
def scan_type(self) -> builtins.str:
|
|
1588
|
+
'''The type of scanning configured for the registry.
|
|
1589
|
+
|
|
1590
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html#cfn-ecr-registryscanningconfiguration-scantype
|
|
1591
|
+
'''
|
|
1592
|
+
result = self._values.get("scan_type")
|
|
1593
|
+
assert result is not None, "Required property 'scan_type' is missing"
|
|
1594
|
+
return typing.cast(builtins.str, result)
|
|
1595
|
+
|
|
1596
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1597
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1598
|
+
|
|
1599
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1600
|
+
return not (rhs == self)
|
|
1601
|
+
|
|
1602
|
+
def __repr__(self) -> str:
|
|
1603
|
+
return "CfnRegistryScanningConfigurationProps(%s)" % ", ".join(
|
|
1604
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1605
|
+
)
|
|
1606
|
+
|
|
1607
|
+
|
|
1251
1608
|
@jsii.implements(_IInspectable_c2943556)
|
|
1252
1609
|
class CfnReplicationConfiguration(
|
|
1253
1610
|
_CfnResource_9df397a6,
|
|
@@ -5196,6 +5553,8 @@ __all__ = [
|
|
|
5196
5553
|
"CfnPullThroughCacheRuleProps",
|
|
5197
5554
|
"CfnRegistryPolicy",
|
|
5198
5555
|
"CfnRegistryPolicyProps",
|
|
5556
|
+
"CfnRegistryScanningConfiguration",
|
|
5557
|
+
"CfnRegistryScanningConfigurationProps",
|
|
5199
5558
|
"CfnReplicationConfiguration",
|
|
5200
5559
|
"CfnReplicationConfigurationProps",
|
|
5201
5560
|
"CfnRepository",
|
|
@@ -5402,6 +5761,64 @@ def _typecheckingstub__61caec2d35981c77552d8e7762d2c96379773ad1cbd183c24427fd900
|
|
|
5402
5761
|
"""Type checking stubs"""
|
|
5403
5762
|
pass
|
|
5404
5763
|
|
|
5764
|
+
def _typecheckingstub__6b68a41065b53c404ecfbf77d1c1dca4759228bec8020c901ec850026c1f0f7f(
|
|
5765
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
5766
|
+
id: builtins.str,
|
|
5767
|
+
*,
|
|
5768
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
5769
|
+
scan_type: builtins.str,
|
|
5770
|
+
) -> None:
|
|
5771
|
+
"""Type checking stubs"""
|
|
5772
|
+
pass
|
|
5773
|
+
|
|
5774
|
+
def _typecheckingstub__c4d08cae9fcc3be8b1528f23c35bc9a22ca0fba2fab068fc08b75c1cfe389e24(
|
|
5775
|
+
inspector: _TreeInspector_488e0dd5,
|
|
5776
|
+
) -> None:
|
|
5777
|
+
"""Type checking stubs"""
|
|
5778
|
+
pass
|
|
5779
|
+
|
|
5780
|
+
def _typecheckingstub__fcd0a067b02317e542152310e0b6796223c0fe4536450fbf2cdfa3673b5fac6f(
|
|
5781
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
5782
|
+
) -> None:
|
|
5783
|
+
"""Type checking stubs"""
|
|
5784
|
+
pass
|
|
5785
|
+
|
|
5786
|
+
def _typecheckingstub__921150d6d5faa8474ec7f3be3b2d6d58c6eb0b5024b547f0c929470055982457(
|
|
5787
|
+
value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]],
|
|
5788
|
+
) -> None:
|
|
5789
|
+
"""Type checking stubs"""
|
|
5790
|
+
pass
|
|
5791
|
+
|
|
5792
|
+
def _typecheckingstub__94a43f834f1cd998ab3369a817b4af2fe53258974556dc78b9e2c75aaeaaa5ac(
|
|
5793
|
+
value: builtins.str,
|
|
5794
|
+
) -> None:
|
|
5795
|
+
"""Type checking stubs"""
|
|
5796
|
+
pass
|
|
5797
|
+
|
|
5798
|
+
def _typecheckingstub__9ff81a98ae71376276df972cda0909207513e4f0b7a1f6fea94a077f86e2b2f5(
|
|
5799
|
+
*,
|
|
5800
|
+
filter: builtins.str,
|
|
5801
|
+
filter_type: builtins.str,
|
|
5802
|
+
) -> None:
|
|
5803
|
+
"""Type checking stubs"""
|
|
5804
|
+
pass
|
|
5805
|
+
|
|
5806
|
+
def _typecheckingstub__a5764ae58f5a18a9eb6b651d412c176771cb3de37bf83810ee9cf74fbb8950bd(
|
|
5807
|
+
*,
|
|
5808
|
+
repository_filters: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.RepositoryFilterProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
5809
|
+
scan_frequency: builtins.str,
|
|
5810
|
+
) -> None:
|
|
5811
|
+
"""Type checking stubs"""
|
|
5812
|
+
pass
|
|
5813
|
+
|
|
5814
|
+
def _typecheckingstub__c0cb9229bec3c4ef027deaf853b1b19296c230ef0a56be8bdbedc54630c259c5(
|
|
5815
|
+
*,
|
|
5816
|
+
rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
5817
|
+
scan_type: builtins.str,
|
|
5818
|
+
) -> None:
|
|
5819
|
+
"""Type checking stubs"""
|
|
5820
|
+
pass
|
|
5821
|
+
|
|
5405
5822
|
def _typecheckingstub__9ec8853622a7046906439da72fd8cf7dc34848650d739a637e7ae30cf30d26db(
|
|
5406
5823
|
scope: _constructs_77d1e7e8.Construct,
|
|
5407
5824
|
id: builtins.str,
|