interface RestrictionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeArtifact.CfnPackage.RestrictionsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodeartifact#CfnPackage_RestrictionsProperty |
Java | software.amazon.awscdk.services.codeartifact.CfnPackage.RestrictionsProperty |
Python | aws_cdk.aws_codeartifact.CfnPackage.RestrictionsProperty |
TypeScript | aws-cdk-lib » aws_codeartifact » CfnPackage » RestrictionsProperty |
The origin restrictions for the package.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeartifact as codeartifact } from 'aws-cdk-lib';
const restrictionsProperty: codeartifact.CfnPackage.RestrictionsProperty = {
publish: 'publish',
upstream: 'upstream',
};
Properties
| Name | Type | Description |
|---|---|---|
| publish? | string | The package origin configuration that determines if new versions of the package can be published directly to the repository. |
| upstream? | string | The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source. |
publish?
Type:
string
(optional)
The package origin configuration that determines if new versions of the package can be published directly to the repository.
upstream?
Type:
string
(optional)
The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.

.NET
Go
Java
Python
TypeScript