{-# 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.SubjectAlternativeNames -- 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.SubjectAlternativeNames where import Amazonka.AppMesh.Types.SubjectAlternativeNameMatchers 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 the subject alternative names secured by the -- certificate. -- -- /See:/ 'newSubjectAlternativeNames' smart constructor. data SubjectAlternativeNames = SubjectAlternativeNames' { -- | An object that represents the criteria for determining a SANs match. match :: SubjectAlternativeNameMatchers } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'SubjectAlternativeNames' 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: -- -- 'match', 'subjectAlternativeNames_match' - An object that represents the criteria for determining a SANs match. newSubjectAlternativeNames :: -- | 'match' SubjectAlternativeNameMatchers -> SubjectAlternativeNames newSubjectAlternativeNames pMatch_ = SubjectAlternativeNames' {match = pMatch_} -- | An object that represents the criteria for determining a SANs match. subjectAlternativeNames_match :: Lens.Lens' SubjectAlternativeNames SubjectAlternativeNameMatchers subjectAlternativeNames_match = Lens.lens (\SubjectAlternativeNames' {match} -> match) (\s@SubjectAlternativeNames' {} a -> s {match = a} :: SubjectAlternativeNames) instance Data.FromJSON SubjectAlternativeNames where parseJSON = Data.withObject "SubjectAlternativeNames" ( \x -> SubjectAlternativeNames' Prelude.<$> (x Data..: "match") ) instance Prelude.Hashable SubjectAlternativeNames where hashWithSalt _salt SubjectAlternativeNames' {..} = _salt `Prelude.hashWithSalt` match instance Prelude.NFData SubjectAlternativeNames where rnf SubjectAlternativeNames' {..} = Prelude.rnf match instance Data.ToJSON SubjectAlternativeNames where toJSON SubjectAlternativeNames' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("match" Data..= match)] )