| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.SageMaker.CreateImage
Description
Creates a custom SageMaker image. A SageMaker image is a set of image versions. Each image version represents a container image stored in Amazon Container Registry (ECR). For more information, see Bring your own SageMaker image.
Synopsis
- data CreateImage = CreateImage' {}
- newCreateImage :: Text -> Text -> CreateImage
- createImage_displayName :: Lens' CreateImage (Maybe Text)
- createImage_description :: Lens' CreateImage (Maybe Text)
- createImage_tags :: Lens' CreateImage (Maybe [Tag])
- createImage_imageName :: Lens' CreateImage Text
- createImage_roleArn :: Lens' CreateImage Text
- data CreateImageResponse = CreateImageResponse' {
- imageArn :: Maybe Text
- httpStatus :: Int
- newCreateImageResponse :: Int -> CreateImageResponse
- createImageResponse_imageArn :: Lens' CreateImageResponse (Maybe Text)
- createImageResponse_httpStatus :: Lens' CreateImageResponse Int
Creating a Request
data CreateImage Source #
See: newCreateImage smart constructor.
Constructors
| CreateImage' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateImage |
Create a value of CreateImage 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:displayName:CreateImage', createImage_displayName - The display name of the image. If not provided, ImageName is
displayed.
$sel:description:CreateImage', createImage_description - The description of the image.
$sel:tags:CreateImage', createImage_tags - A list of tags to apply to the image.
$sel:imageName:CreateImage', createImage_imageName - The name of the image. Must be unique to your account.
$sel:roleArn:CreateImage', createImage_roleArn - The Amazon Resource Name (ARN) of an IAM role that enables Amazon
SageMaker to perform tasks on your behalf.
Request Lenses
createImage_displayName :: Lens' CreateImage (Maybe Text) Source #
The display name of the image. If not provided, ImageName is
displayed.
createImage_description :: Lens' CreateImage (Maybe Text) Source #
The description of the image.
createImage_tags :: Lens' CreateImage (Maybe [Tag]) Source #
A list of tags to apply to the image.
createImage_imageName :: Lens' CreateImage Text Source #
The name of the image. Must be unique to your account.
createImage_roleArn :: Lens' CreateImage Text Source #
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
Destructuring the Response
data CreateImageResponse Source #
See: newCreateImageResponse smart constructor.
Constructors
| CreateImageResponse' | |
Fields
| |
Instances
newCreateImageResponse Source #
Arguments
| :: Int | |
| -> CreateImageResponse |
Create a value of CreateImageResponse 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:imageArn:CreateImageResponse', createImageResponse_imageArn - The Amazon Resource Name (ARN) of the image.
$sel:httpStatus:CreateImageResponse', createImageResponse_httpStatus - The response's http status code.
Response Lenses
createImageResponse_imageArn :: Lens' CreateImageResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the image.
createImageResponse_httpStatus :: Lens' CreateImageResponse Int Source #
The response's http status code.