# CfnPackageGroupProps

Properties for defining a `CfnPackageGroup`.

Extends: CfnPackageGroupProps
Used as props by: CfnPackageGroup

- Source: Generated code
- Type last changed: v2.134.0 · 26 Mar 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeartifact as codeartifact } from 'aws-cdk-lib';
const cfnPackageGroupProps: codeartifact.CfnPackageGroupProps = {
  domainName: 'domainName',
  pattern: 'pattern',

  // the properties below are optional
  contactInfo: 'contactInfo',
  description: 'description',
  domainOwner: 'domainOwner',
  originConfiguration: {
    restrictions: {
      externalUpstream: {
        restrictionMode: 'restrictionMode',

        // the properties below are optional
        repositories: ['repositories'],
      },
      internalUpstream: {
        restrictionMode: 'restrictionMode',

        // the properties below are optional
        repositories: ['repositories'],
      },
      publish: {
        restrictionMode: 'restrictionMode',

        // the properties below are optional
        repositories: ['repositories'],
      },
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `contactInfo`: string — The contact information of the package group.

- `description`: string — The description of the package group.

- `domainName`: string (required) — The domain that contains the package group.

- `domainOwner`: string — The 12-digit account number of the AWS account that owns the domain.

  It does not include dashes or spaces.

- `originConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPackageGroup.OriginConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnPackageGroup.OriginConfigurationProperty.html) — Details about the package origin configuration of a package group.

- `pattern`: string (required) — The pattern of the package group.

  The pattern determines which packages are associated with the package group.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to the package group.
