{-# 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.EC2.Types.IntegrateServices -- 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.EC2.Types.IntegrateServices where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.EC2.Internal import Amazonka.EC2.Types.AthenaIntegration import qualified Amazonka.Prelude as Prelude -- | Describes service integrations with VPC Flow logs. -- -- /See:/ 'newIntegrateServices' smart constructor. data IntegrateServices = IntegrateServices' { -- | Information about the integration with Amazon Athena. athenaIntegrations :: Prelude.Maybe (Prelude.NonEmpty AthenaIntegration) } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'IntegrateServices' 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: -- -- 'athenaIntegrations', 'integrateServices_athenaIntegrations' - Information about the integration with Amazon Athena. newIntegrateServices :: IntegrateServices newIntegrateServices = IntegrateServices' { athenaIntegrations = Prelude.Nothing } -- | Information about the integration with Amazon Athena. integrateServices_athenaIntegrations :: Lens.Lens' IntegrateServices (Prelude.Maybe (Prelude.NonEmpty AthenaIntegration)) integrateServices_athenaIntegrations = Lens.lens (\IntegrateServices' {athenaIntegrations} -> athenaIntegrations) (\s@IntegrateServices' {} a -> s {athenaIntegrations = a} :: IntegrateServices) Prelude.. Lens.mapping Lens.coerced instance Prelude.Hashable IntegrateServices where hashWithSalt _salt IntegrateServices' {..} = _salt `Prelude.hashWithSalt` athenaIntegrations instance Prelude.NFData IntegrateServices where rnf IntegrateServices' {..} = Prelude.rnf athenaIntegrations instance Data.ToQuery IntegrateServices where toQuery IntegrateServices' {..} = Prelude.mconcat [ Data.toQuery ( Data.toQueryList "AthenaIntegration" Prelude.<$> athenaIntegrations ) ]