Skip to main content

domains

Used to retrieve a list of domains in a region or to create or delete a domains resource, use domain to read or update an individual resource.

Overview

Namedomains
TypeResource
DescriptionThe resource schema to create a CodeArtifact domain.
Idaws.codeartifact.domains

Fields

NameDatatypeDescription
arnstringThe ARN of the domain.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainName, region
delete_resourceDELETEdata__Identifier, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
arn
FROM aws.codeartifact.domains
WHERE region = 'us-east-1';

INSERT Example

Use the following StackQL query and manifest file to create a new domain resource, using stack-deploy.

/*+ create */
INSERT INTO aws.codeartifact.domains (
DomainName,
region
)
SELECT
'{{ DomainName }}',
'{{ region }}';

DELETE Example

/*+ delete */
DELETE FROM aws.codeartifact.domains
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the domains resource, the following permissions are required:

Create

codeartifact:CreateDomain,
codeartifact:DescribeDomain,
codeartifact:PutDomainPermissionsPolicy,
codeartifact:GetDomainPermissionsPolicy,
codeartifact:TagResource

Delete

codeartifact:DeleteDomain,
codeartifact:DescribeDomain

List

codeartifact:ListDomains