Skip to content

PackageGroupOriginRestriction

Source code in docs_src/capo_codeartifact/types/package_group_origin_restriction.py
class PackageGroupOriginRestriction(TypedDict, closed=True):
    mode: NotRequired[
        "capo_codeartifact.types.package_group_origin_restriction_mode.PackageGroupOriginRestrictionMode"
    ]
    """<p>The package group origin restriction setting. If the value of <code>mode</code> is <code>ALLOW</code>, <code>ALLOW_SPECIFIC_REPOSITORIES</code>, or <code>BLOCK</code>, then the value of <code>effectiveMode</code> is the same. Otherwise, when the value is <code>INHERIT</code>, then the value of <code>effectiveMode</code> is the value of <code>mode</code> of the first parent group which does not have a value of <code>INHERIT</code>.</p>"""
    effective_mode: NotRequired[
        "capo_codeartifact.types.package_group_origin_restriction_mode.PackageGroupOriginRestrictionMode"
    ]
    """<p>The effective package group origin restriction setting. If the value of <code>mode</code> is <code>ALLOW</code>, <code>ALLOW_SPECIFIC_REPOSITORIES</code>, or <code>BLOCK</code>, then the value of <code>effectiveMode</code> is the same. Otherwise, when the value of <code>mode</code> is <code>INHERIT</code>, then the value of <code>effectiveMode</code> is the value of <code>mode</code> of the first parent group which does not have a value of <code>INHERIT</code>.</p>"""
    inherited_from: NotRequired[
        "capo_codeartifact.types.package_group_reference.PackageGroupReference"
    ]
    """<p>The parent package group that the package group origin restrictions are inherited from.</p>"""
    repositories_count: NotRequired[
        "capo_codeartifact.types.long_optional.LongOptional"
    ]
    """<p>The number of repositories in the allowed repository list.</p>"""

effective_mode instance-attribute

effective_mode: NotRequired[PackageGroupOriginRestrictionMode]

The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

inherited_from instance-attribute

inherited_from: NotRequired[PackageGroupReference]

The parent package group that the package group origin restrictions are inherited from.

mode instance-attribute

The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

repositories_count instance-attribute

repositories_count: NotRequired[LongOptional]

The number of repositories in the allowed repository list.