CfnPackagePropsMixin

class aws_cdk.cfn_property_mixins.aws_codeartifact.CfnPackagePropsMixin(props, *, strategy=None)

Bases: Mixin

Resource Type definition for AWS::CodeArtifact::Package.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-package.html

CloudformationResource:

AWS::CodeArtifact::Package

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.cfn_property_mixins import aws_codeartifact as codeartifact
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_package_props_mixin = codeartifact.CfnPackagePropsMixin(codeartifact.CfnPackageMixinProps(
    domain_name="domainName",
    format="format",
    name="name",
    namespace="namespace",
    repository="repository"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::CodeArtifact::Package.

Parameters:
  • props (Union[CfnPackageMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['domainName', 'format', 'name', 'namespace', 'repository']

Static Methods

classmethod is_mixin(x)

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.

OriginConfigurationProperty

class CfnPackagePropsMixin.OriginConfigurationProperty(*, restrictions=None)

Bases: object

The package origin configuration for the package.

Parameters:

restrictions (Union[IResolvable, RestrictionsProperty, Dict[str, Any], None]) – The origin restrictions for the package.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-package-originconfiguration.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.cfn_property_mixins import aws_codeartifact as codeartifact

origin_configuration_property = codeartifact.CfnPackagePropsMixin.OriginConfigurationProperty(
    restrictions=codeartifact.CfnPackagePropsMixin.RestrictionsProperty(
        publish="publish",
        upstream="upstream"
    )
)

Attributes

restrictions

The origin restrictions for the package.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-package-originconfiguration.html#cfn-codeartifact-package-originconfiguration-restrictions

RestrictionsProperty

class CfnPackagePropsMixin.RestrictionsProperty(*, publish=None, upstream=None)

Bases: object

The origin restrictions for the package.

Parameters:
  • publish (Optional[str]) – The package origin configuration that determines if new versions of the package can be published directly to the repository.

  • upstream (Optional[str]) – The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-package-restrictions.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.cfn_property_mixins import aws_codeartifact as codeartifact

restrictions_property = codeartifact.CfnPackagePropsMixin.RestrictionsProperty(
    publish="publish",
    upstream="upstream"
)

Attributes

publish

The package origin configuration that determines if new versions of the package can be published directly to the repository.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-package-restrictions.html#cfn-codeartifact-package-restrictions-publish

upstream

The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-package-restrictions.html#cfn-codeartifact-package-restrictions-upstream