Interface ICfnRepositoryCreationTemplateProps
Properties for defining a CfnRepositoryCreationTemplate
.
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnRepositoryCreationTemplateProps
Syntax (vb)
Public Interface ICfnRepositoryCreationTemplateProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECR;
var cfnRepositoryCreationTemplateProps = new CfnRepositoryCreationTemplateProps {
AppliedFor = new [] { "appliedFor" },
Prefix = "prefix",
// the properties below are optional
Description = "description",
EncryptionConfiguration = new EncryptionConfigurationProperty {
EncryptionType = "encryptionType",
// the properties below are optional
KmsKey = "kmsKey"
},
ImageTagMutability = "imageTagMutability",
LifecyclePolicy = "lifecyclePolicy",
RepositoryPolicy = "repositoryPolicy",
ResourceTags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
AppliedFor | A list of enumerable Strings representing the repository creation scenarios that the template will apply towards. |
Description | The description of the template. |
EncryptionConfiguration | The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest. |
ImageTagMutability | The image tag mutability setting for the repository. |
LifecyclePolicy | The JSON lifecycle policy text to apply to the repository. |
Prefix | The prefix use to match the repository name and apply the template. |
RepositoryPolicy | The JSON repository policy text to apply to the repository. |
ResourceTags | The tags attached to the resource. |
Properties
AppliedFor
A list of enumerable Strings representing the repository creation scenarios that the template will apply towards.
string[] AppliedFor { get; }
Property Value
System.String[]
Remarks
Description
The description of the template.
virtual string Description { get; }
Property Value
System.String
Remarks
EncryptionConfiguration
The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
virtual object EncryptionConfiguration { get; }
Property Value
System.Object
Remarks
By default, when no encryption configuration is set or the AES256
encryption type is used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your data at rest using an AES-256 encryption algorithm. This does not require any action on your part.
For more control over the encryption of the contents of your repository, you can use server-side encryption with AWS Key Management Service key stored in AWS Key Management Service ( AWS KMS ) to encrypt your images. For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide .
ImageTagMutability
The image tag mutability setting for the repository.
virtual string ImageTagMutability { get; }
Property Value
System.String
Remarks
LifecyclePolicy
The JSON lifecycle policy text to apply to the repository.
virtual string LifecyclePolicy { get; }
Property Value
System.String
Remarks
Prefix
The prefix use to match the repository name and apply the template.
string Prefix { get; }
Property Value
System.String
Remarks
RepositoryPolicy
The JSON repository policy text to apply to the repository.
virtual string RepositoryPolicy { get; }
Property Value
System.String
Remarks
ResourceTags
The tags attached to the resource.
virtual object ResourceTags { get; }
Property Value
System.Object