CfnPackageGroupPropsMixin
- class aws_cdk.mixins_preview.aws_codeartifact.mixins.CfnPackageGroupPropsMixin(props, *, strategy=None)
Bases:
MixinCreates 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:
- 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:
props (
Union[CfnPackageGroupMixinProps,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 = ['contactInfo', 'description', 'domainName', 'domainOwner', 'originConfiguration', 'pattern', 'tags']
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
OriginConfigurationProperty
- class CfnPackageGroupPropsMixin.OriginConfigurationProperty(*, restrictions=None)
Bases:
object- Parameters:
restrictions (
Union[IResolvable,RestrictionsProperty,Dict[str,Any],None])- 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_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
RestrictionTypeProperty
- class CfnPackageGroupPropsMixin.RestrictionTypeProperty(*, repositories=None, restriction_mode=None)
Bases:
object- Parameters:
repositories (
Optional[Sequence[str]])restriction_mode (
Optional[str])
- 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_codeartifact import mixins as codeartifact_mixins restriction_type_property = codeartifact_mixins.CfnPackageGroupPropsMixin.RestrictionTypeProperty( repositories=["repositories"], restriction_mode="restrictionMode" )
Attributes
- repositories
-
- Type:
see
RestrictionsProperty
- class CfnPackageGroupPropsMixin.RestrictionsProperty(*, external_upstream=None, internal_upstream=None, publish=None)
Bases:
object- Parameters:
external_upstream (
Union[IResolvable,RestrictionTypeProperty,Dict[str,Any],None])internal_upstream (
Union[IResolvable,RestrictionTypeProperty,Dict[str,Any],None])publish (
Union[IResolvable,RestrictionTypeProperty,Dict[str,Any],None])
- 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_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
-
- Type:
see
- internal_upstream
-
- Type:
see