{-# 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.ServiceCatalog.Types.ProvisioningArtifact -- 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.ServiceCatalog.Types.ProvisioningArtifact 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 import Amazonka.ServiceCatalog.Types.ProvisioningArtifactGuidance -- | Information about a provisioning artifact. A provisioning artifact is -- also known as a product version. -- -- /See:/ 'newProvisioningArtifact' smart constructor. data ProvisioningArtifact = ProvisioningArtifact' { -- | The UTC time stamp of the creation time. createdTime :: Prelude.Maybe Data.POSIX, -- | The description of the provisioning artifact. description :: Prelude.Maybe Prelude.Text, -- | Information set by the administrator to provide guidance to end users -- about which provisioning artifacts to use. guidance :: Prelude.Maybe ProvisioningArtifactGuidance, -- | The identifier of the provisioning artifact. id :: Prelude.Maybe Prelude.Text, -- | The name of the provisioning artifact. name :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ProvisioningArtifact' 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: -- -- 'createdTime', 'provisioningArtifact_createdTime' - The UTC time stamp of the creation time. -- -- 'description', 'provisioningArtifact_description' - The description of the provisioning artifact. -- -- 'guidance', 'provisioningArtifact_guidance' - Information set by the administrator to provide guidance to end users -- about which provisioning artifacts to use. -- -- 'id', 'provisioningArtifact_id' - The identifier of the provisioning artifact. -- -- 'name', 'provisioningArtifact_name' - The name of the provisioning artifact. newProvisioningArtifact :: ProvisioningArtifact newProvisioningArtifact = ProvisioningArtifact' { createdTime = Prelude.Nothing, description = Prelude.Nothing, guidance = Prelude.Nothing, id = Prelude.Nothing, name = Prelude.Nothing } -- | The UTC time stamp of the creation time. provisioningArtifact_createdTime :: Lens.Lens' ProvisioningArtifact (Prelude.Maybe Prelude.UTCTime) provisioningArtifact_createdTime = Lens.lens (\ProvisioningArtifact' {createdTime} -> createdTime) (\s@ProvisioningArtifact' {} a -> s {createdTime = a} :: ProvisioningArtifact) Prelude.. Lens.mapping Data._Time -- | The description of the provisioning artifact. provisioningArtifact_description :: Lens.Lens' ProvisioningArtifact (Prelude.Maybe Prelude.Text) provisioningArtifact_description = Lens.lens (\ProvisioningArtifact' {description} -> description) (\s@ProvisioningArtifact' {} a -> s {description = a} :: ProvisioningArtifact) -- | Information set by the administrator to provide guidance to end users -- about which provisioning artifacts to use. provisioningArtifact_guidance :: Lens.Lens' ProvisioningArtifact (Prelude.Maybe ProvisioningArtifactGuidance) provisioningArtifact_guidance = Lens.lens (\ProvisioningArtifact' {guidance} -> guidance) (\s@ProvisioningArtifact' {} a -> s {guidance = a} :: ProvisioningArtifact) -- | The identifier of the provisioning artifact. provisioningArtifact_id :: Lens.Lens' ProvisioningArtifact (Prelude.Maybe Prelude.Text) provisioningArtifact_id = Lens.lens (\ProvisioningArtifact' {id} -> id) (\s@ProvisioningArtifact' {} a -> s {id = a} :: ProvisioningArtifact) -- | The name of the provisioning artifact. provisioningArtifact_name :: Lens.Lens' ProvisioningArtifact (Prelude.Maybe Prelude.Text) provisioningArtifact_name = Lens.lens (\ProvisioningArtifact' {name} -> name) (\s@ProvisioningArtifact' {} a -> s {name = a} :: ProvisioningArtifact) instance Data.FromJSON ProvisioningArtifact where parseJSON = Data.withObject "ProvisioningArtifact" ( \x -> ProvisioningArtifact' Prelude.<$> (x Data..:? "CreatedTime") Prelude.<*> (x Data..:? "Description") Prelude.<*> (x Data..:? "Guidance") Prelude.<*> (x Data..:? "Id") Prelude.<*> (x Data..:? "Name") ) instance Prelude.Hashable ProvisioningArtifact where hashWithSalt _salt ProvisioningArtifact' {..} = _salt `Prelude.hashWithSalt` createdTime `Prelude.hashWithSalt` description `Prelude.hashWithSalt` guidance `Prelude.hashWithSalt` id `Prelude.hashWithSalt` name instance Prelude.NFData ProvisioningArtifact where rnf ProvisioningArtifact' {..} = Prelude.rnf createdTime `Prelude.seq` Prelude.rnf description `Prelude.seq` Prelude.rnf guidance `Prelude.seq` Prelude.rnf id `Prelude.seq` Prelude.rnf name