{-# 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.XRay.Types.InsightImpactGraphService -- 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.XRay.Types.InsightImpactGraphService 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 import Amazonka.XRay.Types.InsightImpactGraphEdge -- | Information about an application that processed requests, users that -- made requests, or downstream services, resources, and applications that -- an application used. -- -- /See:/ 'newInsightImpactGraphService' smart constructor. data InsightImpactGraphService = InsightImpactGraphService' { -- | Identifier of the Amazon Web Services account in which the service runs. accountId :: Prelude.Maybe Prelude.Text, -- | Connections to downstream services. edges :: Prelude.Maybe [InsightImpactGraphEdge], -- | The canonical name of the service. name :: Prelude.Maybe Prelude.Text, -- | A list of names for the service, including the canonical name. names :: Prelude.Maybe [Prelude.Text], -- | Identifier for the service. Unique within the service map. referenceId :: Prelude.Maybe Prelude.Int, -- | Identifier for the service. Unique within the service map. -- -- - Amazon Web Services Resource - The type of an Amazon Web Services -- resource. For example, AWS::EC2::Instance for an application running -- on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table -- that the application used. -- -- - Amazon Web Services Service - The type of an Amazon Web Services -- service. For example, AWS::DynamoDB for downstream calls to Amazon -- DynamoDB that didn\'t target a specific table. -- -- - Amazon Web Services Service - The type of an Amazon Web Services -- service. For example, AWS::DynamoDB for downstream calls to Amazon -- DynamoDB that didn\'t target a specific table. -- -- - remote - A downstream service of indeterminate type. type' :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InsightImpactGraphService' 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: -- -- 'accountId', 'insightImpactGraphService_accountId' - Identifier of the Amazon Web Services account in which the service runs. -- -- 'edges', 'insightImpactGraphService_edges' - Connections to downstream services. -- -- 'name', 'insightImpactGraphService_name' - The canonical name of the service. -- -- 'names', 'insightImpactGraphService_names' - A list of names for the service, including the canonical name. -- -- 'referenceId', 'insightImpactGraphService_referenceId' - Identifier for the service. Unique within the service map. -- -- 'type'', 'insightImpactGraphService_type' - Identifier for the service. Unique within the service map. -- -- - Amazon Web Services Resource - The type of an Amazon Web Services -- resource. For example, AWS::EC2::Instance for an application running -- on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table -- that the application used. -- -- - Amazon Web Services Service - The type of an Amazon Web Services -- service. For example, AWS::DynamoDB for downstream calls to Amazon -- DynamoDB that didn\'t target a specific table. -- -- - Amazon Web Services Service - The type of an Amazon Web Services -- service. For example, AWS::DynamoDB for downstream calls to Amazon -- DynamoDB that didn\'t target a specific table. -- -- - remote - A downstream service of indeterminate type. newInsightImpactGraphService :: InsightImpactGraphService newInsightImpactGraphService = InsightImpactGraphService' { accountId = Prelude.Nothing, edges = Prelude.Nothing, name = Prelude.Nothing, names = Prelude.Nothing, referenceId = Prelude.Nothing, type' = Prelude.Nothing } -- | Identifier of the Amazon Web Services account in which the service runs. insightImpactGraphService_accountId :: Lens.Lens' InsightImpactGraphService (Prelude.Maybe Prelude.Text) insightImpactGraphService_accountId = Lens.lens (\InsightImpactGraphService' {accountId} -> accountId) (\s@InsightImpactGraphService' {} a -> s {accountId = a} :: InsightImpactGraphService) -- | Connections to downstream services. insightImpactGraphService_edges :: Lens.Lens' InsightImpactGraphService (Prelude.Maybe [InsightImpactGraphEdge]) insightImpactGraphService_edges = Lens.lens (\InsightImpactGraphService' {edges} -> edges) (\s@InsightImpactGraphService' {} a -> s {edges = a} :: InsightImpactGraphService) Prelude.. Lens.mapping Lens.coerced -- | The canonical name of the service. insightImpactGraphService_name :: Lens.Lens' InsightImpactGraphService (Prelude.Maybe Prelude.Text) insightImpactGraphService_name = Lens.lens (\InsightImpactGraphService' {name} -> name) (\s@InsightImpactGraphService' {} a -> s {name = a} :: InsightImpactGraphService) -- | A list of names for the service, including the canonical name. insightImpactGraphService_names :: Lens.Lens' InsightImpactGraphService (Prelude.Maybe [Prelude.Text]) insightImpactGraphService_names = Lens.lens (\InsightImpactGraphService' {names} -> names) (\s@InsightImpactGraphService' {} a -> s {names = a} :: InsightImpactGraphService) Prelude.. Lens.mapping Lens.coerced -- | Identifier for the service. Unique within the service map. insightImpactGraphService_referenceId :: Lens.Lens' InsightImpactGraphService (Prelude.Maybe Prelude.Int) insightImpactGraphService_referenceId = Lens.lens (\InsightImpactGraphService' {referenceId} -> referenceId) (\s@InsightImpactGraphService' {} a -> s {referenceId = a} :: InsightImpactGraphService) -- | Identifier for the service. Unique within the service map. -- -- - Amazon Web Services Resource - The type of an Amazon Web Services -- resource. For example, AWS::EC2::Instance for an application running -- on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table -- that the application used. -- -- - Amazon Web Services Service - The type of an Amazon Web Services -- service. For example, AWS::DynamoDB for downstream calls to Amazon -- DynamoDB that didn\'t target a specific table. -- -- - Amazon Web Services Service - The type of an Amazon Web Services -- service. For example, AWS::DynamoDB for downstream calls to Amazon -- DynamoDB that didn\'t target a specific table. -- -- - remote - A downstream service of indeterminate type. insightImpactGraphService_type :: Lens.Lens' InsightImpactGraphService (Prelude.Maybe Prelude.Text) insightImpactGraphService_type = Lens.lens (\InsightImpactGraphService' {type'} -> type') (\s@InsightImpactGraphService' {} a -> s {type' = a} :: InsightImpactGraphService) instance Data.FromJSON InsightImpactGraphService where parseJSON = Data.withObject "InsightImpactGraphService" ( \x -> InsightImpactGraphService' Prelude.<$> (x Data..:? "AccountId") Prelude.<*> (x Data..:? "Edges" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "Name") Prelude.<*> (x Data..:? "Names" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "ReferenceId") Prelude.<*> (x Data..:? "Type") ) instance Prelude.Hashable InsightImpactGraphService where hashWithSalt _salt InsightImpactGraphService' {..} = _salt `Prelude.hashWithSalt` accountId `Prelude.hashWithSalt` edges `Prelude.hashWithSalt` name `Prelude.hashWithSalt` names `Prelude.hashWithSalt` referenceId `Prelude.hashWithSalt` type' instance Prelude.NFData InsightImpactGraphService where rnf InsightImpactGraphService' {..} = Prelude.rnf accountId `Prelude.seq` Prelude.rnf edges `Prelude.seq` Prelude.rnf name `Prelude.seq` Prelude.rnf names `Prelude.seq` Prelude.rnf referenceId `Prelude.seq` Prelude.rnf type'