CfnSigningConfigurationPropsMixin
- class aws_cdk.mixins_preview.aws_ecr.mixins.CfnSigningConfigurationPropsMixin(props, *, strategy=None)
Bases:
MixinThe signing configuration for a registry, which specifies rules for automatically signing images when pushed.
- See:
- CloudformationResource:
AWS::ECR::SigningConfiguration
- 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_signing_configuration_props_mixin = ecr_mixins.CfnSigningConfigurationPropsMixin(ecr_mixins.CfnSigningConfigurationMixinProps( rules=[ecr_mixins.CfnSigningConfigurationPropsMixin.RuleProperty( repository_filters=[ecr_mixins.CfnSigningConfigurationPropsMixin.RepositoryFilterProperty( filter="filter", filter_type="filterType" )], signing_profile_arn="signingProfileArn" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ECR::SigningConfiguration.- Parameters:
props (
Union[CfnSigningConfigurationMixinProps,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']
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 CfnSigningConfigurationPropsMixin.RepositoryFilterProperty(*, filter=None, filter_type=None)
Bases:
objectA repository filter used to determine which repositories have their images automatically signed on push.
Each filter consists of a filter type and filter value.
- Parameters:
filter (
Optional[str]) – The filter value used to match repository names. When usingWILDCARD_MATCH, the*character matches any sequence of characters. Examples: -myapp/*- Matches all repositories starting withmyapp/-* /production- Matches all repositories ending with/production-*prod*- Matches all repositories containingprodfilter_type (
Optional[str]) – The type of filter to apply. Currently, onlyWILDCARD_MATCHis supported, which uses wildcard patterns to match repository names.
- 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.CfnSigningConfigurationPropsMixin.RepositoryFilterProperty( filter="filter", filter_type="filterType" )
Attributes
- filter
The filter value used to match repository names.
When using
WILDCARD_MATCH, the*character matches any sequence of characters.Examples:
myapp/*- Matches all repositories starting withmyapp/* /production- Matches all repositories ending with/production*prod*- Matches all repositories containingprod
- filter_type
The type of filter to apply.
Currently, only
WILDCARD_MATCHis supported, which uses wildcard patterns to match repository names.
RuleProperty
- class CfnSigningConfigurationPropsMixin.RuleProperty(*, repository_filters=None, signing_profile_arn=None)
Bases:
objectA signing rule that specifies a signing profile and optional repository filters.
When an image is pushed to a matching repository, a signing job is created using the specified profile.
- Parameters:
repository_filters (
Union[IResolvable,Sequence[Union[IResolvable,RepositoryFilterProperty,Dict[str,Any]]],None]) – A list of repository filters that determine which repositories have their images signed on push. If no filters are specified, all images pushed to the registry are signed using the rule’s signing profile. Maximum of 100 filters per rule.signing_profile_arn (
Optional[str]) – The ARN of the AWS Signer signing profile to use for signing images that match this rule. For more information about signing profiles, see Signing profiles in the AWS Signer Developer Guide .
- 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 rule_property = ecr_mixins.CfnSigningConfigurationPropsMixin.RuleProperty( repository_filters=[ecr_mixins.CfnSigningConfigurationPropsMixin.RepositoryFilterProperty( filter="filter", filter_type="filterType" )], signing_profile_arn="signingProfileArn" )
Attributes
- repository_filters
A list of repository filters that determine which repositories have their images signed on push.
If no filters are specified, all images pushed to the registry are signed using the rule’s signing profile. Maximum of 100 filters per rule.
- signing_profile_arn
The ARN of the AWS Signer signing profile to use for signing images that match this rule.
For more information about signing profiles, see Signing profiles in the AWS Signer Developer Guide .