EcrConfigurationProperty Struct
Settings that Image Builder uses to configure the ECR repository and the output container images that Amazon Inspector scans.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const ecrConfigurationProperty: imagebuilder.CfnImage.EcrConfigurationProperty = {
containerTags: ['containerTags'],
repositoryName: 'repositoryName',
};
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_imagebuilder as imagebuilder
ecr_configuration_property = imagebuilder.CfnImage.EcrConfigurationProperty(
container_tags=["containerTags"],
repository_name="repositoryName"
)
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.imagebuilder.*;
EcrConfigurationProperty ecrConfigurationProperty = EcrConfigurationProperty.builder()
.containerTags(List.of("containerTags"))
.repositoryName("repositoryName")
.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.ImageBuilder;
var ecrConfigurationProperty = new EcrConfigurationProperty {
ContainerTags = new [] { "containerTags" },
RepositoryName = "repositoryName"
};
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"
ecrConfigurationProperty := &EcrConfigurationProperty{
ContainerTags: []*string{
jsii.String("containerTags"),
},
RepositoryName: jsii.String("repositoryName"),
}
Properties
containerTagsoptionalstring[]container_tagsoptionaltyping.List[str]containerTagsoptionalList<String>ContainerTagsoptionalstring[]ContainerTagsoptional*[]*string #Tags for Image Builder to apply to the output container image that Amazon Inspector scans.
Tags can help you identify and manage your scanned images.
repositoryNameoptionalstringrepository_nameoptionalstrrepositoryNameoptionalStringRepositoryNameoptionalstringRepositoryNameoptional*string #The name of the container repository that Amazon Inspector scans to identify findings for your container images.
notes
The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named image-builder-image-scanning-repository for vulnerability scans of your output container images.