| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECR.PutImageTagMutability
Description
Updates the image tag mutability settings for the specified repository. For more information, see Image tag mutability in the Amazon Elastic Container Registry User Guide.
Synopsis
- data PutImageTagMutability = PutImageTagMutability' {}
- newPutImageTagMutability :: Text -> ImageTagMutability -> PutImageTagMutability
- putImageTagMutability_registryId :: Lens' PutImageTagMutability (Maybe Text)
- putImageTagMutability_repositoryName :: Lens' PutImageTagMutability Text
- putImageTagMutability_imageTagMutability :: Lens' PutImageTagMutability ImageTagMutability
- data PutImageTagMutabilityResponse = PutImageTagMutabilityResponse' {}
- newPutImageTagMutabilityResponse :: Int -> PutImageTagMutabilityResponse
- putImageTagMutabilityResponse_imageTagMutability :: Lens' PutImageTagMutabilityResponse (Maybe ImageTagMutability)
- putImageTagMutabilityResponse_registryId :: Lens' PutImageTagMutabilityResponse (Maybe Text)
- putImageTagMutabilityResponse_repositoryName :: Lens' PutImageTagMutabilityResponse (Maybe Text)
- putImageTagMutabilityResponse_httpStatus :: Lens' PutImageTagMutabilityResponse Int
Creating a Request
data PutImageTagMutability Source #
See: newPutImageTagMutability smart constructor.
Constructors
| PutImageTagMutability' | |
Fields
| |
Instances
newPutImageTagMutability Source #
Arguments
| :: Text | |
| -> ImageTagMutability | |
| -> PutImageTagMutability |
Create a value of PutImageTagMutability 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:
PutImageTagMutability, putImageTagMutability_registryId - The Amazon Web Services account ID associated with the registry that
contains the repository in which to update the image tag mutability
settings. If you do not specify a registry, the default registry is
assumed.
PutImageTagMutability, putImageTagMutability_repositoryName - The name of the repository in which to update the image tag mutability
settings.
PutImageTagMutability, putImageTagMutability_imageTagMutability - The tag mutability setting for the repository. If MUTABLE is
specified, image tags can be overwritten. If IMMUTABLE is specified,
all image tags within the repository will be immutable which will
prevent them from being overwritten.
Request Lenses
putImageTagMutability_registryId :: Lens' PutImageTagMutability (Maybe Text) Source #
The Amazon Web Services account ID associated with the registry that contains the repository in which to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed.
putImageTagMutability_repositoryName :: Lens' PutImageTagMutability Text Source #
The name of the repository in which to update the image tag mutability settings.
putImageTagMutability_imageTagMutability :: Lens' PutImageTagMutability ImageTagMutability Source #
The tag mutability setting for the repository. If MUTABLE is
specified, image tags can be overwritten. If IMMUTABLE is specified,
all image tags within the repository will be immutable which will
prevent them from being overwritten.
Destructuring the Response
data PutImageTagMutabilityResponse Source #
See: newPutImageTagMutabilityResponse smart constructor.
Constructors
| PutImageTagMutabilityResponse' | |
Fields
| |
Instances
newPutImageTagMutabilityResponse Source #
Create a value of PutImageTagMutabilityResponse 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:
PutImageTagMutability, putImageTagMutabilityResponse_imageTagMutability - The image tag mutability setting for the repository.
PutImageTagMutability, putImageTagMutabilityResponse_registryId - The registry ID associated with the request.
PutImageTagMutability, putImageTagMutabilityResponse_repositoryName - The repository name associated with the request.
$sel:httpStatus:PutImageTagMutabilityResponse', putImageTagMutabilityResponse_httpStatus - The response's http status code.
Response Lenses
putImageTagMutabilityResponse_imageTagMutability :: Lens' PutImageTagMutabilityResponse (Maybe ImageTagMutability) Source #
The image tag mutability setting for the repository.
putImageTagMutabilityResponse_registryId :: Lens' PutImageTagMutabilityResponse (Maybe Text) Source #
The registry ID associated with the request.
putImageTagMutabilityResponse_repositoryName :: Lens' PutImageTagMutabilityResponse (Maybe Text) Source #
The repository name associated with the request.
putImageTagMutabilityResponse_httpStatus :: Lens' PutImageTagMutabilityResponse Int Source #
The response's http status code.