import { Value } from '../../cloudformation/Value';
import { ImageScanningConfigurationProps } from './repository/ImageScanningConfigurationProps';
import { EncryptionConfigurationProps } from './repository/EncryptionConfigurationProps';
import { LifecyclePolicyProps } from './repository/LifecyclePolicyProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type RepositoryAttributes = {
    RepositoryUri: Attribute<string>;
    Arn: Attribute<string>;
};
export type Repository = AwsResource<'AWS::ECR::Repository', RepositoryProperties, RepositoryAttributes>;
/**
  The <code>AWS::ECR::Repository</code> resource specifies an Amazon Elastic Container Registry (Amazon ECR) repository, where users can push and pull Docker images, Open Container Initiative (OCI) images, and OCI compatible artifacts. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html">Amazon ECR private repositories</a> in the <em>Amazon ECR User Guide</em>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html">the AWS Docs</a>
*/
export declare function repository(repositoryProps?: RepositoryProperties): Repository;
/**
  The <code>AWS::ECR::Repository</code> resource specifies an Amazon Elastic Container Registry (Amazon ECR) repository, where users can push and pull Docker images, Open Container Initiative (OCI) images, and OCI compatible artifacts. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html">Amazon ECR private repositories</a> in the <em>Amazon ECR User Guide</em>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html">the AWS Docs</a>
*/
export interface RepositoryProperties {
    /** <code>EmptyOnDelete</code>  <a name="cfn-ecr-repository-emptyondelete"></a>
  If true, deleting the repository force deletes the contents of the repository. If false, the repository must be empty before attempting to delete it.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    emptyOnDelete?: Value<boolean>;
    /** <code>ImageScanningConfiguration</code>  <a name="cfn-ecr-repository-imagescanningconfiguration"></a>
  The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    imageScanningConfiguration?: ImageScanningConfigurationProps;
    /** <code>EncryptionConfiguration</code>  <a name="cfn-ecr-repository-encryptionconfiguration"></a>
  The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    encryptionConfiguration?: EncryptionConfigurationProps;
    /** <code>RepositoryPolicyText</code>  <a name="cfn-ecr-repository-repositorypolicytext"></a>
  The JSON repository policy text to apply to the repository. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html">Amazon ECR repository policies</a> in the
  Amazon Elastic Container Registry User Guide: br />
  
  Required: No<br />
  
  Minimum: <code>0</code><br />
  
  Maximum: <code>10240</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    repositoryPolicyText?: Value<any>;
    /** <code>LifecyclePolicy</code>  <a name="cfn-ecr-repository-lifecyclepolicy"></a>
  Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html">Lifecycle policy template</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    lifecyclePolicy?: LifecyclePolicyProps;
    /** <code>RepositoryName</code>  <a name="cfn-ecr-repository-repositoryname"></a>
  The name to use for the repository. The repository name may be specified on its own (such as <code>nginx-web-app</code>) or it can be prepended with a namespace to group the repository into a category (such as <code>project-a/nginx-web-app</code>). If you don’t specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html">Name type</a>.<br />
  The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes.<br />
  If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
  
  Required: No<br />
  
  Minimum: <code>2</code><br />
  
  Maximum: <code>256</code><br />
  
  Pattern: <code>(?:[a-z0-9]+(?:[._-][a-z0-9]+)*§/)*[a-z0-9]+(?:[._-][a-z0-9]+)*</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> */
    repositoryName?: Value<string>;
    /** <code>Tags</code>  <a name="cfn-ecr-repository-tags"></a>
  An array of key-value pairs to apply to this resource.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    tags?: Tag[];
    /** <code>ImageTagMutability</code>  <a name="cfn-ecr-repository-imagetagmutability"></a>
  The tag mutability setting for the repository. If this parameter is omitted, the default setting of <code>MUTABLE</code> will be used which will allow image tags to be overwritten. If <code>IMMUTABLE</code> is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.<br />
  
  Required: No<br />
  
  Allowed values: <code>IMMUTABLE | MUTABLE</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    imageTagMutability?: Value<'IMMUTABLE' | 'MUTABLE'>;
}
