Skip to content

Commit

Permalink
docs: README uses wrong property names
Browse files Browse the repository at this point in the history
  • Loading branch information
ataraxia937 authored Oct 5, 2023
1 parent 906aee2 commit 9e258fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ Add a CodeArtifact Domain to your stack:
```ts
import * as codeartifact from '@renovosolutions/cdk-library-aws-codeartifact';

new codeartifact.Domain(stack, 'domain', { domainName: 'example-domain' });
new codeartifact.Domain(stack, 'domain', { name: 'example-domain' });
```

Add a CodeArtifact Repository to your stack:

```ts
import * as codeartifact from '@renovosolutions/cdk-library-aws-codeartifact';

const domain = new codeartifact.Domain(stack, 'domain', { domainName: 'example-domain' });
const domain = new codeartifact.Domain(stack, 'domain', { name: 'example-domain' });
const repository = new codeartifact.Repository(stack, 'repository', {
repositoryName: 'repository',
name: 'repository',
domain,
});
```
Expand All @@ -50,10 +50,10 @@ It is also possible to use the `addRepository` method on `codeartifact.Domain` t
```ts
import * as codeartifact from '@renovosolutions/cdk-library-aws-codeartifact';

const domain = new codeartifact.Domain(stack, 'domain', { domainName: 'example-domain' });
const domain = new codeartifact.Domain(stack, 'domain', { name: 'example-domain' });

domain.addRepository('repo', {
repositoryName: 'repository'
name: 'repository'
});

```

0 comments on commit 9e258fe

Please sign in to comment.