{-# 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.TransitGatewayMulticastDeregisteredGroupSources -- 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.TransitGatewayMulticastDeregisteredGroupSources 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 qualified Amazonka.Prelude as Prelude -- | Describes the deregistered transit gateway multicast group sources. -- -- /See:/ 'newTransitGatewayMulticastDeregisteredGroupSources' smart constructor. data TransitGatewayMulticastDeregisteredGroupSources = TransitGatewayMulticastDeregisteredGroupSources' { -- | The network interface IDs of the non-registered members. deregisteredNetworkInterfaceIds :: Prelude.Maybe [Prelude.Text], -- | The IP address assigned to the transit gateway multicast group. groupIpAddress :: Prelude.Maybe Prelude.Text, -- | The ID of the transit gateway multicast domain. transitGatewayMulticastDomainId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'TransitGatewayMulticastDeregisteredGroupSources' 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: -- -- 'deregisteredNetworkInterfaceIds', 'transitGatewayMulticastDeregisteredGroupSources_deregisteredNetworkInterfaceIds' - The network interface IDs of the non-registered members. -- -- 'groupIpAddress', 'transitGatewayMulticastDeregisteredGroupSources_groupIpAddress' - The IP address assigned to the transit gateway multicast group. -- -- 'transitGatewayMulticastDomainId', 'transitGatewayMulticastDeregisteredGroupSources_transitGatewayMulticastDomainId' - The ID of the transit gateway multicast domain. newTransitGatewayMulticastDeregisteredGroupSources :: TransitGatewayMulticastDeregisteredGroupSources newTransitGatewayMulticastDeregisteredGroupSources = TransitGatewayMulticastDeregisteredGroupSources' { deregisteredNetworkInterfaceIds = Prelude.Nothing, groupIpAddress = Prelude.Nothing, transitGatewayMulticastDomainId = Prelude.Nothing } -- | The network interface IDs of the non-registered members. transitGatewayMulticastDeregisteredGroupSources_deregisteredNetworkInterfaceIds :: Lens.Lens' TransitGatewayMulticastDeregisteredGroupSources (Prelude.Maybe [Prelude.Text]) transitGatewayMulticastDeregisteredGroupSources_deregisteredNetworkInterfaceIds = Lens.lens (\TransitGatewayMulticastDeregisteredGroupSources' {deregisteredNetworkInterfaceIds} -> deregisteredNetworkInterfaceIds) (\s@TransitGatewayMulticastDeregisteredGroupSources' {} a -> s {deregisteredNetworkInterfaceIds = a} :: TransitGatewayMulticastDeregisteredGroupSources) Prelude.. Lens.mapping Lens.coerced -- | The IP address assigned to the transit gateway multicast group. transitGatewayMulticastDeregisteredGroupSources_groupIpAddress :: Lens.Lens' TransitGatewayMulticastDeregisteredGroupSources (Prelude.Maybe Prelude.Text) transitGatewayMulticastDeregisteredGroupSources_groupIpAddress = Lens.lens (\TransitGatewayMulticastDeregisteredGroupSources' {groupIpAddress} -> groupIpAddress) (\s@TransitGatewayMulticastDeregisteredGroupSources' {} a -> s {groupIpAddress = a} :: TransitGatewayMulticastDeregisteredGroupSources) -- | The ID of the transit gateway multicast domain. transitGatewayMulticastDeregisteredGroupSources_transitGatewayMulticastDomainId :: Lens.Lens' TransitGatewayMulticastDeregisteredGroupSources (Prelude.Maybe Prelude.Text) transitGatewayMulticastDeregisteredGroupSources_transitGatewayMulticastDomainId = Lens.lens (\TransitGatewayMulticastDeregisteredGroupSources' {transitGatewayMulticastDomainId} -> transitGatewayMulticastDomainId) (\s@TransitGatewayMulticastDeregisteredGroupSources' {} a -> s {transitGatewayMulticastDomainId = a} :: TransitGatewayMulticastDeregisteredGroupSources) instance Data.FromXML TransitGatewayMulticastDeregisteredGroupSources where parseXML x = TransitGatewayMulticastDeregisteredGroupSources' Prelude.<$> ( x Data..@? "deregisteredNetworkInterfaceIds" Core..!@ Prelude.mempty Prelude.>>= Core.may (Data.parseXMLList "item") ) Prelude.<*> (x Data..@? "groupIpAddress") Prelude.<*> (x Data..@? "transitGatewayMulticastDomainId") instance Prelude.Hashable TransitGatewayMulticastDeregisteredGroupSources where hashWithSalt _salt TransitGatewayMulticastDeregisteredGroupSources' {..} = _salt `Prelude.hashWithSalt` deregisteredNetworkInterfaceIds `Prelude.hashWithSalt` groupIpAddress `Prelude.hashWithSalt` transitGatewayMulticastDomainId instance Prelude.NFData TransitGatewayMulticastDeregisteredGroupSources where rnf TransitGatewayMulticastDeregisteredGroupSources' {..} = Prelude.rnf deregisteredNetworkInterfaceIds `Prelude.seq` Prelude.rnf groupIpAddress `Prelude.seq` Prelude.rnf transitGatewayMulticastDomainId