AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CodeArtifact::Domain

CfnDomain

The `AWS::CodeArtifact::Domain` resource creates an AWS CodeArtifact domain. CodeArtifact *domains* make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts. For more information about domains, see the [Domain concepts information](https://docs.aws.amazon.com/codeartifact/latest/ug/codeartifact-concepts.html#welcome-concepts-domain) in the *CodeArtifact User Guide* . For more information about the `CreateDomain` API, see [CreateDomain](https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_CreateDomain.html) in the *CodeArtifact API Reference* .

Import

import { CfnDomain } from 'aws-cdk-lib/aws-codeartifact';

Or use the module namespace:

import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';
// codeartifact.CfnDomain

Properties

Configuration passed to the constructor as CfnDomainProps.

domainNameRequired
string

A string that specifies the name of the requested domain.

encryptionKeyOptional
string

The key used to encrypt the domain.

permissionsPolicyDocumentOptional
any

The document that defines the resource policy that is set on a domain.

tagsOptional
CfnTag[]

A list of tags to be applied to the domain.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

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

LevelL1 (CloudFormation)
Moduleaws-codeartifact
CFN TypeAWS::CodeArtifact::Domain
Properties4

Related Constructs

External Links