Skip to content
v2.274.0

CfnPackageGroupProps Struct ​

Properties for defining a CfnPackageGroup.

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 ​

contactInfostringcontact_infostrcontactInfoStringContactInfostringContactInfo*string#
The contact information of the package group.
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string#
The description of the package group.
domainNamestringdomain_namestrdomainNameStringDomainNamestringDomainName*stringrequired#
The domain that contains the package group.
domainOwnerstringdomain_ownerstrdomainOwnerStringDomainOwnerstringDomainOwner*string#
The 12-digit account number of the AWS account that owns the domain.

It does not include dashes or spaces.

originConfigurationIResolvable | CfnPackageGroup.OriginConfigurationPropertyorigin_configurationtyping.Union[IResolvable, OriginConfigurationProperty]originConfigurationIResolvableOriginConfigurationIResolvableOriginConfigurationinterface{}#
Details about the package origin configuration of a package group.
patternstringpatternstrpatternStringPatternstringPattern*stringrequired#
The pattern of the package group.

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

tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
An array of key-value pairs to apply to the package group.