{-# 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 #-}
module Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification 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.InstanceIpv6Address
import Amazonka.EC2.Types.Ipv4PrefixSpecificationRequest
import Amazonka.EC2.Types.Ipv6PrefixSpecificationRequest
import Amazonka.EC2.Types.PrivateIpAddressSpecification
import qualified Amazonka.Prelude as Prelude
data InstanceNetworkInterfaceSpecification = InstanceNetworkInterfaceSpecification'
{
InstanceNetworkInterfaceSpecification -> Maybe Bool
associateCarrierIpAddress :: Prelude.Maybe Prelude.Bool,
InstanceNetworkInterfaceSpecification -> Maybe Bool
associatePublicIpAddress :: Prelude.Maybe Prelude.Bool,
InstanceNetworkInterfaceSpecification -> Maybe Bool
deleteOnTermination :: Prelude.Maybe Prelude.Bool,
InstanceNetworkInterfaceSpecification -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
InstanceNetworkInterfaceSpecification -> Maybe Int
deviceIndex :: Prelude.Maybe Prelude.Int,
InstanceNetworkInterfaceSpecification -> Maybe [Text]
groups :: Prelude.Maybe [Prelude.Text],
InstanceNetworkInterfaceSpecification -> Maybe Text
interfaceType :: Prelude.Maybe Prelude.Text,
InstanceNetworkInterfaceSpecification -> Maybe Int
ipv4PrefixCount :: Prelude.Maybe Prelude.Int,
InstanceNetworkInterfaceSpecification
-> Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes :: Prelude.Maybe [Ipv4PrefixSpecificationRequest],
InstanceNetworkInterfaceSpecification -> Maybe Int
ipv6AddressCount :: Prelude.Maybe Prelude.Int,
InstanceNetworkInterfaceSpecification
-> Maybe [InstanceIpv6Address]
ipv6Addresses :: Prelude.Maybe [InstanceIpv6Address],
InstanceNetworkInterfaceSpecification -> Maybe Int
ipv6PrefixCount :: Prelude.Maybe Prelude.Int,
InstanceNetworkInterfaceSpecification
-> Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes :: Prelude.Maybe [Ipv6PrefixSpecificationRequest],
InstanceNetworkInterfaceSpecification -> Maybe Int
networkCardIndex :: Prelude.Maybe Prelude.Int,
InstanceNetworkInterfaceSpecification -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
InstanceNetworkInterfaceSpecification -> Maybe Text
privateIpAddress :: Prelude.Maybe Prelude.Text,
InstanceNetworkInterfaceSpecification
-> Maybe [PrivateIpAddressSpecification]
privateIpAddresses :: Prelude.Maybe [PrivateIpAddressSpecification],
InstanceNetworkInterfaceSpecification -> Maybe Int
secondaryPrivateIpAddressCount :: Prelude.Maybe Prelude.Int,
InstanceNetworkInterfaceSpecification -> Maybe Text
subnetId :: Prelude.Maybe Prelude.Text
}
deriving (InstanceNetworkInterfaceSpecification
-> InstanceNetworkInterfaceSpecification -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InstanceNetworkInterfaceSpecification
-> InstanceNetworkInterfaceSpecification -> Bool
$c/= :: InstanceNetworkInterfaceSpecification
-> InstanceNetworkInterfaceSpecification -> Bool
== :: InstanceNetworkInterfaceSpecification
-> InstanceNetworkInterfaceSpecification -> Bool
$c== :: InstanceNetworkInterfaceSpecification
-> InstanceNetworkInterfaceSpecification -> Bool
Prelude.Eq, ReadPrec [InstanceNetworkInterfaceSpecification]
ReadPrec InstanceNetworkInterfaceSpecification
Int -> ReadS InstanceNetworkInterfaceSpecification
ReadS [InstanceNetworkInterfaceSpecification]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InstanceNetworkInterfaceSpecification]
$creadListPrec :: ReadPrec [InstanceNetworkInterfaceSpecification]
readPrec :: ReadPrec InstanceNetworkInterfaceSpecification
$creadPrec :: ReadPrec InstanceNetworkInterfaceSpecification
readList :: ReadS [InstanceNetworkInterfaceSpecification]
$creadList :: ReadS [InstanceNetworkInterfaceSpecification]
readsPrec :: Int -> ReadS InstanceNetworkInterfaceSpecification
$creadsPrec :: Int -> ReadS InstanceNetworkInterfaceSpecification
Prelude.Read, Int -> InstanceNetworkInterfaceSpecification -> ShowS
[InstanceNetworkInterfaceSpecification] -> ShowS
InstanceNetworkInterfaceSpecification -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InstanceNetworkInterfaceSpecification] -> ShowS
$cshowList :: [InstanceNetworkInterfaceSpecification] -> ShowS
show :: InstanceNetworkInterfaceSpecification -> String
$cshow :: InstanceNetworkInterfaceSpecification -> String
showsPrec :: Int -> InstanceNetworkInterfaceSpecification -> ShowS
$cshowsPrec :: Int -> InstanceNetworkInterfaceSpecification -> ShowS
Prelude.Show, forall x.
Rep InstanceNetworkInterfaceSpecification x
-> InstanceNetworkInterfaceSpecification
forall x.
InstanceNetworkInterfaceSpecification
-> Rep InstanceNetworkInterfaceSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InstanceNetworkInterfaceSpecification x
-> InstanceNetworkInterfaceSpecification
$cfrom :: forall x.
InstanceNetworkInterfaceSpecification
-> Rep InstanceNetworkInterfaceSpecification x
Prelude.Generic)
newInstanceNetworkInterfaceSpecification ::
InstanceNetworkInterfaceSpecification
newInstanceNetworkInterfaceSpecification :: InstanceNetworkInterfaceSpecification
newInstanceNetworkInterfaceSpecification =
InstanceNetworkInterfaceSpecification'
{ $sel:associateCarrierIpAddress:InstanceNetworkInterfaceSpecification' :: Maybe Bool
associateCarrierIpAddress =
forall a. Maybe a
Prelude.Nothing,
$sel:associatePublicIpAddress:InstanceNetworkInterfaceSpecification' :: Maybe Bool
associatePublicIpAddress =
forall a. Maybe a
Prelude.Nothing,
$sel:deleteOnTermination:InstanceNetworkInterfaceSpecification' :: Maybe Bool
deleteOnTermination =
forall a. Maybe a
Prelude.Nothing,
$sel:description:InstanceNetworkInterfaceSpecification' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:deviceIndex:InstanceNetworkInterfaceSpecification' :: Maybe Int
deviceIndex = forall a. Maybe a
Prelude.Nothing,
$sel:groups:InstanceNetworkInterfaceSpecification' :: Maybe [Text]
groups = forall a. Maybe a
Prelude.Nothing,
$sel:interfaceType:InstanceNetworkInterfaceSpecification' :: Maybe Text
interfaceType = forall a. Maybe a
Prelude.Nothing,
$sel:ipv4PrefixCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
ipv4PrefixCount = forall a. Maybe a
Prelude.Nothing,
$sel:ipv4Prefixes:InstanceNetworkInterfaceSpecification' :: Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes = forall a. Maybe a
Prelude.Nothing,
$sel:ipv6AddressCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
ipv6AddressCount = forall a. Maybe a
Prelude.Nothing,
$sel:ipv6Addresses:InstanceNetworkInterfaceSpecification' :: Maybe [InstanceIpv6Address]
ipv6Addresses = forall a. Maybe a
Prelude.Nothing,
$sel:ipv6PrefixCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
ipv6PrefixCount = forall a. Maybe a
Prelude.Nothing,
$sel:ipv6Prefixes:InstanceNetworkInterfaceSpecification' :: Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes = forall a. Maybe a
Prelude.Nothing,
$sel:networkCardIndex:InstanceNetworkInterfaceSpecification' :: Maybe Int
networkCardIndex = forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaceId:InstanceNetworkInterfaceSpecification' :: Maybe Text
networkInterfaceId = forall a. Maybe a
Prelude.Nothing,
$sel:privateIpAddress:InstanceNetworkInterfaceSpecification' :: Maybe Text
privateIpAddress = forall a. Maybe a
Prelude.Nothing,
$sel:privateIpAddresses:InstanceNetworkInterfaceSpecification' :: Maybe [PrivateIpAddressSpecification]
privateIpAddresses = forall a. Maybe a
Prelude.Nothing,
$sel:secondaryPrivateIpAddressCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
secondaryPrivateIpAddressCount =
forall a. Maybe a
Prelude.Nothing,
$sel:subnetId:InstanceNetworkInterfaceSpecification' :: Maybe Text
subnetId = forall a. Maybe a
Prelude.Nothing
}
instanceNetworkInterfaceSpecification_associateCarrierIpAddress :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Bool)
instanceNetworkInterfaceSpecification_associateCarrierIpAddress :: Lens' InstanceNetworkInterfaceSpecification (Maybe Bool)
instanceNetworkInterfaceSpecification_associateCarrierIpAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Bool
associateCarrierIpAddress :: Maybe Bool
$sel:associateCarrierIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
associateCarrierIpAddress} -> Maybe Bool
associateCarrierIpAddress) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Bool
a -> InstanceNetworkInterfaceSpecification
s {$sel:associateCarrierIpAddress:InstanceNetworkInterfaceSpecification' :: Maybe Bool
associateCarrierIpAddress = Maybe Bool
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_associatePublicIpAddress :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Bool)
instanceNetworkInterfaceSpecification_associatePublicIpAddress :: Lens' InstanceNetworkInterfaceSpecification (Maybe Bool)
instanceNetworkInterfaceSpecification_associatePublicIpAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Bool
associatePublicIpAddress :: Maybe Bool
$sel:associatePublicIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
associatePublicIpAddress} -> Maybe Bool
associatePublicIpAddress) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Bool
a -> InstanceNetworkInterfaceSpecification
s {$sel:associatePublicIpAddress:InstanceNetworkInterfaceSpecification' :: Maybe Bool
associatePublicIpAddress = Maybe Bool
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_deleteOnTermination :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Bool)
instanceNetworkInterfaceSpecification_deleteOnTermination :: Lens' InstanceNetworkInterfaceSpecification (Maybe Bool)
instanceNetworkInterfaceSpecification_deleteOnTermination = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Bool
deleteOnTermination :: Maybe Bool
$sel:deleteOnTermination:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
deleteOnTermination} -> Maybe Bool
deleteOnTermination) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Bool
a -> InstanceNetworkInterfaceSpecification
s {$sel:deleteOnTermination:InstanceNetworkInterfaceSpecification' :: Maybe Bool
deleteOnTermination = Maybe Bool
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_description :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Text)
instanceNetworkInterfaceSpecification_description :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text)
instanceNetworkInterfaceSpecification_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Text
description :: Maybe Text
$sel:description:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
description} -> Maybe Text
description) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Text
a -> InstanceNetworkInterfaceSpecification
s {$sel:description:InstanceNetworkInterfaceSpecification' :: Maybe Text
description = Maybe Text
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_deviceIndex :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Int)
instanceNetworkInterfaceSpecification_deviceIndex :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int)
instanceNetworkInterfaceSpecification_deviceIndex = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Int
deviceIndex :: Maybe Int
$sel:deviceIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
deviceIndex} -> Maybe Int
deviceIndex) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Int
a -> InstanceNetworkInterfaceSpecification
s {$sel:deviceIndex:InstanceNetworkInterfaceSpecification' :: Maybe Int
deviceIndex = Maybe Int
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_groups :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe [Prelude.Text])
instanceNetworkInterfaceSpecification_groups :: Lens' InstanceNetworkInterfaceSpecification (Maybe [Text])
instanceNetworkInterfaceSpecification_groups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe [Text]
groups :: Maybe [Text]
$sel:groups:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe [Text]
groups} -> Maybe [Text]
groups) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe [Text]
a -> InstanceNetworkInterfaceSpecification
s {$sel:groups:InstanceNetworkInterfaceSpecification' :: Maybe [Text]
groups = Maybe [Text]
a} :: InstanceNetworkInterfaceSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instanceNetworkInterfaceSpecification_interfaceType :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Text)
instanceNetworkInterfaceSpecification_interfaceType :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text)
instanceNetworkInterfaceSpecification_interfaceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Text
interfaceType :: Maybe Text
$sel:interfaceType:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
interfaceType} -> Maybe Text
interfaceType) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Text
a -> InstanceNetworkInterfaceSpecification
s {$sel:interfaceType:InstanceNetworkInterfaceSpecification' :: Maybe Text
interfaceType = Maybe Text
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_ipv4PrefixCount :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Int)
instanceNetworkInterfaceSpecification_ipv4PrefixCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int)
instanceNetworkInterfaceSpecification_ipv4PrefixCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Int
ipv4PrefixCount :: Maybe Int
$sel:ipv4PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
ipv4PrefixCount} -> Maybe Int
ipv4PrefixCount) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Int
a -> InstanceNetworkInterfaceSpecification
s {$sel:ipv4PrefixCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
ipv4PrefixCount = Maybe Int
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_ipv4Prefixes :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe [Ipv4PrefixSpecificationRequest])
instanceNetworkInterfaceSpecification_ipv4Prefixes :: Lens'
InstanceNetworkInterfaceSpecification
(Maybe [Ipv4PrefixSpecificationRequest])
instanceNetworkInterfaceSpecification_ipv4Prefixes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes :: Maybe [Ipv4PrefixSpecificationRequest]
$sel:ipv4Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes} -> Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe [Ipv4PrefixSpecificationRequest]
a -> InstanceNetworkInterfaceSpecification
s {$sel:ipv4Prefixes:InstanceNetworkInterfaceSpecification' :: Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes = Maybe [Ipv4PrefixSpecificationRequest]
a} :: InstanceNetworkInterfaceSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instanceNetworkInterfaceSpecification_ipv6AddressCount :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Int)
instanceNetworkInterfaceSpecification_ipv6AddressCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int)
instanceNetworkInterfaceSpecification_ipv6AddressCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Int
ipv6AddressCount :: Maybe Int
$sel:ipv6AddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
ipv6AddressCount} -> Maybe Int
ipv6AddressCount) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Int
a -> InstanceNetworkInterfaceSpecification
s {$sel:ipv6AddressCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
ipv6AddressCount = Maybe Int
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_ipv6Addresses :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe [InstanceIpv6Address])
instanceNetworkInterfaceSpecification_ipv6Addresses :: Lens'
InstanceNetworkInterfaceSpecification (Maybe [InstanceIpv6Address])
instanceNetworkInterfaceSpecification_ipv6Addresses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe [InstanceIpv6Address]
ipv6Addresses :: Maybe [InstanceIpv6Address]
$sel:ipv6Addresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [InstanceIpv6Address]
ipv6Addresses} -> Maybe [InstanceIpv6Address]
ipv6Addresses) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe [InstanceIpv6Address]
a -> InstanceNetworkInterfaceSpecification
s {$sel:ipv6Addresses:InstanceNetworkInterfaceSpecification' :: Maybe [InstanceIpv6Address]
ipv6Addresses = Maybe [InstanceIpv6Address]
a} :: InstanceNetworkInterfaceSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instanceNetworkInterfaceSpecification_ipv6PrefixCount :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Int)
instanceNetworkInterfaceSpecification_ipv6PrefixCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int)
instanceNetworkInterfaceSpecification_ipv6PrefixCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Int
ipv6PrefixCount :: Maybe Int
$sel:ipv6PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
ipv6PrefixCount} -> Maybe Int
ipv6PrefixCount) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Int
a -> InstanceNetworkInterfaceSpecification
s {$sel:ipv6PrefixCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
ipv6PrefixCount = Maybe Int
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_ipv6Prefixes :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe [Ipv6PrefixSpecificationRequest])
instanceNetworkInterfaceSpecification_ipv6Prefixes :: Lens'
InstanceNetworkInterfaceSpecification
(Maybe [Ipv6PrefixSpecificationRequest])
instanceNetworkInterfaceSpecification_ipv6Prefixes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes :: Maybe [Ipv6PrefixSpecificationRequest]
$sel:ipv6Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes} -> Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe [Ipv6PrefixSpecificationRequest]
a -> InstanceNetworkInterfaceSpecification
s {$sel:ipv6Prefixes:InstanceNetworkInterfaceSpecification' :: Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes = Maybe [Ipv6PrefixSpecificationRequest]
a} :: InstanceNetworkInterfaceSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instanceNetworkInterfaceSpecification_networkCardIndex :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Int)
instanceNetworkInterfaceSpecification_networkCardIndex :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int)
instanceNetworkInterfaceSpecification_networkCardIndex = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Int
networkCardIndex :: Maybe Int
$sel:networkCardIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
networkCardIndex} -> Maybe Int
networkCardIndex) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Int
a -> InstanceNetworkInterfaceSpecification
s {$sel:networkCardIndex:InstanceNetworkInterfaceSpecification' :: Maybe Int
networkCardIndex = Maybe Int
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_networkInterfaceId :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Text)
instanceNetworkInterfaceSpecification_networkInterfaceId :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text)
instanceNetworkInterfaceSpecification_networkInterfaceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Text
networkInterfaceId :: Maybe Text
$sel:networkInterfaceId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
networkInterfaceId} -> Maybe Text
networkInterfaceId) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Text
a -> InstanceNetworkInterfaceSpecification
s {$sel:networkInterfaceId:InstanceNetworkInterfaceSpecification' :: Maybe Text
networkInterfaceId = Maybe Text
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_privateIpAddress :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Text)
instanceNetworkInterfaceSpecification_privateIpAddress :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text)
instanceNetworkInterfaceSpecification_privateIpAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Text
privateIpAddress :: Maybe Text
$sel:privateIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
privateIpAddress} -> Maybe Text
privateIpAddress) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Text
a -> InstanceNetworkInterfaceSpecification
s {$sel:privateIpAddress:InstanceNetworkInterfaceSpecification' :: Maybe Text
privateIpAddress = Maybe Text
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_privateIpAddresses :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe [PrivateIpAddressSpecification])
instanceNetworkInterfaceSpecification_privateIpAddresses :: Lens'
InstanceNetworkInterfaceSpecification
(Maybe [PrivateIpAddressSpecification])
instanceNetworkInterfaceSpecification_privateIpAddresses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe [PrivateIpAddressSpecification]
privateIpAddresses :: Maybe [PrivateIpAddressSpecification]
$sel:privateIpAddresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [PrivateIpAddressSpecification]
privateIpAddresses} -> Maybe [PrivateIpAddressSpecification]
privateIpAddresses) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe [PrivateIpAddressSpecification]
a -> InstanceNetworkInterfaceSpecification
s {$sel:privateIpAddresses:InstanceNetworkInterfaceSpecification' :: Maybe [PrivateIpAddressSpecification]
privateIpAddresses = Maybe [PrivateIpAddressSpecification]
a} :: InstanceNetworkInterfaceSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instanceNetworkInterfaceSpecification_secondaryPrivateIpAddressCount :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Int)
instanceNetworkInterfaceSpecification_secondaryPrivateIpAddressCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int)
instanceNetworkInterfaceSpecification_secondaryPrivateIpAddressCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Int
secondaryPrivateIpAddressCount :: Maybe Int
$sel:secondaryPrivateIpAddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
secondaryPrivateIpAddressCount} -> Maybe Int
secondaryPrivateIpAddressCount) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Int
a -> InstanceNetworkInterfaceSpecification
s {$sel:secondaryPrivateIpAddressCount:InstanceNetworkInterfaceSpecification' :: Maybe Int
secondaryPrivateIpAddressCount = Maybe Int
a} :: InstanceNetworkInterfaceSpecification)
instanceNetworkInterfaceSpecification_subnetId :: Lens.Lens' InstanceNetworkInterfaceSpecification (Prelude.Maybe Prelude.Text)
instanceNetworkInterfaceSpecification_subnetId :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text)
instanceNetworkInterfaceSpecification_subnetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InstanceNetworkInterfaceSpecification' {Maybe Text
subnetId :: Maybe Text
$sel:subnetId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
subnetId} -> Maybe Text
subnetId) (\s :: InstanceNetworkInterfaceSpecification
s@InstanceNetworkInterfaceSpecification' {} Maybe Text
a -> InstanceNetworkInterfaceSpecification
s {$sel:subnetId:InstanceNetworkInterfaceSpecification' :: Maybe Text
subnetId = Maybe Text
a} :: InstanceNetworkInterfaceSpecification)
instance
Data.FromXML
InstanceNetworkInterfaceSpecification
where
parseXML :: [Node] -> Either String InstanceNetworkInterfaceSpecification
parseXML [Node]
x =
Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe [Text]
-> Maybe Text
-> Maybe Int
-> Maybe [Ipv4PrefixSpecificationRequest]
-> Maybe Int
-> Maybe [InstanceIpv6Address]
-> Maybe Int
-> Maybe [Ipv6PrefixSpecificationRequest]
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe [PrivateIpAddressSpecification]
-> Maybe Int
-> Maybe Text
-> InstanceNetworkInterfaceSpecification
InstanceNetworkInterfaceSpecification'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"AssociateCarrierIpAddress")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"associatePublicIpAddress")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"deleteOnTermination")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"deviceIndex")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"SecurityGroupId"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"SecurityGroupId")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"InterfaceType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Ipv4PrefixCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Ipv4Prefix"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ipv6AddressCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ipv6AddressesSet"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Ipv6PrefixCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Ipv6Prefix"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"NetworkCardIndex")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"networkInterfaceId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"privateIpAddress")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"privateIpAddressesSet"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"secondaryPrivateIpAddressCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"subnetId")
instance
Prelude.Hashable
InstanceNetworkInterfaceSpecification
where
hashWithSalt :: Int -> InstanceNetworkInterfaceSpecification -> Int
hashWithSalt
Int
_salt
InstanceNetworkInterfaceSpecification' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [InstanceIpv6Address]
Maybe [Ipv4PrefixSpecificationRequest]
Maybe [Ipv6PrefixSpecificationRequest]
Maybe [PrivateIpAddressSpecification]
Maybe Text
subnetId :: Maybe Text
secondaryPrivateIpAddressCount :: Maybe Int
privateIpAddresses :: Maybe [PrivateIpAddressSpecification]
privateIpAddress :: Maybe Text
networkInterfaceId :: Maybe Text
networkCardIndex :: Maybe Int
ipv6Prefixes :: Maybe [Ipv6PrefixSpecificationRequest]
ipv6PrefixCount :: Maybe Int
ipv6Addresses :: Maybe [InstanceIpv6Address]
ipv6AddressCount :: Maybe Int
ipv4Prefixes :: Maybe [Ipv4PrefixSpecificationRequest]
ipv4PrefixCount :: Maybe Int
interfaceType :: Maybe Text
groups :: Maybe [Text]
deviceIndex :: Maybe Int
description :: Maybe Text
deleteOnTermination :: Maybe Bool
associatePublicIpAddress :: Maybe Bool
associateCarrierIpAddress :: Maybe Bool
$sel:subnetId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:secondaryPrivateIpAddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:privateIpAddresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [PrivateIpAddressSpecification]
$sel:privateIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:networkInterfaceId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:networkCardIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv6Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv6PrefixSpecificationRequest]
$sel:ipv6PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv6Addresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [InstanceIpv6Address]
$sel:ipv6AddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv4Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv4PrefixSpecificationRequest]
$sel:ipv4PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:interfaceType:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:groups:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe [Text]
$sel:deviceIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:description:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:deleteOnTermination:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
$sel:associatePublicIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
$sel:associateCarrierIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
associateCarrierIpAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
associatePublicIpAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
deleteOnTermination
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
deviceIndex
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
groups
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
interfaceType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
ipv4PrefixCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
ipv6AddressCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [InstanceIpv6Address]
ipv6Addresses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
ipv6PrefixCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
networkCardIndex
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
networkInterfaceId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
privateIpAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [PrivateIpAddressSpecification]
privateIpAddresses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
secondaryPrivateIpAddressCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
subnetId
instance
Prelude.NFData
InstanceNetworkInterfaceSpecification
where
rnf :: InstanceNetworkInterfaceSpecification -> ()
rnf InstanceNetworkInterfaceSpecification' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [InstanceIpv6Address]
Maybe [Ipv4PrefixSpecificationRequest]
Maybe [Ipv6PrefixSpecificationRequest]
Maybe [PrivateIpAddressSpecification]
Maybe Text
subnetId :: Maybe Text
secondaryPrivateIpAddressCount :: Maybe Int
privateIpAddresses :: Maybe [PrivateIpAddressSpecification]
privateIpAddress :: Maybe Text
networkInterfaceId :: Maybe Text
networkCardIndex :: Maybe Int
ipv6Prefixes :: Maybe [Ipv6PrefixSpecificationRequest]
ipv6PrefixCount :: Maybe Int
ipv6Addresses :: Maybe [InstanceIpv6Address]
ipv6AddressCount :: Maybe Int
ipv4Prefixes :: Maybe [Ipv4PrefixSpecificationRequest]
ipv4PrefixCount :: Maybe Int
interfaceType :: Maybe Text
groups :: Maybe [Text]
deviceIndex :: Maybe Int
description :: Maybe Text
deleteOnTermination :: Maybe Bool
associatePublicIpAddress :: Maybe Bool
associateCarrierIpAddress :: Maybe Bool
$sel:subnetId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:secondaryPrivateIpAddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:privateIpAddresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [PrivateIpAddressSpecification]
$sel:privateIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:networkInterfaceId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:networkCardIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv6Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv6PrefixSpecificationRequest]
$sel:ipv6PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv6Addresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [InstanceIpv6Address]
$sel:ipv6AddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv4Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv4PrefixSpecificationRequest]
$sel:ipv4PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:interfaceType:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:groups:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe [Text]
$sel:deviceIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:description:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:deleteOnTermination:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
$sel:associatePublicIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
$sel:associateCarrierIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
associateCarrierIpAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
associatePublicIpAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deleteOnTermination
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
deviceIndex
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
groups
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
interfaceType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
ipv4PrefixCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
ipv6AddressCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [InstanceIpv6Address]
ipv6Addresses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
ipv6PrefixCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
networkCardIndex
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
networkInterfaceId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
privateIpAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [PrivateIpAddressSpecification]
privateIpAddresses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe Int
secondaryPrivateIpAddressCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
subnetId
instance
Data.ToQuery
InstanceNetworkInterfaceSpecification
where
toQuery :: InstanceNetworkInterfaceSpecification -> QueryString
toQuery InstanceNetworkInterfaceSpecification' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [InstanceIpv6Address]
Maybe [Ipv4PrefixSpecificationRequest]
Maybe [Ipv6PrefixSpecificationRequest]
Maybe [PrivateIpAddressSpecification]
Maybe Text
subnetId :: Maybe Text
secondaryPrivateIpAddressCount :: Maybe Int
privateIpAddresses :: Maybe [PrivateIpAddressSpecification]
privateIpAddress :: Maybe Text
networkInterfaceId :: Maybe Text
networkCardIndex :: Maybe Int
ipv6Prefixes :: Maybe [Ipv6PrefixSpecificationRequest]
ipv6PrefixCount :: Maybe Int
ipv6Addresses :: Maybe [InstanceIpv6Address]
ipv6AddressCount :: Maybe Int
ipv4Prefixes :: Maybe [Ipv4PrefixSpecificationRequest]
ipv4PrefixCount :: Maybe Int
interfaceType :: Maybe Text
groups :: Maybe [Text]
deviceIndex :: Maybe Int
description :: Maybe Text
deleteOnTermination :: Maybe Bool
associatePublicIpAddress :: Maybe Bool
associateCarrierIpAddress :: Maybe Bool
$sel:subnetId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:secondaryPrivateIpAddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:privateIpAddresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [PrivateIpAddressSpecification]
$sel:privateIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:networkInterfaceId:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:networkCardIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv6Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv6PrefixSpecificationRequest]
$sel:ipv6PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv6Addresses:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [InstanceIpv6Address]
$sel:ipv6AddressCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:ipv4Prefixes:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification
-> Maybe [Ipv4PrefixSpecificationRequest]
$sel:ipv4PrefixCount:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:interfaceType:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:groups:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe [Text]
$sel:deviceIndex:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Int
$sel:description:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Text
$sel:deleteOnTermination:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
$sel:associatePublicIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
$sel:associateCarrierIpAddress:InstanceNetworkInterfaceSpecification' :: InstanceNetworkInterfaceSpecification -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"AssociateCarrierIpAddress"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
associateCarrierIpAddress,
ByteString
"AssociatePublicIpAddress"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
associatePublicIpAddress,
ByteString
"DeleteOnTermination" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
deleteOnTermination,
ByteString
"Description" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
description,
ByteString
"DeviceIndex" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
deviceIndex,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"SecurityGroupId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
groups
),
ByteString
"InterfaceType" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
interfaceType,
ByteString
"Ipv4PrefixCount" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
ipv4PrefixCount,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Ipv4Prefix"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Ipv4PrefixSpecificationRequest]
ipv4Prefixes
),
ByteString
"Ipv6AddressCount" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
ipv6AddressCount,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Ipv6Addresses"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InstanceIpv6Address]
ipv6Addresses
),
ByteString
"Ipv6PrefixCount" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
ipv6PrefixCount,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Ipv6Prefix"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Ipv6PrefixSpecificationRequest]
ipv6Prefixes
),
ByteString
"NetworkCardIndex" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
networkCardIndex,
ByteString
"NetworkInterfaceId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
networkInterfaceId,
ByteString
"PrivateIpAddress" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
privateIpAddress,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"PrivateIpAddresses"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PrivateIpAddressSpecification]
privateIpAddresses
),
ByteString
"SecondaryPrivateIpAddressCount"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
secondaryPrivateIpAddressCount,
ByteString
"SubnetId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
subnetId
]