{-# 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.MediaLive.Types.MultiplexSummary -- 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.MediaLive.Types.MultiplexSummary where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.MediaLive.Types.MultiplexSettingsSummary import Amazonka.MediaLive.Types.MultiplexState import qualified Amazonka.Prelude as Prelude -- | Placeholder documentation for MultiplexSummary -- -- /See:/ 'newMultiplexSummary' smart constructor. data MultiplexSummary = MultiplexSummary' { -- | The unique arn of the multiplex. arn :: Prelude.Maybe Prelude.Text, -- | A list of availability zones for the multiplex. availabilityZones :: Prelude.Maybe [Prelude.Text], -- | The unique id of the multiplex. id :: Prelude.Maybe Prelude.Text, -- | Configuration for a multiplex event. multiplexSettings :: Prelude.Maybe MultiplexSettingsSummary, -- | The name of the multiplex. name :: Prelude.Maybe Prelude.Text, -- | The number of currently healthy pipelines. pipelinesRunningCount :: Prelude.Maybe Prelude.Int, -- | The number of programs in the multiplex. programCount :: Prelude.Maybe Prelude.Int, -- | The current state of the multiplex. state :: Prelude.Maybe MultiplexState, -- | A collection of key-value pairs. tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text) } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'MultiplexSummary' 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: -- -- 'arn', 'multiplexSummary_arn' - The unique arn of the multiplex. -- -- 'availabilityZones', 'multiplexSummary_availabilityZones' - A list of availability zones for the multiplex. -- -- 'id', 'multiplexSummary_id' - The unique id of the multiplex. -- -- 'multiplexSettings', 'multiplexSummary_multiplexSettings' - Configuration for a multiplex event. -- -- 'name', 'multiplexSummary_name' - The name of the multiplex. -- -- 'pipelinesRunningCount', 'multiplexSummary_pipelinesRunningCount' - The number of currently healthy pipelines. -- -- 'programCount', 'multiplexSummary_programCount' - The number of programs in the multiplex. -- -- 'state', 'multiplexSummary_state' - The current state of the multiplex. -- -- 'tags', 'multiplexSummary_tags' - A collection of key-value pairs. newMultiplexSummary :: MultiplexSummary newMultiplexSummary = MultiplexSummary' { arn = Prelude.Nothing, availabilityZones = Prelude.Nothing, id = Prelude.Nothing, multiplexSettings = Prelude.Nothing, name = Prelude.Nothing, pipelinesRunningCount = Prelude.Nothing, programCount = Prelude.Nothing, state = Prelude.Nothing, tags = Prelude.Nothing } -- | The unique arn of the multiplex. multiplexSummary_arn :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text) multiplexSummary_arn = Lens.lens (\MultiplexSummary' {arn} -> arn) (\s@MultiplexSummary' {} a -> s {arn = a} :: MultiplexSummary) -- | A list of availability zones for the multiplex. multiplexSummary_availabilityZones :: Lens.Lens' MultiplexSummary (Prelude.Maybe [Prelude.Text]) multiplexSummary_availabilityZones = Lens.lens (\MultiplexSummary' {availabilityZones} -> availabilityZones) (\s@MultiplexSummary' {} a -> s {availabilityZones = a} :: MultiplexSummary) Prelude.. Lens.mapping Lens.coerced -- | The unique id of the multiplex. multiplexSummary_id :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text) multiplexSummary_id = Lens.lens (\MultiplexSummary' {id} -> id) (\s@MultiplexSummary' {} a -> s {id = a} :: MultiplexSummary) -- | Configuration for a multiplex event. multiplexSummary_multiplexSettings :: Lens.Lens' MultiplexSummary (Prelude.Maybe MultiplexSettingsSummary) multiplexSummary_multiplexSettings = Lens.lens (\MultiplexSummary' {multiplexSettings} -> multiplexSettings) (\s@MultiplexSummary' {} a -> s {multiplexSettings = a} :: MultiplexSummary) -- | The name of the multiplex. multiplexSummary_name :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text) multiplexSummary_name = Lens.lens (\MultiplexSummary' {name} -> name) (\s@MultiplexSummary' {} a -> s {name = a} :: MultiplexSummary) -- | The number of currently healthy pipelines. multiplexSummary_pipelinesRunningCount :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Int) multiplexSummary_pipelinesRunningCount = Lens.lens (\MultiplexSummary' {pipelinesRunningCount} -> pipelinesRunningCount) (\s@MultiplexSummary' {} a -> s {pipelinesRunningCount = a} :: MultiplexSummary) -- | The number of programs in the multiplex. multiplexSummary_programCount :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Int) multiplexSummary_programCount = Lens.lens (\MultiplexSummary' {programCount} -> programCount) (\s@MultiplexSummary' {} a -> s {programCount = a} :: MultiplexSummary) -- | The current state of the multiplex. multiplexSummary_state :: Lens.Lens' MultiplexSummary (Prelude.Maybe MultiplexState) multiplexSummary_state = Lens.lens (\MultiplexSummary' {state} -> state) (\s@MultiplexSummary' {} a -> s {state = a} :: MultiplexSummary) -- | A collection of key-value pairs. multiplexSummary_tags :: Lens.Lens' MultiplexSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)) multiplexSummary_tags = Lens.lens (\MultiplexSummary' {tags} -> tags) (\s@MultiplexSummary' {} a -> s {tags = a} :: MultiplexSummary) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON MultiplexSummary where parseJSON = Data.withObject "MultiplexSummary" ( \x -> MultiplexSummary' Prelude.<$> (x Data..:? "arn") Prelude.<*> ( x Data..:? "availabilityZones" Data..!= Prelude.mempty ) Prelude.<*> (x Data..:? "id") Prelude.<*> (x Data..:? "multiplexSettings") Prelude.<*> (x Data..:? "name") Prelude.<*> (x Data..:? "pipelinesRunningCount") Prelude.<*> (x Data..:? "programCount") Prelude.<*> (x Data..:? "state") Prelude.<*> (x Data..:? "tags" Data..!= Prelude.mempty) ) instance Prelude.Hashable MultiplexSummary where hashWithSalt _salt MultiplexSummary' {..} = _salt `Prelude.hashWithSalt` arn `Prelude.hashWithSalt` availabilityZones `Prelude.hashWithSalt` id `Prelude.hashWithSalt` multiplexSettings `Prelude.hashWithSalt` name `Prelude.hashWithSalt` pipelinesRunningCount `Prelude.hashWithSalt` programCount `Prelude.hashWithSalt` state `Prelude.hashWithSalt` tags instance Prelude.NFData MultiplexSummary where rnf MultiplexSummary' {..} = Prelude.rnf arn `Prelude.seq` Prelude.rnf availabilityZones `Prelude.seq` Prelude.rnf id `Prelude.seq` Prelude.rnf multiplexSettings `Prelude.seq` Prelude.rnf name `Prelude.seq` Prelude.rnf pipelinesRunningCount `Prelude.seq` Prelude.rnf programCount `Prelude.seq` Prelude.rnf state `Prelude.seq` Prelude.rnf tags