Skip to content
v2.277.0

RestrictionTypeProperty Struct ​

Example ​

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
# 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
// 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();
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" }
};
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 ​

repositoriesoptionalstring[]repositoriesoptionaltyping.List[str]repositoriesoptionalList<String>Repositoriesoptionalstring[]Repositoriesoptional*[]*string #
restrictionModestringrestriction_modestrrestrictionModeStringRestrictionModestringRestrictionMode*string required #