{-# 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.InforNexusConnectorProfileCredentials -- 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.InforNexusConnectorProfileCredentials 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 by Infor Nexus. -- -- /See:/ 'newInforNexusConnectorProfileCredentials' smart constructor. data InforNexusConnectorProfileCredentials = InforNexusConnectorProfileCredentials' { -- | The Access Key portion of the credentials. accessKeyId :: Data.Sensitive Prelude.Text, -- | The identifier for the user. userId :: Prelude.Text, -- | The secret key used to sign requests. secretAccessKey :: Prelude.Text, -- | The encryption keys used to encrypt data. datakey :: Prelude.Text } deriving (Prelude.Eq, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InforNexusConnectorProfileCredentials' 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: -- -- 'accessKeyId', 'inforNexusConnectorProfileCredentials_accessKeyId' - The Access Key portion of the credentials. -- -- 'userId', 'inforNexusConnectorProfileCredentials_userId' - The identifier for the user. -- -- 'secretAccessKey', 'inforNexusConnectorProfileCredentials_secretAccessKey' - The secret key used to sign requests. -- -- 'datakey', 'inforNexusConnectorProfileCredentials_datakey' - The encryption keys used to encrypt data. newInforNexusConnectorProfileCredentials :: -- | 'accessKeyId' Prelude.Text -> -- | 'userId' Prelude.Text -> -- | 'secretAccessKey' Prelude.Text -> -- | 'datakey' Prelude.Text -> InforNexusConnectorProfileCredentials newInforNexusConnectorProfileCredentials pAccessKeyId_ pUserId_ pSecretAccessKey_ pDatakey_ = InforNexusConnectorProfileCredentials' { accessKeyId = Data._Sensitive Lens.# pAccessKeyId_, userId = pUserId_, secretAccessKey = pSecretAccessKey_, datakey = pDatakey_ } -- | The Access Key portion of the credentials. inforNexusConnectorProfileCredentials_accessKeyId :: Lens.Lens' InforNexusConnectorProfileCredentials Prelude.Text inforNexusConnectorProfileCredentials_accessKeyId = Lens.lens (\InforNexusConnectorProfileCredentials' {accessKeyId} -> accessKeyId) (\s@InforNexusConnectorProfileCredentials' {} a -> s {accessKeyId = a} :: InforNexusConnectorProfileCredentials) Prelude.. Data._Sensitive -- | The identifier for the user. inforNexusConnectorProfileCredentials_userId :: Lens.Lens' InforNexusConnectorProfileCredentials Prelude.Text inforNexusConnectorProfileCredentials_userId = Lens.lens (\InforNexusConnectorProfileCredentials' {userId} -> userId) (\s@InforNexusConnectorProfileCredentials' {} a -> s {userId = a} :: InforNexusConnectorProfileCredentials) -- | The secret key used to sign requests. inforNexusConnectorProfileCredentials_secretAccessKey :: Lens.Lens' InforNexusConnectorProfileCredentials Prelude.Text inforNexusConnectorProfileCredentials_secretAccessKey = Lens.lens (\InforNexusConnectorProfileCredentials' {secretAccessKey} -> secretAccessKey) (\s@InforNexusConnectorProfileCredentials' {} a -> s {secretAccessKey = a} :: InforNexusConnectorProfileCredentials) -- | The encryption keys used to encrypt data. inforNexusConnectorProfileCredentials_datakey :: Lens.Lens' InforNexusConnectorProfileCredentials Prelude.Text inforNexusConnectorProfileCredentials_datakey = Lens.lens (\InforNexusConnectorProfileCredentials' {datakey} -> datakey) (\s@InforNexusConnectorProfileCredentials' {} a -> s {datakey = a} :: InforNexusConnectorProfileCredentials) instance Prelude.Hashable InforNexusConnectorProfileCredentials where hashWithSalt _salt InforNexusConnectorProfileCredentials' {..} = _salt `Prelude.hashWithSalt` accessKeyId `Prelude.hashWithSalt` userId `Prelude.hashWithSalt` secretAccessKey `Prelude.hashWithSalt` datakey instance Prelude.NFData InforNexusConnectorProfileCredentials where rnf InforNexusConnectorProfileCredentials' {..} = Prelude.rnf accessKeyId `Prelude.seq` Prelude.rnf userId `Prelude.seq` Prelude.rnf secretAccessKey `Prelude.seq` Prelude.rnf datakey instance Data.ToJSON InforNexusConnectorProfileCredentials where toJSON InforNexusConnectorProfileCredentials' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("accessKeyId" Data..= accessKeyId), Prelude.Just ("userId" Data..= userId), Prelude.Just ("secretAccessKey" Data..= secretAccessKey), Prelude.Just ("datakey" Data..= datakey) ] )