amazonka-cognito-idp-2.0: gen/Amazonka/CognitoIdentityProvider/Types/CustomDomainConfigType.hs
{-# 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.CognitoIdentityProvider.Types.CustomDomainConfigType
-- 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.CognitoIdentityProvider.Types.CustomDomainConfigType 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
-- | The configuration for a custom domain that hosts the sign-up and sign-in
-- webpages for your application.
--
-- /See:/ 'newCustomDomainConfigType' smart constructor.
data CustomDomainConfigType = CustomDomainConfigType'
{ -- | The Amazon Resource Name (ARN) of an Certificate Manager SSL
-- certificate. You use this certificate for the subdomain of your custom
-- domain.
certificateArn :: Prelude.Text
}
deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)
-- |
-- Create a value of 'CustomDomainConfigType' 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:
--
-- 'certificateArn', 'customDomainConfigType_certificateArn' - The Amazon Resource Name (ARN) of an Certificate Manager SSL
-- certificate. You use this certificate for the subdomain of your custom
-- domain.
newCustomDomainConfigType ::
-- | 'certificateArn'
Prelude.Text ->
CustomDomainConfigType
newCustomDomainConfigType pCertificateArn_ =
CustomDomainConfigType'
{ certificateArn =
pCertificateArn_
}
-- | The Amazon Resource Name (ARN) of an Certificate Manager SSL
-- certificate. You use this certificate for the subdomain of your custom
-- domain.
customDomainConfigType_certificateArn :: Lens.Lens' CustomDomainConfigType Prelude.Text
customDomainConfigType_certificateArn = Lens.lens (\CustomDomainConfigType' {certificateArn} -> certificateArn) (\s@CustomDomainConfigType' {} a -> s {certificateArn = a} :: CustomDomainConfigType)
instance Data.FromJSON CustomDomainConfigType where
parseJSON =
Data.withObject
"CustomDomainConfigType"
( \x ->
CustomDomainConfigType'
Prelude.<$> (x Data..: "CertificateArn")
)
instance Prelude.Hashable CustomDomainConfigType where
hashWithSalt _salt CustomDomainConfigType' {..} =
_salt `Prelude.hashWithSalt` certificateArn
instance Prelude.NFData CustomDomainConfigType where
rnf CustomDomainConfigType' {..} =
Prelude.rnf certificateArn
instance Data.ToJSON CustomDomainConfigType where
toJSON CustomDomainConfigType' {..} =
Data.object
( Prelude.catMaybes
[ Prelude.Just
("CertificateArn" Data..= certificateArn)
]
)