AWS Fundamentals Logo
AWS Fundamentals
AWS::CodeArtifact::Package

CodeArtifact Package

Resource Type definition for AWS::CodeArtifact::Package

Properties

5 configurable properties. 4 required. Click a row to see details.

Filter:
PropertyTypeFlags
DomainName
string
RequiredCreate-only
Format
string
RequiredCreate-only
Name
string
RequiredCreate-only
Repository
string
RequiredCreate-only
Namespace
string
Create-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe ARN of the package.
OriginConfigurationobjectThe package origin configuration for the package.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CodeArtifact::Package

Resources:
  MyResource:
    Type: AWS::CodeArtifact::Package
    Properties:
      DomainName: "my-domainname"
      Repository: "value"
      Format: "npm"
      Name: "my-name"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

codeartifact:DescribePackage

list

codeartifact:ListPackages

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceCodeArtifact
Properties7
Required4
TaggingNot supported
Primary IDArn

Supported Operations

ReadList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DomainNameFormatNameNamespaceRepository

External Links