{-# 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.LookoutVision.Types.ModelPackagingConfiguration -- 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.LookoutVision.Types.ModelPackagingConfiguration where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.LookoutVision.Types.GreengrassConfiguration import qualified Amazonka.Prelude as Prelude -- | Configuration information for a Amazon Lookout for Vision model -- packaging job. For more information, see StartModelPackagingJob. -- -- /See:/ 'newModelPackagingConfiguration' smart constructor. data ModelPackagingConfiguration = ModelPackagingConfiguration' { -- | Configuration information for the AWS IoT Greengrass component in a -- model packaging job. greengrass :: GreengrassConfiguration } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ModelPackagingConfiguration' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'greengrass', 'modelPackagingConfiguration_greengrass' - Configuration information for the AWS IoT Greengrass component in a -- model packaging job. newModelPackagingConfiguration :: -- | 'greengrass' GreengrassConfiguration -> ModelPackagingConfiguration newModelPackagingConfiguration pGreengrass_ = ModelPackagingConfiguration' { greengrass = pGreengrass_ } -- | Configuration information for the AWS IoT Greengrass component in a -- model packaging job. modelPackagingConfiguration_greengrass :: Lens.Lens' ModelPackagingConfiguration GreengrassConfiguration modelPackagingConfiguration_greengrass = Lens.lens (\ModelPackagingConfiguration' {greengrass} -> greengrass) (\s@ModelPackagingConfiguration' {} a -> s {greengrass = a} :: ModelPackagingConfiguration) instance Data.FromJSON ModelPackagingConfiguration where parseJSON = Data.withObject "ModelPackagingConfiguration" ( \x -> ModelPackagingConfiguration' Prelude.<$> (x Data..: "Greengrass") ) instance Prelude.Hashable ModelPackagingConfiguration where hashWithSalt _salt ModelPackagingConfiguration' {..} = _salt `Prelude.hashWithSalt` greengrass instance Prelude.NFData ModelPackagingConfiguration where rnf ModelPackagingConfiguration' {..} = Prelude.rnf greengrass instance Data.ToJSON ModelPackagingConfiguration where toJSON ModelPackagingConfiguration' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("Greengrass" Data..= greengrass)] )