CfnPackageGroupPropsMixin

class aws_cdk.mixins_preview.aws_codeartifact.mixins.CfnPackageGroupPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a package group.

For more information about creating package groups, including example CLI commands, see Create a package group in the CodeArtifact User Guide .

See:

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

CloudformationResource:

AWS::CodeArtifact::PackageGroup

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_codeartifact import mixins as codeartifact_mixins

cfn_package_group_props_mixin = codeartifact_mixins.CfnPackageGroupPropsMixin(codeartifact_mixins.CfnPackageGroupMixinProps(
    contact_info="contactInfo",
    description="description",
    domain_name="domainName",
    domain_owner="domainOwner",
    origin_configuration=codeartifact_mixins.CfnPackageGroupPropsMixin.OriginConfigurationProperty(
        restrictions=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionsProperty(
            external_upstream=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
                repositories=["repositories"],
                restriction_mode="restrictionMode"
            ),
            internal_upstream=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
                repositories=["repositories"],
                restriction_mode="restrictionMode"
            ),
            publish=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
                repositories=["repositories"],
                restriction_mode="restrictionMode"
            )
        )
    ),
    pattern="pattern",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

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

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 = ['contactInfo', 'description', 'domainName', 'domainOwner', 'originConfiguration', 'pattern', 'tags']

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

OriginConfigurationProperty

class CfnPackageGroupPropsMixin.OriginConfigurationProperty(*, restrictions=None)

Bases: object

Parameters:

restrictions (Union[IResolvable, RestrictionsProperty, Dict[str, Any], None])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-packagegroup-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.mixins_preview.aws_codeartifact import mixins as codeartifact_mixins

origin_configuration_property = codeartifact_mixins.CfnPackageGroupPropsMixin.OriginConfigurationProperty(
    restrictions=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionsProperty(
        external_upstream=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
            repositories=["repositories"],
            restriction_mode="restrictionMode"
        ),
        internal_upstream=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
            repositories=["repositories"],
            restriction_mode="restrictionMode"
        ),
        publish=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
            repositories=["repositories"],
            restriction_mode="restrictionMode"
        )
    )
)

Attributes

restrictions

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

Type:

see

RestrictionTypeProperty

class CfnPackageGroupPropsMixin.RestrictionTypeProperty(*, repositories=None, restriction_mode=None)

Bases: object

Parameters:
  • repositories (Optional[Sequence[str]])

  • restriction_mode (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-packagegroup-restrictiontype.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_codeartifact import mixins as codeartifact_mixins

restriction_type_property = codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
    repositories=["repositories"],
    restriction_mode="restrictionMode"
)

Attributes

repositories

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-packagegroup-restrictiontype.html#cfn-codeartifact-packagegroup-restrictiontype-repositories

Type:

see

restriction_mode

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-packagegroup-restrictiontype.html#cfn-codeartifact-packagegroup-restrictiontype-restrictionmode

Type:

see

RestrictionsProperty

class CfnPackageGroupPropsMixin.RestrictionsProperty(*, external_upstream=None, internal_upstream=None, publish=None)

Bases: object

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeartifact-packagegroup-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.mixins_preview.aws_codeartifact import mixins as codeartifact_mixins

restrictions_property = codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionsProperty(
    external_upstream=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
        repositories=["repositories"],
        restriction_mode="restrictionMode"
    ),
    internal_upstream=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
        repositories=["repositories"],
        restriction_mode="restrictionMode"
    ),
    publish=codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty(
        repositories=["repositories"],
        restriction_mode="restrictionMode"
    )
)

Attributes

external_upstream

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

Type:

see

internal_upstream

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

Type:

see

publish

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

Type:

see