CfnRegistryScanningConfigurationPropsMixin
- class aws_cdk.mixins_preview.aws_ecr.mixins.CfnRegistryScanningConfigurationPropsMixin(props, *, strategy=None)
Bases:
MixinThe scanning configuration for a private registry.
- See:
- CloudformationResource:
AWS::ECR::RegistryScanningConfiguration
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_ecr import mixins as ecr_mixins cfn_registry_scanning_configuration_props_mixin = ecr_mixins.CfnRegistryScanningConfigurationPropsMixin(ecr_mixins.CfnRegistryScanningConfigurationMixinProps( rules=[ecr_mixins.CfnRegistryScanningConfigurationPropsMixin.ScanningRuleProperty( repository_filters=[ecr_mixins.CfnRegistryScanningConfigurationPropsMixin.RepositoryFilterProperty( filter="filter", filter_type="filterType" )], scan_frequency="scanFrequency" )], scan_type="scanType" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ECR::RegistryScanningConfiguration.- Parameters:
props (
Union[CfnRegistryScanningConfigurationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['rules', 'scanType']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
RepositoryFilterProperty
- class CfnRegistryScanningConfigurationPropsMixin.RepositoryFilterProperty(*, filter=None, filter_type=None)
Bases:
objectThe filter settings used with image replication.
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.
- Parameters:
filter (
Optional[str]) – The filter to use when scanning.filter_type (
Optional[str]) – The type associated with the filter.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ecr import mixins as ecr_mixins repository_filter_property = ecr_mixins.CfnRegistryScanningConfigurationPropsMixin.RepositoryFilterProperty( filter="filter", filter_type="filterType" )
Attributes
- filter
The filter to use when scanning.
- filter_type
The type associated with the filter.
ScanningRuleProperty
- class CfnRegistryScanningConfigurationPropsMixin.ScanningRuleProperty(*, repository_filters=None, scan_frequency=None)
Bases:
objectThe scanning rules associated with the registry.
- Parameters:
repository_filters (
Union[IResolvable,Sequence[Union[IResolvable,RepositoryFilterProperty,Dict[str,Any]]],None]) – The details of a scanning repository filter. For more information on how to use filters, see Using filters in the Amazon Elastic Container Registry User Guide .scan_frequency (
Optional[str]) – The frequency that scans are performed at for a private registry. When theENHANCEDscan type is specified, the supported scan frequencies areCONTINUOUS_SCANandSCAN_ON_PUSH. When theBASICscan type is specified, theSCAN_ON_PUSHscan frequency is supported. If scan on push is not specified, then theMANUALscan frequency is set by default.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ecr import mixins as ecr_mixins scanning_rule_property = ecr_mixins.CfnRegistryScanningConfigurationPropsMixin.ScanningRuleProperty( repository_filters=[ecr_mixins.CfnRegistryScanningConfigurationPropsMixin.RepositoryFilterProperty( filter="filter", filter_type="filterType" )], scan_frequency="scanFrequency" )
Attributes
- repository_filters
The details of a scanning repository filter.
For more information on how to use filters, see Using filters in the Amazon Elastic Container Registry User Guide .
- scan_frequency
The frequency that scans are performed at for a private registry.
When the
ENHANCEDscan type is specified, the supported scan frequencies areCONTINUOUS_SCANandSCAN_ON_PUSH. When theBASICscan type is specified, theSCAN_ON_PUSHscan frequency is supported. If scan on push is not specified, then theMANUALscan frequency is set by default.