# RestrictionTypeProperty

- Source: Generated at build time
- Type last changed: v2.134.0 · 26 Mar 2024

## Example

TypeScript:

```ts
// 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 restrictionTypeProperty: codeartifact.CfnPackageGroup.RestrictionTypeProperty = {
  restrictionMode: 'restrictionMode',

  // the properties below are optional
  repositories: ['repositories'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codeartifact as codeartifact

restriction_type_property = codeartifact.CfnPackageGroup.RestrictionTypeProperty(
    restriction_mode="restrictionMode",

    # the properties below are optional
    repositories=["repositories"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codeartifact.*;

RestrictionTypeProperty restrictionTypeProperty = RestrictionTypeProperty.builder()
        .restrictionMode("restrictionMode")

        // the properties below are optional
        .repositories(List.of("repositories"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeArtifact;

var restrictionTypeProperty = new RestrictionTypeProperty {
    RestrictionMode = "restrictionMode",

    // the properties below are optional
    Repositories = new [] { "repositories" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

restrictionTypeProperty := &RestrictionTypeProperty{
	RestrictionMode: jsii.String("restrictionMode"),

	// the properties below are optional
	Repositories: []*string{
		jsii.String("repositories"),
	},
}
```

## Properties

- `repositories`: string[]

- `restrictionMode`: string (required)
