{-# 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.CloudWatchEvents.Types.ConnectionOAuthClientResponseParameters -- 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.CloudWatchEvents.Types.ConnectionOAuthClientResponseParameters 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 -- | Contains the client response parameters for the connection when OAuth is -- specified as the authorization type. -- -- /See:/ 'newConnectionOAuthClientResponseParameters' smart constructor. data ConnectionOAuthClientResponseParameters = ConnectionOAuthClientResponseParameters' { -- | The client ID associated with the response to the connection request. clientID :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ConnectionOAuthClientResponseParameters' 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: -- -- 'clientID', 'connectionOAuthClientResponseParameters_clientID' - The client ID associated with the response to the connection request. newConnectionOAuthClientResponseParameters :: ConnectionOAuthClientResponseParameters newConnectionOAuthClientResponseParameters = ConnectionOAuthClientResponseParameters' { clientID = Prelude.Nothing } -- | The client ID associated with the response to the connection request. connectionOAuthClientResponseParameters_clientID :: Lens.Lens' ConnectionOAuthClientResponseParameters (Prelude.Maybe Prelude.Text) connectionOAuthClientResponseParameters_clientID = Lens.lens (\ConnectionOAuthClientResponseParameters' {clientID} -> clientID) (\s@ConnectionOAuthClientResponseParameters' {} a -> s {clientID = a} :: ConnectionOAuthClientResponseParameters) instance Data.FromJSON ConnectionOAuthClientResponseParameters where parseJSON = Data.withObject "ConnectionOAuthClientResponseParameters" ( \x -> ConnectionOAuthClientResponseParameters' Prelude.<$> (x Data..:? "ClientID") ) instance Prelude.Hashable ConnectionOAuthClientResponseParameters where hashWithSalt _salt ConnectionOAuthClientResponseParameters' {..} = _salt `Prelude.hashWithSalt` clientID instance Prelude.NFData ConnectionOAuthClientResponseParameters where rnf ConnectionOAuthClientResponseParameters' {..} = Prelude.rnf clientID