1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. codeartifact
  6. PackageGroup

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    The resource schema to create a CodeArtifact package group.

    Create PackageGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PackageGroup(name: string, args: PackageGroupArgs, opts?: CustomResourceOptions);
    @overload
    def PackageGroup(resource_name: str,
                     args: PackageGroupArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def PackageGroup(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     domain_name: Optional[str] = None,
                     pattern: Optional[str] = None,
                     contact_info: Optional[str] = None,
                     description: Optional[str] = None,
                     domain_owner: Optional[str] = None,
                     origin_configuration: Optional[PackageGroupOriginConfigurationArgs] = None,
                     tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewPackageGroup(ctx *Context, name string, args PackageGroupArgs, opts ...ResourceOption) (*PackageGroup, error)
    public PackageGroup(string name, PackageGroupArgs args, CustomResourceOptions? opts = null)
    public PackageGroup(String name, PackageGroupArgs args)
    public PackageGroup(String name, PackageGroupArgs args, CustomResourceOptions options)
    
    type: aws-native:codeartifact:PackageGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_codeartifact_package_group" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PackageGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PackageGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PackageGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PackageGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PackageGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PackageGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PackageGroup resource accepts the following input properties:

    DomainName string
    The name of the domain that contains the package group.
    Pattern string
    The package group pattern that is used to gather packages.
    ContactInfo string
    The contact info of the package group.
    Description string
    The text description of the package group.
    DomainOwner string
    The 12-digit account ID of the AWS account that owns the domain.
    OriginConfiguration Pulumi.AwsNative.CodeArtifact.Inputs.PackageGroupOriginConfiguration
    The package origin configuration of the package group.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs to apply to the package group.
    DomainName string
    The name of the domain that contains the package group.
    Pattern string
    The package group pattern that is used to gather packages.
    ContactInfo string
    The contact info of the package group.
    Description string
    The text description of the package group.
    DomainOwner string
    The 12-digit account ID of the AWS account that owns the domain.
    OriginConfiguration PackageGroupOriginConfigurationArgs
    The package origin configuration of the package group.
    Tags TagArgs
    An array of key-value pairs to apply to the package group.
    domain_name string
    The name of the domain that contains the package group.
    pattern string
    The package group pattern that is used to gather packages.
    contact_info string
    The contact info of the package group.
    description string
    The text description of the package group.
    domain_owner string
    The 12-digit account ID of the AWS account that owns the domain.
    origin_configuration object
    The package origin configuration of the package group.
    tags list(object)
    An array of key-value pairs to apply to the package group.
    domainName String
    The name of the domain that contains the package group.
    pattern String
    The package group pattern that is used to gather packages.
    contactInfo String
    The contact info of the package group.
    description String
    The text description of the package group.
    domainOwner String
    The 12-digit account ID of the AWS account that owns the domain.
    originConfiguration PackageGroupOriginConfiguration
    The package origin configuration of the package group.
    tags List<Tag>
    An array of key-value pairs to apply to the package group.
    domainName string
    The name of the domain that contains the package group.
    pattern string
    The package group pattern that is used to gather packages.
    contactInfo string
    The contact info of the package group.
    description string
    The text description of the package group.
    domainOwner string
    The 12-digit account ID of the AWS account that owns the domain.
    originConfiguration PackageGroupOriginConfiguration
    The package origin configuration of the package group.
    tags Tag[]
    An array of key-value pairs to apply to the package group.
    domain_name str
    The name of the domain that contains the package group.
    pattern str
    The package group pattern that is used to gather packages.
    contact_info str
    The contact info of the package group.
    description str
    The text description of the package group.
    domain_owner str
    The 12-digit account ID of the AWS account that owns the domain.
    origin_configuration PackageGroupOriginConfigurationArgs
    The package origin configuration of the package group.
    tags Sequence[TagArgs]
    An array of key-value pairs to apply to the package group.
    domainName String
    The name of the domain that contains the package group.
    pattern String
    The package group pattern that is used to gather packages.
    contactInfo String
    The contact info of the package group.
    description String
    The text description of the package group.
    domainOwner String
    The 12-digit account ID of the AWS account that owns the domain.
    originConfiguration Property Map
    The package origin configuration of the package group.
    tags List<Property Map>
    An array of key-value pairs to apply to the package group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PackageGroup resource produces the following output properties:

    Arn string
    The ARN of the package group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The ARN of the package group.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn string
    The ARN of the package group.
    id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The ARN of the package group.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The ARN of the package group.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The ARN of the package group.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The ARN of the package group.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing PackageGroup Resource

    Get an existing PackageGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): PackageGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> PackageGroup
    func GetPackageGroup(ctx *Context, name string, id IDInput, state *PackageGroupState, opts ...ResourceOption) (*PackageGroup, error)
    public static PackageGroup Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static PackageGroup get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingPackageGroup:    type: aws-native:codeartifact:PackageGroup    get:      id: ${id}
    import {
      to = aws-native_codeartifact_package_group.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state PackageGroupState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    PackageGroupOriginConfiguration, PackageGroupOriginConfigurationArgs

    Restrictions Pulumi.AwsNative.CodeArtifact.Inputs.PackageGroupRestrictions
    The origin configuration that is applied to the package group.
    Restrictions PackageGroupRestrictions
    The origin configuration that is applied to the package group.
    restrictions object
    The origin configuration that is applied to the package group.
    restrictions PackageGroupRestrictions
    The origin configuration that is applied to the package group.
    restrictions PackageGroupRestrictions
    The origin configuration that is applied to the package group.
    restrictions PackageGroupRestrictions
    The origin configuration that is applied to the package group.
    restrictions Property Map
    The origin configuration that is applied to the package group.

    PackageGroupRestrictionType, PackageGroupRestrictionTypeArgs

    PackageGroupRestrictionTypeRestrictionMode

    NameValue
    AllowALLOW
    BlockBLOCK
    AllowSpecificRepositoriesALLOW_SPECIFIC_REPOSITORIES
    InheritINHERIT
    NameValue
    PackageGroupRestrictionTypeRestrictionModeAllowALLOW
    PackageGroupRestrictionTypeRestrictionModeBlockBLOCK
    PackageGroupRestrictionTypeRestrictionModeAllowSpecificRepositoriesALLOW_SPECIFIC_REPOSITORIES
    PackageGroupRestrictionTypeRestrictionModeInheritINHERIT
    Value
    ALLOW
    BLOCK
    ALLOW_SPECIFIC_REPOSITORIES
    INHERIT
    NameValue
    AllowALLOW
    BlockBLOCK
    AllowSpecificRepositoriesALLOW_SPECIFIC_REPOSITORIES
    InheritINHERIT
    NameValue
    AllowALLOW
    BlockBLOCK
    AllowSpecificRepositoriesALLOW_SPECIFIC_REPOSITORIES
    InheritINHERIT
    NameValue
    ALLOWALLOW
    BLOCKBLOCK
    ALLOW_SPECIFIC_REPOSITORIESALLOW_SPECIFIC_REPOSITORIES
    INHERITINHERIT
    Value
    ALLOW
    BLOCK
    ALLOW_SPECIFIC_REPOSITORIES
    INHERIT

    PackageGroupRestrictions, PackageGroupRestrictionsArgs

    ExternalUpstream Pulumi.AwsNative.CodeArtifact.Inputs.PackageGroupRestrictionType
    The external upstream restriction determines if new package versions can be ingested or retained from external connections.
    InternalUpstream Pulumi.AwsNative.CodeArtifact.Inputs.PackageGroupRestrictionType
    The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
    Publish Pulumi.AwsNative.CodeArtifact.Inputs.PackageGroupRestrictionType
    The publish restriction determines if new package versions can be published.
    ExternalUpstream PackageGroupRestrictionType
    The external upstream restriction determines if new package versions can be ingested or retained from external connections.
    InternalUpstream PackageGroupRestrictionType
    The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
    Publish PackageGroupRestrictionType
    The publish restriction determines if new package versions can be published.
    external_upstream object
    The external upstream restriction determines if new package versions can be ingested or retained from external connections.
    internal_upstream object
    The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
    publish object
    The publish restriction determines if new package versions can be published.
    externalUpstream PackageGroupRestrictionType
    The external upstream restriction determines if new package versions can be ingested or retained from external connections.
    internalUpstream PackageGroupRestrictionType
    The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
    publish PackageGroupRestrictionType
    The publish restriction determines if new package versions can be published.
    externalUpstream PackageGroupRestrictionType
    The external upstream restriction determines if new package versions can be ingested or retained from external connections.
    internalUpstream PackageGroupRestrictionType
    The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
    publish PackageGroupRestrictionType
    The publish restriction determines if new package versions can be published.
    external_upstream PackageGroupRestrictionType
    The external upstream restriction determines if new package versions can be ingested or retained from external connections.
    internal_upstream PackageGroupRestrictionType
    The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
    publish PackageGroupRestrictionType
    The publish restriction determines if new package versions can be published.
    externalUpstream Property Map
    The external upstream restriction determines if new package versions can be ingested or retained from external connections.
    internalUpstream Property Map
    The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.
    publish Property Map
    The publish restriction determines if new package versions can be published.

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial