libZSservicesZSamazonka-ecrZSamazonka-ecr
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECR.CreateRepository

Description

Creates a repository. For more information, see Amazon ECR repositories in the Amazon Elastic Container Registry User Guide.

Synopsis

Creating a Request

data CreateRepository Source #

See: newCreateRepository smart constructor.

Constructors

CreateRepository' 

Fields

  • registryId :: Maybe Text

    The AWS account ID associated with the registry to create the repository. If you do not specify a registry, the default registry is assumed.

  • imageScanningConfiguration :: Maybe ImageScanningConfiguration

    The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.

  • encryptionConfiguration :: Maybe EncryptionConfiguration

    The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.

  • imageTagMutability :: Maybe ImageTagMutability

    The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.

  • tags :: Maybe [Tag]

    The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

  • repositoryName :: Text

    The name to use for the repository. The repository name may be specified on its own (such as nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such as project-a/nginx-web-app).

Instances

Instances details
Eq CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Read CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Show CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Generic CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Associated Types

type Rep CreateRepository :: Type -> Type #

NFData CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Methods

rnf :: CreateRepository -> () #

Hashable CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

ToJSON CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

AWSRequest CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Associated Types

type AWSResponse CreateRepository #

ToHeaders CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

ToPath CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

ToQuery CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

type Rep CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

type Rep CreateRepository = D1 ('MetaData "CreateRepository" "Amazonka.ECR.CreateRepository" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "CreateRepository'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "imageScanningConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageScanningConfiguration)) :*: S1 ('MetaSel ('Just "encryptionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionConfiguration)))) :*: (S1 ('MetaSel ('Just "imageTagMutability") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageTagMutability)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateRepository Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

newCreateRepository Source #

Create a value of CreateRepository with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:registryId:CreateRepository', createRepository_registryId - The AWS account ID associated with the registry to create the repository. If you do not specify a registry, the default registry is assumed.

$sel:imageScanningConfiguration:CreateRepository', createRepository_imageScanningConfiguration - The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.

$sel:encryptionConfiguration:CreateRepository', createRepository_encryptionConfiguration - The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.

$sel:imageTagMutability:CreateRepository', createRepository_imageTagMutability - The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.

$sel:tags:CreateRepository', createRepository_tags - The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

$sel:repositoryName:CreateRepository', createRepository_repositoryName - The name to use for the repository. The repository name may be specified on its own (such as nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such as project-a/nginx-web-app).

Request Lenses

createRepository_registryId :: Lens' CreateRepository (Maybe Text) Source #

The AWS account ID associated with the registry to create the repository. If you do not specify a registry, the default registry is assumed.

createRepository_imageScanningConfiguration :: Lens' CreateRepository (Maybe ImageScanningConfiguration) Source #

The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.

createRepository_encryptionConfiguration :: Lens' CreateRepository (Maybe EncryptionConfiguration) Source #

The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.

createRepository_imageTagMutability :: Lens' CreateRepository (Maybe ImageTagMutability) Source #

The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.

createRepository_tags :: Lens' CreateRepository (Maybe [Tag]) Source #

The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

createRepository_repositoryName :: Lens' CreateRepository Text Source #

The name to use for the repository. The repository name may be specified on its own (such as nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such as project-a/nginx-web-app).

Destructuring the Response

data CreateRepositoryResponse Source #

See: newCreateRepositoryResponse smart constructor.

Constructors

CreateRepositoryResponse' 

Fields

Instances

Instances details
Eq CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Read CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Show CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Generic CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

Associated Types

type Rep CreateRepositoryResponse :: Type -> Type #

NFData CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

type Rep CreateRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.CreateRepository

type Rep CreateRepositoryResponse = D1 ('MetaData "CreateRepositoryResponse" "Amazonka.ECR.CreateRepository" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "CreateRepositoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Repository)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateRepositoryResponse Source #

Create a value of CreateRepositoryResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:repository:CreateRepositoryResponse', createRepositoryResponse_repository - The repository that was created.

$sel:httpStatus:CreateRepositoryResponse', createRepositoryResponse_httpStatus - The response's http status code.

Response Lenses