CfnSigningConfigurationPropsMixin

class aws_cdk.mixins_preview.aws_ecr.mixins.CfnSigningConfigurationPropsMixin(props, *, strategy=None)

Bases: Mixin

The signing configuration for a registry, which specifies rules for automatically signing images when pushed.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-signingconfiguration.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

RepositoryFilterProperty

class CfnSigningConfigurationPropsMixin.RepositoryFilterProperty(*, filter=None, filter_type=None)

Bases: object

A 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 using WILDCARD_MATCH , the * character matches any sequence of characters. Examples: - myapp/* - Matches all repositories starting with myapp/ - * /production - Matches all repositories ending with /production - *prod* - Matches all repositories containing prod

  • filter_type (Optional[str]) – The type of filter to apply. Currently, only WILDCARD_MATCH is supported, which uses wildcard patterns to match repository names.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-signingconfiguration-repositoryfilter.html

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 with myapp/

  • * /production - Matches all repositories ending with /production

  • *prod* - Matches all repositories containing prod

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-signingconfiguration-repositoryfilter.html#cfn-ecr-signingconfiguration-repositoryfilter-filter

filter_type

The type of filter to apply.

Currently, only WILDCARD_MATCH is supported, which uses wildcard patterns to match repository names.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-signingconfiguration-repositoryfilter.html#cfn-ecr-signingconfiguration-repositoryfilter-filtertype

RuleProperty

class CfnSigningConfigurationPropsMixin.RuleProperty(*, repository_filters=None, signing_profile_arn=None)

Bases: object

A 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-signingconfiguration-rule.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-signingconfiguration-rule.html#cfn-ecr-signingconfiguration-rule-repositoryfilters

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 .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-signingconfiguration-rule.html#cfn-ecr-signingconfiguration-rule-signingprofilearn