import { Value } from '../../../cloudformation/Value';
/**
  The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-encryptionconfiguration.html">the AWS Docs</a>
*/
export interface EncryptionConfigurationProps {
    /** <code>EncryptionType</code>  <a name="cfn-ecr-repository-encryptionconfiguration-encryptiontype"></a>
  The encryption type to use.<br />
  If you use the <code>KMS</code> encryption type, the contents of the repository will be encrypted using server-side encryption with AWS Key Management Service key stored in AWS KMS. When you use AWS KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you already created. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">Protecting data using server-side encryption with an AWS KMS key stored in AWS Key Management Service (SSE-KMS)</a> in the
  Amazon Simple Storage Service Console Developer Guide: br />
  
  Required: Yes<br />
  
  Allowed values: <code>AES256 | KMS</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    encryptionType: Value<'AES256' | 'KMS'>;
    /** <code>KmsKey</code>  <a name="cfn-ecr-repository-encryptionconfiguration-kmskey"></a>
  If you use the <code>KMS</code> encryption type, specify the AWS KMS key to use for encryption. The alias, key ID, or full ARN of the AWS KMS key can be specified. The key must exist in the same Region as the repository. If no key is specified, the default AWS managed AWS KMS key for Amazon ECR will be used.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>2048</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    kmsKey?: Value<string>;
}
