{-# 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.AppFlow.Types.TrendmicroConnectorProfileCredentials -- 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.AppFlow.Types.TrendmicroConnectorProfileCredentials 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 connector-specific profile credentials required when using Trend -- Micro. -- -- /See:/ 'newTrendmicroConnectorProfileCredentials' smart constructor. data TrendmicroConnectorProfileCredentials = TrendmicroConnectorProfileCredentials' { -- | The Secret Access Key portion of the credentials. apiSecretKey :: Data.Sensitive Prelude.Text } deriving (Prelude.Eq, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'TrendmicroConnectorProfileCredentials' 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: -- -- 'apiSecretKey', 'trendmicroConnectorProfileCredentials_apiSecretKey' - The Secret Access Key portion of the credentials. newTrendmicroConnectorProfileCredentials :: -- | 'apiSecretKey' Prelude.Text -> TrendmicroConnectorProfileCredentials newTrendmicroConnectorProfileCredentials pApiSecretKey_ = TrendmicroConnectorProfileCredentials' { apiSecretKey = Data._Sensitive Lens.# pApiSecretKey_ } -- | The Secret Access Key portion of the credentials. trendmicroConnectorProfileCredentials_apiSecretKey :: Lens.Lens' TrendmicroConnectorProfileCredentials Prelude.Text trendmicroConnectorProfileCredentials_apiSecretKey = Lens.lens (\TrendmicroConnectorProfileCredentials' {apiSecretKey} -> apiSecretKey) (\s@TrendmicroConnectorProfileCredentials' {} a -> s {apiSecretKey = a} :: TrendmicroConnectorProfileCredentials) Prelude.. Data._Sensitive instance Prelude.Hashable TrendmicroConnectorProfileCredentials where hashWithSalt _salt TrendmicroConnectorProfileCredentials' {..} = _salt `Prelude.hashWithSalt` apiSecretKey instance Prelude.NFData TrendmicroConnectorProfileCredentials where rnf TrendmicroConnectorProfileCredentials' {..} = Prelude.rnf apiSecretKey instance Data.ToJSON TrendmicroConnectorProfileCredentials where toJSON TrendmicroConnectorProfileCredentials' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("apiSecretKey" Data..= apiSecretKey)] )