# AWS::CodeArtifact Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';
```

Python:

```python
import aws_cdk.aws_codeartifact as codeartifact
```

Java:

```java
import software.amazon.awscdk.services.codeartifact.*;
```

C# / .NET:

```csharp
using Amazon.CDK.AWS.CodeArtifact;
```

Golang:

```go
import codeartifact "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for CodeArtifact construct libraries](https://constructs.dev/search?q=codeartifact)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::CodeArtifact resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeArtifact.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::CodeArtifact](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeArtifact.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnDomain`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnDomain.html) Construct (L1) The `AWS::CodeArtifact::Domain` resource creates an AWS CodeArtifact domain.
- [`CfnPackageGroup`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnPackageGroup.html) Construct (L1) Creates a package group.
- [`CfnRepository`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnRepository.html) Construct (L1) The `AWS::CodeArtifact::Repository` resource creates an AWS CodeArtifact repository.

### Structs

- [`CfnDomainProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnDomainProps.html) Struct Properties for defining a `CfnDomain`.
- [`CfnPackageGroup.OriginConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnPackageGroup.OriginConfigurationProperty.html) Struct
- [`CfnPackageGroup.RestrictionsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnPackageGroup.RestrictionsProperty.html) Struct
- [`CfnPackageGroup.RestrictionTypeProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnPackageGroup.RestrictionTypeProperty.html) Struct
- [`CfnPackageGroupProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnPackageGroupProps.html) Struct Properties for defining a `CfnPackageGroup`.
- [`CfnRepositoryProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codeartifact.CfnRepositoryProps.html) Struct Properties for defining a `CfnRepository`.
