{-# 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.AppMesh.Types.ListenerTlsAcmCertificate -- 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.AppMesh.Types.ListenerTlsAcmCertificate 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 -- | An object that represents an Certificate Manager certificate. -- -- /See:/ 'newListenerTlsAcmCertificate' smart constructor. data ListenerTlsAcmCertificate = ListenerTlsAcmCertificate' { -- | The Amazon Resource Name (ARN) for the certificate. The certificate must -- meet specific requirements and you must have proxy authorization -- enabled. For more information, see -- . certificateArn :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ListenerTlsAcmCertificate' 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: -- -- 'certificateArn', 'listenerTlsAcmCertificate_certificateArn' - The Amazon Resource Name (ARN) for the certificate. The certificate must -- meet specific requirements and you must have proxy authorization -- enabled. For more information, see -- . newListenerTlsAcmCertificate :: -- | 'certificateArn' Prelude.Text -> ListenerTlsAcmCertificate newListenerTlsAcmCertificate pCertificateArn_ = ListenerTlsAcmCertificate' { certificateArn = pCertificateArn_ } -- | The Amazon Resource Name (ARN) for the certificate. The certificate must -- meet specific requirements and you must have proxy authorization -- enabled. For more information, see -- . listenerTlsAcmCertificate_certificateArn :: Lens.Lens' ListenerTlsAcmCertificate Prelude.Text listenerTlsAcmCertificate_certificateArn = Lens.lens (\ListenerTlsAcmCertificate' {certificateArn} -> certificateArn) (\s@ListenerTlsAcmCertificate' {} a -> s {certificateArn = a} :: ListenerTlsAcmCertificate) instance Data.FromJSON ListenerTlsAcmCertificate where parseJSON = Data.withObject "ListenerTlsAcmCertificate" ( \x -> ListenerTlsAcmCertificate' Prelude.<$> (x Data..: "certificateArn") ) instance Prelude.Hashable ListenerTlsAcmCertificate where hashWithSalt _salt ListenerTlsAcmCertificate' {..} = _salt `Prelude.hashWithSalt` certificateArn instance Prelude.NFData ListenerTlsAcmCertificate where rnf ListenerTlsAcmCertificate' {..} = Prelude.rnf certificateArn instance Data.ToJSON ListenerTlsAcmCertificate where toJSON ListenerTlsAcmCertificate' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("certificateArn" Data..= certificateArn) ] )