{-# 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.GreengrassOutputDetails -- 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.GreengrassOutputDetails where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | Information about the AWS IoT Greengrass component created by a model -- packaging job. -- -- /See:/ 'newGreengrassOutputDetails' smart constructor. data GreengrassOutputDetails = GreengrassOutputDetails' { -- | The name of the component. componentName :: Prelude.Maybe Prelude.Text, -- | The version of the component. componentVersion :: Prelude.Maybe Prelude.Text, -- | The Amazon Resource Name (ARN) of the component. componentVersionArn :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'GreengrassOutputDetails' 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: -- -- 'componentName', 'greengrassOutputDetails_componentName' - The name of the component. -- -- 'componentVersion', 'greengrassOutputDetails_componentVersion' - The version of the component. -- -- 'componentVersionArn', 'greengrassOutputDetails_componentVersionArn' - The Amazon Resource Name (ARN) of the component. newGreengrassOutputDetails :: GreengrassOutputDetails newGreengrassOutputDetails = GreengrassOutputDetails' { componentName = Prelude.Nothing, componentVersion = Prelude.Nothing, componentVersionArn = Prelude.Nothing } -- | The name of the component. greengrassOutputDetails_componentName :: Lens.Lens' GreengrassOutputDetails (Prelude.Maybe Prelude.Text) greengrassOutputDetails_componentName = Lens.lens (\GreengrassOutputDetails' {componentName} -> componentName) (\s@GreengrassOutputDetails' {} a -> s {componentName = a} :: GreengrassOutputDetails) -- | The version of the component. greengrassOutputDetails_componentVersion :: Lens.Lens' GreengrassOutputDetails (Prelude.Maybe Prelude.Text) greengrassOutputDetails_componentVersion = Lens.lens (\GreengrassOutputDetails' {componentVersion} -> componentVersion) (\s@GreengrassOutputDetails' {} a -> s {componentVersion = a} :: GreengrassOutputDetails) -- | The Amazon Resource Name (ARN) of the component. greengrassOutputDetails_componentVersionArn :: Lens.Lens' GreengrassOutputDetails (Prelude.Maybe Prelude.Text) greengrassOutputDetails_componentVersionArn = Lens.lens (\GreengrassOutputDetails' {componentVersionArn} -> componentVersionArn) (\s@GreengrassOutputDetails' {} a -> s {componentVersionArn = a} :: GreengrassOutputDetails) instance Data.FromJSON GreengrassOutputDetails where parseJSON = Data.withObject "GreengrassOutputDetails" ( \x -> GreengrassOutputDetails' Prelude.<$> (x Data..:? "ComponentName") Prelude.<*> (x Data..:? "ComponentVersion") Prelude.<*> (x Data..:? "ComponentVersionArn") ) instance Prelude.Hashable GreengrassOutputDetails where hashWithSalt _salt GreengrassOutputDetails' {..} = _salt `Prelude.hashWithSalt` componentName `Prelude.hashWithSalt` componentVersion `Prelude.hashWithSalt` componentVersionArn instance Prelude.NFData GreengrassOutputDetails where rnf GreengrassOutputDetails' {..} = Prelude.rnf componentName `Prelude.seq` Prelude.rnf componentVersion `Prelude.seq` Prelude.rnf componentVersionArn