{-# 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.AppConfig.Types.HostedConfigurationVersion -- 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.AppConfig.Types.HostedConfigurationVersion 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 -- | /See:/ 'newHostedConfigurationVersion' smart constructor. data HostedConfigurationVersion = HostedConfigurationVersion' { -- | The application ID. applicationId :: Prelude.Maybe Prelude.Text, -- | The configuration profile ID. configurationProfileId :: Prelude.Maybe Prelude.Text, -- | The content of the configuration or the configuration data. content :: Prelude.Maybe (Data.Sensitive Prelude.ByteString), -- | A standard MIME type describing the format of the configuration content. -- For more information, see -- . contentType :: Prelude.Maybe Prelude.Text, -- | A description of the configuration. description :: Prelude.Maybe Prelude.Text, -- | The configuration version. versionNumber :: Prelude.Maybe Prelude.Int } deriving (Prelude.Eq, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'HostedConfigurationVersion' 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: -- -- 'applicationId', 'hostedConfigurationVersion_applicationId' - The application ID. -- -- 'configurationProfileId', 'hostedConfigurationVersion_configurationProfileId' - The configuration profile ID. -- -- 'content', 'hostedConfigurationVersion_content' - The content of the configuration or the configuration data. -- -- 'contentType', 'hostedConfigurationVersion_contentType' - A standard MIME type describing the format of the configuration content. -- For more information, see -- . -- -- 'description', 'hostedConfigurationVersion_description' - A description of the configuration. -- -- 'versionNumber', 'hostedConfigurationVersion_versionNumber' - The configuration version. newHostedConfigurationVersion :: HostedConfigurationVersion newHostedConfigurationVersion = HostedConfigurationVersion' { applicationId = Prelude.Nothing, configurationProfileId = Prelude.Nothing, content = Prelude.Nothing, contentType = Prelude.Nothing, description = Prelude.Nothing, versionNumber = Prelude.Nothing } -- | The application ID. hostedConfigurationVersion_applicationId :: Lens.Lens' HostedConfigurationVersion (Prelude.Maybe Prelude.Text) hostedConfigurationVersion_applicationId = Lens.lens (\HostedConfigurationVersion' {applicationId} -> applicationId) (\s@HostedConfigurationVersion' {} a -> s {applicationId = a} :: HostedConfigurationVersion) -- | The configuration profile ID. hostedConfigurationVersion_configurationProfileId :: Lens.Lens' HostedConfigurationVersion (Prelude.Maybe Prelude.Text) hostedConfigurationVersion_configurationProfileId = Lens.lens (\HostedConfigurationVersion' {configurationProfileId} -> configurationProfileId) (\s@HostedConfigurationVersion' {} a -> s {configurationProfileId = a} :: HostedConfigurationVersion) -- | The content of the configuration or the configuration data. hostedConfigurationVersion_content :: Lens.Lens' HostedConfigurationVersion (Prelude.Maybe Prelude.ByteString) hostedConfigurationVersion_content = Lens.lens (\HostedConfigurationVersion' {content} -> content) (\s@HostedConfigurationVersion' {} a -> s {content = a} :: HostedConfigurationVersion) Prelude.. Lens.mapping Data._Sensitive -- | A standard MIME type describing the format of the configuration content. -- For more information, see -- . hostedConfigurationVersion_contentType :: Lens.Lens' HostedConfigurationVersion (Prelude.Maybe Prelude.Text) hostedConfigurationVersion_contentType = Lens.lens (\HostedConfigurationVersion' {contentType} -> contentType) (\s@HostedConfigurationVersion' {} a -> s {contentType = a} :: HostedConfigurationVersion) -- | A description of the configuration. hostedConfigurationVersion_description :: Lens.Lens' HostedConfigurationVersion (Prelude.Maybe Prelude.Text) hostedConfigurationVersion_description = Lens.lens (\HostedConfigurationVersion' {description} -> description) (\s@HostedConfigurationVersion' {} a -> s {description = a} :: HostedConfigurationVersion) -- | The configuration version. hostedConfigurationVersion_versionNumber :: Lens.Lens' HostedConfigurationVersion (Prelude.Maybe Prelude.Int) hostedConfigurationVersion_versionNumber = Lens.lens (\HostedConfigurationVersion' {versionNumber} -> versionNumber) (\s@HostedConfigurationVersion' {} a -> s {versionNumber = a} :: HostedConfigurationVersion) instance Prelude.Hashable HostedConfigurationVersion where hashWithSalt _salt HostedConfigurationVersion' {..} = _salt `Prelude.hashWithSalt` applicationId `Prelude.hashWithSalt` configurationProfileId `Prelude.hashWithSalt` content `Prelude.hashWithSalt` contentType `Prelude.hashWithSalt` description `Prelude.hashWithSalt` versionNumber instance Prelude.NFData HostedConfigurationVersion where rnf HostedConfigurationVersion' {..} = Prelude.rnf applicationId `Prelude.seq` Prelude.rnf configurationProfileId `Prelude.seq` Prelude.rnf content `Prelude.seq` Prelude.rnf contentType `Prelude.seq` Prelude.rnf description `Prelude.seq` Prelude.rnf versionNumber