{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ImageBuilder.Types.ImagePipeline
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ImageBuilder.Types.ImagePipeline where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ImageBuilder.Types.ImageTestsConfiguration
import Amazonka.ImageBuilder.Types.PipelineStatus
import Amazonka.ImageBuilder.Types.Platform
import Amazonka.ImageBuilder.Types.Schedule
import qualified Amazonka.Prelude as Prelude

-- | Details of an image pipeline.
--
-- /See:/ 'newImagePipeline' smart constructor.
data ImagePipeline = ImagePipeline'
  { -- | The Amazon Resource Name (ARN) of the image pipeline.
    ImagePipeline -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the container recipe that is used for
    -- this pipeline.
    ImagePipeline -> Maybe Text
containerRecipeArn :: Prelude.Maybe Prelude.Text,
    -- | The date on which this image pipeline was created.
    ImagePipeline -> Maybe Text
dateCreated :: Prelude.Maybe Prelude.Text,
    -- | The date on which this image pipeline was last run.
    ImagePipeline -> Maybe Text
dateLastRun :: Prelude.Maybe Prelude.Text,
    -- | The date on which this image pipeline will next be run.
    ImagePipeline -> Maybe Text
dateNextRun :: Prelude.Maybe Prelude.Text,
    -- | The date on which this image pipeline was last updated.
    ImagePipeline -> Maybe Text
dateUpdated :: Prelude.Maybe Prelude.Text,
    -- | The description of the image pipeline.
    ImagePipeline -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the distribution configuration
    -- associated with this image pipeline.
    ImagePipeline -> Maybe Text
distributionConfigurationArn :: Prelude.Maybe Prelude.Text,
    -- | Collects additional information about the image being created, including
    -- the operating system (OS) version and package list. This information is
    -- used to enhance the overall experience of using EC2 Image Builder.
    -- Enabled by default.
    ImagePipeline -> Maybe Bool
enhancedImageMetadataEnabled :: Prelude.Maybe Prelude.Bool,
    -- | The Amazon Resource Name (ARN) of the image recipe associated with this
    -- image pipeline.
    ImagePipeline -> Maybe Text
imageRecipeArn :: Prelude.Maybe Prelude.Text,
    -- | The image tests configuration of the image pipeline.
    ImagePipeline -> Maybe ImageTestsConfiguration
imageTestsConfiguration :: Prelude.Maybe ImageTestsConfiguration,
    -- | The Amazon Resource Name (ARN) of the infrastructure configuration
    -- associated with this image pipeline.
    ImagePipeline -> Maybe Text
infrastructureConfigurationArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the image pipeline.
    ImagePipeline -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The platform of the image pipeline.
    ImagePipeline -> Maybe Platform
platform :: Prelude.Maybe Platform,
    -- | The schedule of the image pipeline.
    ImagePipeline -> Maybe Schedule
schedule :: Prelude.Maybe Schedule,
    -- | The status of the image pipeline.
    ImagePipeline -> Maybe PipelineStatus
status :: Prelude.Maybe PipelineStatus,
    -- | The tags of this image pipeline.
    ImagePipeline -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (ImagePipeline -> ImagePipeline -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImagePipeline -> ImagePipeline -> Bool
$c/= :: ImagePipeline -> ImagePipeline -> Bool
== :: ImagePipeline -> ImagePipeline -> Bool
$c== :: ImagePipeline -> ImagePipeline -> Bool
Prelude.Eq, ReadPrec [ImagePipeline]
ReadPrec ImagePipeline
Int -> ReadS ImagePipeline
ReadS [ImagePipeline]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImagePipeline]
$creadListPrec :: ReadPrec [ImagePipeline]
readPrec :: ReadPrec ImagePipeline
$creadPrec :: ReadPrec ImagePipeline
readList :: ReadS [ImagePipeline]
$creadList :: ReadS [ImagePipeline]
readsPrec :: Int -> ReadS ImagePipeline
$creadsPrec :: Int -> ReadS ImagePipeline
Prelude.Read, Int -> ImagePipeline -> ShowS
[ImagePipeline] -> ShowS
ImagePipeline -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImagePipeline] -> ShowS
$cshowList :: [ImagePipeline] -> ShowS
show :: ImagePipeline -> String
$cshow :: ImagePipeline -> String
showsPrec :: Int -> ImagePipeline -> ShowS
$cshowsPrec :: Int -> ImagePipeline -> ShowS
Prelude.Show, forall x. Rep ImagePipeline x -> ImagePipeline
forall x. ImagePipeline -> Rep ImagePipeline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImagePipeline x -> ImagePipeline
$cfrom :: forall x. ImagePipeline -> Rep ImagePipeline x
Prelude.Generic)

-- |
-- Create a value of 'ImagePipeline' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'arn', 'imagePipeline_arn' - The Amazon Resource Name (ARN) of the image pipeline.
--
-- 'containerRecipeArn', 'imagePipeline_containerRecipeArn' - The Amazon Resource Name (ARN) of the container recipe that is used for
-- this pipeline.
--
-- 'dateCreated', 'imagePipeline_dateCreated' - The date on which this image pipeline was created.
--
-- 'dateLastRun', 'imagePipeline_dateLastRun' - The date on which this image pipeline was last run.
--
-- 'dateNextRun', 'imagePipeline_dateNextRun' - The date on which this image pipeline will next be run.
--
-- 'dateUpdated', 'imagePipeline_dateUpdated' - The date on which this image pipeline was last updated.
--
-- 'description', 'imagePipeline_description' - The description of the image pipeline.
--
-- 'distributionConfigurationArn', 'imagePipeline_distributionConfigurationArn' - The Amazon Resource Name (ARN) of the distribution configuration
-- associated with this image pipeline.
--
-- 'enhancedImageMetadataEnabled', 'imagePipeline_enhancedImageMetadataEnabled' - Collects additional information about the image being created, including
-- the operating system (OS) version and package list. This information is
-- used to enhance the overall experience of using EC2 Image Builder.
-- Enabled by default.
--
-- 'imageRecipeArn', 'imagePipeline_imageRecipeArn' - The Amazon Resource Name (ARN) of the image recipe associated with this
-- image pipeline.
--
-- 'imageTestsConfiguration', 'imagePipeline_imageTestsConfiguration' - The image tests configuration of the image pipeline.
--
-- 'infrastructureConfigurationArn', 'imagePipeline_infrastructureConfigurationArn' - The Amazon Resource Name (ARN) of the infrastructure configuration
-- associated with this image pipeline.
--
-- 'name', 'imagePipeline_name' - The name of the image pipeline.
--
-- 'platform', 'imagePipeline_platform' - The platform of the image pipeline.
--
-- 'schedule', 'imagePipeline_schedule' - The schedule of the image pipeline.
--
-- 'status', 'imagePipeline_status' - The status of the image pipeline.
--
-- 'tags', 'imagePipeline_tags' - The tags of this image pipeline.
newImagePipeline ::
  ImagePipeline
newImagePipeline :: ImagePipeline
newImagePipeline =
  ImagePipeline'
    { $sel:arn:ImagePipeline' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:containerRecipeArn:ImagePipeline' :: Maybe Text
containerRecipeArn = forall a. Maybe a
Prelude.Nothing,
      $sel:dateCreated:ImagePipeline' :: Maybe Text
dateCreated = forall a. Maybe a
Prelude.Nothing,
      $sel:dateLastRun:ImagePipeline' :: Maybe Text
dateLastRun = forall a. Maybe a
Prelude.Nothing,
      $sel:dateNextRun:ImagePipeline' :: Maybe Text
dateNextRun = forall a. Maybe a
Prelude.Nothing,
      $sel:dateUpdated:ImagePipeline' :: Maybe Text
dateUpdated = forall a. Maybe a
Prelude.Nothing,
      $sel:description:ImagePipeline' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:distributionConfigurationArn:ImagePipeline' :: Maybe Text
distributionConfigurationArn = forall a. Maybe a
Prelude.Nothing,
      $sel:enhancedImageMetadataEnabled:ImagePipeline' :: Maybe Bool
enhancedImageMetadataEnabled = forall a. Maybe a
Prelude.Nothing,
      $sel:imageRecipeArn:ImagePipeline' :: Maybe Text
imageRecipeArn = forall a. Maybe a
Prelude.Nothing,
      $sel:imageTestsConfiguration:ImagePipeline' :: Maybe ImageTestsConfiguration
imageTestsConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:infrastructureConfigurationArn:ImagePipeline' :: Maybe Text
infrastructureConfigurationArn = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ImagePipeline' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:platform:ImagePipeline' :: Maybe Platform
platform = forall a. Maybe a
Prelude.Nothing,
      $sel:schedule:ImagePipeline' :: Maybe Schedule
schedule = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ImagePipeline' :: Maybe PipelineStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ImagePipeline' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the image pipeline.
imagePipeline_arn :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_arn :: Lens' ImagePipeline (Maybe Text)
imagePipeline_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
arn :: Maybe Text
$sel:arn:ImagePipeline' :: ImagePipeline -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:arn:ImagePipeline' :: Maybe Text
arn = Maybe Text
a} :: ImagePipeline)

-- | The Amazon Resource Name (ARN) of the container recipe that is used for
-- this pipeline.
imagePipeline_containerRecipeArn :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_containerRecipeArn :: Lens' ImagePipeline (Maybe Text)
imagePipeline_containerRecipeArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
containerRecipeArn :: Maybe Text
$sel:containerRecipeArn:ImagePipeline' :: ImagePipeline -> Maybe Text
containerRecipeArn} -> Maybe Text
containerRecipeArn) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:containerRecipeArn:ImagePipeline' :: Maybe Text
containerRecipeArn = Maybe Text
a} :: ImagePipeline)

-- | The date on which this image pipeline was created.
imagePipeline_dateCreated :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_dateCreated :: Lens' ImagePipeline (Maybe Text)
imagePipeline_dateCreated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
dateCreated :: Maybe Text
$sel:dateCreated:ImagePipeline' :: ImagePipeline -> Maybe Text
dateCreated} -> Maybe Text
dateCreated) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:dateCreated:ImagePipeline' :: Maybe Text
dateCreated = Maybe Text
a} :: ImagePipeline)

-- | The date on which this image pipeline was last run.
imagePipeline_dateLastRun :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_dateLastRun :: Lens' ImagePipeline (Maybe Text)
imagePipeline_dateLastRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
dateLastRun :: Maybe Text
$sel:dateLastRun:ImagePipeline' :: ImagePipeline -> Maybe Text
dateLastRun} -> Maybe Text
dateLastRun) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:dateLastRun:ImagePipeline' :: Maybe Text
dateLastRun = Maybe Text
a} :: ImagePipeline)

-- | The date on which this image pipeline will next be run.
imagePipeline_dateNextRun :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_dateNextRun :: Lens' ImagePipeline (Maybe Text)
imagePipeline_dateNextRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
dateNextRun :: Maybe Text
$sel:dateNextRun:ImagePipeline' :: ImagePipeline -> Maybe Text
dateNextRun} -> Maybe Text
dateNextRun) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:dateNextRun:ImagePipeline' :: Maybe Text
dateNextRun = Maybe Text
a} :: ImagePipeline)

-- | The date on which this image pipeline was last updated.
imagePipeline_dateUpdated :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_dateUpdated :: Lens' ImagePipeline (Maybe Text)
imagePipeline_dateUpdated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
dateUpdated :: Maybe Text
$sel:dateUpdated:ImagePipeline' :: ImagePipeline -> Maybe Text
dateUpdated} -> Maybe Text
dateUpdated) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:dateUpdated:ImagePipeline' :: Maybe Text
dateUpdated = Maybe Text
a} :: ImagePipeline)

-- | The description of the image pipeline.
imagePipeline_description :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_description :: Lens' ImagePipeline (Maybe Text)
imagePipeline_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
description :: Maybe Text
$sel:description:ImagePipeline' :: ImagePipeline -> Maybe Text
description} -> Maybe Text
description) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:description:ImagePipeline' :: Maybe Text
description = Maybe Text
a} :: ImagePipeline)

-- | The Amazon Resource Name (ARN) of the distribution configuration
-- associated with this image pipeline.
imagePipeline_distributionConfigurationArn :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_distributionConfigurationArn :: Lens' ImagePipeline (Maybe Text)
imagePipeline_distributionConfigurationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
distributionConfigurationArn :: Maybe Text
$sel:distributionConfigurationArn:ImagePipeline' :: ImagePipeline -> Maybe Text
distributionConfigurationArn} -> Maybe Text
distributionConfigurationArn) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:distributionConfigurationArn:ImagePipeline' :: Maybe Text
distributionConfigurationArn = Maybe Text
a} :: ImagePipeline)

-- | Collects additional information about the image being created, including
-- the operating system (OS) version and package list. This information is
-- used to enhance the overall experience of using EC2 Image Builder.
-- Enabled by default.
imagePipeline_enhancedImageMetadataEnabled :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Bool)
imagePipeline_enhancedImageMetadataEnabled :: Lens' ImagePipeline (Maybe Bool)
imagePipeline_enhancedImageMetadataEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Bool
enhancedImageMetadataEnabled :: Maybe Bool
$sel:enhancedImageMetadataEnabled:ImagePipeline' :: ImagePipeline -> Maybe Bool
enhancedImageMetadataEnabled} -> Maybe Bool
enhancedImageMetadataEnabled) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Bool
a -> ImagePipeline
s {$sel:enhancedImageMetadataEnabled:ImagePipeline' :: Maybe Bool
enhancedImageMetadataEnabled = Maybe Bool
a} :: ImagePipeline)

-- | The Amazon Resource Name (ARN) of the image recipe associated with this
-- image pipeline.
imagePipeline_imageRecipeArn :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_imageRecipeArn :: Lens' ImagePipeline (Maybe Text)
imagePipeline_imageRecipeArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
imageRecipeArn :: Maybe Text
$sel:imageRecipeArn:ImagePipeline' :: ImagePipeline -> Maybe Text
imageRecipeArn} -> Maybe Text
imageRecipeArn) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:imageRecipeArn:ImagePipeline' :: Maybe Text
imageRecipeArn = Maybe Text
a} :: ImagePipeline)

-- | The image tests configuration of the image pipeline.
imagePipeline_imageTestsConfiguration :: Lens.Lens' ImagePipeline (Prelude.Maybe ImageTestsConfiguration)
imagePipeline_imageTestsConfiguration :: Lens' ImagePipeline (Maybe ImageTestsConfiguration)
imagePipeline_imageTestsConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe ImageTestsConfiguration
imageTestsConfiguration :: Maybe ImageTestsConfiguration
$sel:imageTestsConfiguration:ImagePipeline' :: ImagePipeline -> Maybe ImageTestsConfiguration
imageTestsConfiguration} -> Maybe ImageTestsConfiguration
imageTestsConfiguration) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe ImageTestsConfiguration
a -> ImagePipeline
s {$sel:imageTestsConfiguration:ImagePipeline' :: Maybe ImageTestsConfiguration
imageTestsConfiguration = Maybe ImageTestsConfiguration
a} :: ImagePipeline)

-- | The Amazon Resource Name (ARN) of the infrastructure configuration
-- associated with this image pipeline.
imagePipeline_infrastructureConfigurationArn :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_infrastructureConfigurationArn :: Lens' ImagePipeline (Maybe Text)
imagePipeline_infrastructureConfigurationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
infrastructureConfigurationArn :: Maybe Text
$sel:infrastructureConfigurationArn:ImagePipeline' :: ImagePipeline -> Maybe Text
infrastructureConfigurationArn} -> Maybe Text
infrastructureConfigurationArn) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:infrastructureConfigurationArn:ImagePipeline' :: Maybe Text
infrastructureConfigurationArn = Maybe Text
a} :: ImagePipeline)

-- | The name of the image pipeline.
imagePipeline_name :: Lens.Lens' ImagePipeline (Prelude.Maybe Prelude.Text)
imagePipeline_name :: Lens' ImagePipeline (Maybe Text)
imagePipeline_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Text
name :: Maybe Text
$sel:name:ImagePipeline' :: ImagePipeline -> Maybe Text
name} -> Maybe Text
name) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Text
a -> ImagePipeline
s {$sel:name:ImagePipeline' :: Maybe Text
name = Maybe Text
a} :: ImagePipeline)

-- | The platform of the image pipeline.
imagePipeline_platform :: Lens.Lens' ImagePipeline (Prelude.Maybe Platform)
imagePipeline_platform :: Lens' ImagePipeline (Maybe Platform)
imagePipeline_platform = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Platform
platform :: Maybe Platform
$sel:platform:ImagePipeline' :: ImagePipeline -> Maybe Platform
platform} -> Maybe Platform
platform) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Platform
a -> ImagePipeline
s {$sel:platform:ImagePipeline' :: Maybe Platform
platform = Maybe Platform
a} :: ImagePipeline)

-- | The schedule of the image pipeline.
imagePipeline_schedule :: Lens.Lens' ImagePipeline (Prelude.Maybe Schedule)
imagePipeline_schedule :: Lens' ImagePipeline (Maybe Schedule)
imagePipeline_schedule = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe Schedule
schedule :: Maybe Schedule
$sel:schedule:ImagePipeline' :: ImagePipeline -> Maybe Schedule
schedule} -> Maybe Schedule
schedule) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe Schedule
a -> ImagePipeline
s {$sel:schedule:ImagePipeline' :: Maybe Schedule
schedule = Maybe Schedule
a} :: ImagePipeline)

-- | The status of the image pipeline.
imagePipeline_status :: Lens.Lens' ImagePipeline (Prelude.Maybe PipelineStatus)
imagePipeline_status :: Lens' ImagePipeline (Maybe PipelineStatus)
imagePipeline_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe PipelineStatus
status :: Maybe PipelineStatus
$sel:status:ImagePipeline' :: ImagePipeline -> Maybe PipelineStatus
status} -> Maybe PipelineStatus
status) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe PipelineStatus
a -> ImagePipeline
s {$sel:status:ImagePipeline' :: Maybe PipelineStatus
status = Maybe PipelineStatus
a} :: ImagePipeline)

-- | The tags of this image pipeline.
imagePipeline_tags :: Lens.Lens' ImagePipeline (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
imagePipeline_tags :: Lens' ImagePipeline (Maybe (HashMap Text Text))
imagePipeline_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImagePipeline' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ImagePipeline' :: ImagePipeline -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ImagePipeline
s@ImagePipeline' {} Maybe (HashMap Text Text)
a -> ImagePipeline
s {$sel:tags:ImagePipeline' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ImagePipeline) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Data.FromJSON ImagePipeline where
  parseJSON :: Value -> Parser ImagePipeline
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ImagePipeline"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe ImageTestsConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Platform
-> Maybe Schedule
-> Maybe PipelineStatus
-> Maybe (HashMap Text Text)
-> ImagePipeline
ImagePipeline'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"containerRecipeArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dateCreated")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dateLastRun")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dateNextRun")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dateUpdated")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"distributionConfigurationArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"enhancedImageMetadataEnabled")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"imageRecipeArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"imageTestsConfiguration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"infrastructureConfigurationArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"platform")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"schedule")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable ImagePipeline where
  hashWithSalt :: Int -> ImagePipeline -> Int
hashWithSalt Int
_salt ImagePipeline' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe ImageTestsConfiguration
Maybe PipelineStatus
Maybe Platform
Maybe Schedule
tags :: Maybe (HashMap Text Text)
status :: Maybe PipelineStatus
schedule :: Maybe Schedule
platform :: Maybe Platform
name :: Maybe Text
infrastructureConfigurationArn :: Maybe Text
imageTestsConfiguration :: Maybe ImageTestsConfiguration
imageRecipeArn :: Maybe Text
enhancedImageMetadataEnabled :: Maybe Bool
distributionConfigurationArn :: Maybe Text
description :: Maybe Text
dateUpdated :: Maybe Text
dateNextRun :: Maybe Text
dateLastRun :: Maybe Text
dateCreated :: Maybe Text
containerRecipeArn :: Maybe Text
arn :: Maybe Text
$sel:tags:ImagePipeline' :: ImagePipeline -> Maybe (HashMap Text Text)
$sel:status:ImagePipeline' :: ImagePipeline -> Maybe PipelineStatus
$sel:schedule:ImagePipeline' :: ImagePipeline -> Maybe Schedule
$sel:platform:ImagePipeline' :: ImagePipeline -> Maybe Platform
$sel:name:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:infrastructureConfigurationArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:imageTestsConfiguration:ImagePipeline' :: ImagePipeline -> Maybe ImageTestsConfiguration
$sel:imageRecipeArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:enhancedImageMetadataEnabled:ImagePipeline' :: ImagePipeline -> Maybe Bool
$sel:distributionConfigurationArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:description:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateUpdated:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateNextRun:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateLastRun:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateCreated:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:containerRecipeArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:arn:ImagePipeline' :: ImagePipeline -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
containerRecipeArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dateCreated
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dateLastRun
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dateNextRun
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dateUpdated
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
distributionConfigurationArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enhancedImageMetadataEnabled
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
imageRecipeArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ImageTestsConfiguration
imageTestsConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
infrastructureConfigurationArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Platform
platform
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Schedule
schedule
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PipelineStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags

instance Prelude.NFData ImagePipeline where
  rnf :: ImagePipeline -> ()
rnf ImagePipeline' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe ImageTestsConfiguration
Maybe PipelineStatus
Maybe Platform
Maybe Schedule
tags :: Maybe (HashMap Text Text)
status :: Maybe PipelineStatus
schedule :: Maybe Schedule
platform :: Maybe Platform
name :: Maybe Text
infrastructureConfigurationArn :: Maybe Text
imageTestsConfiguration :: Maybe ImageTestsConfiguration
imageRecipeArn :: Maybe Text
enhancedImageMetadataEnabled :: Maybe Bool
distributionConfigurationArn :: Maybe Text
description :: Maybe Text
dateUpdated :: Maybe Text
dateNextRun :: Maybe Text
dateLastRun :: Maybe Text
dateCreated :: Maybe Text
containerRecipeArn :: Maybe Text
arn :: Maybe Text
$sel:tags:ImagePipeline' :: ImagePipeline -> Maybe (HashMap Text Text)
$sel:status:ImagePipeline' :: ImagePipeline -> Maybe PipelineStatus
$sel:schedule:ImagePipeline' :: ImagePipeline -> Maybe Schedule
$sel:platform:ImagePipeline' :: ImagePipeline -> Maybe Platform
$sel:name:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:infrastructureConfigurationArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:imageTestsConfiguration:ImagePipeline' :: ImagePipeline -> Maybe ImageTestsConfiguration
$sel:imageRecipeArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:enhancedImageMetadataEnabled:ImagePipeline' :: ImagePipeline -> Maybe Bool
$sel:distributionConfigurationArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:description:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateUpdated:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateNextRun:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateLastRun:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:dateCreated:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:containerRecipeArn:ImagePipeline' :: ImagePipeline -> Maybe Text
$sel:arn:ImagePipeline' :: ImagePipeline -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
containerRecipeArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dateCreated
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dateLastRun
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dateNextRun
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dateUpdated
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
distributionConfigurationArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enhancedImageMetadataEnabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
imageRecipeArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ImageTestsConfiguration
imageTestsConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
infrastructureConfigurationArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Platform
platform
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Schedule
schedule
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PipelineStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags