{-# 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.Batch.Types.EksPodPropertiesDetail
-- 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.Batch.Types.EksPodPropertiesDetail where

import Amazonka.Batch.Types.EksContainerDetail
import Amazonka.Batch.Types.EksVolume
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

-- | The details for the pod.
--
-- /See:/ 'newEksPodPropertiesDetail' smart constructor.
data EksPodPropertiesDetail = EksPodPropertiesDetail'
  { -- | The properties of the container that\'s used on the Amazon EKS pod.
    EksPodPropertiesDetail -> Maybe [EksContainerDetail]
containers :: Prelude.Maybe [EksContainerDetail],
    -- | The DNS policy for the pod. The default value is @ClusterFirst@. If the
    -- @hostNetwork@ parameter is not specified, the default is
    -- @ClusterFirstWithHostNet@. @ClusterFirst@ indicates that any DNS query
    -- that does not match the configured cluster domain suffix is forwarded to
    -- the upstream nameserver inherited from the node. If no value was
    -- specified for @dnsPolicy@ in the
    -- <https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html RegisterJobDefinition>
    -- API operation, then no value will be returned for @dnsPolicy@ by either
    -- of
    -- <https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html DescribeJobDefinitions>
    -- or
    -- <https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html DescribeJobs>
    -- API operations. The pod spec setting will contain either @ClusterFirst@
    -- or @ClusterFirstWithHostNet@, depending on the value of the
    -- @hostNetwork@ parameter. For more information, see
    -- <https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy Pod\'s DNS policy>
    -- in the /Kubernetes documentation/.
    --
    -- Valid values: @Default@ | @ClusterFirst@ | @ClusterFirstWithHostNet@
    EksPodPropertiesDetail -> Maybe Text
dnsPolicy :: Prelude.Maybe Prelude.Text,
    -- | Indicates if the pod uses the hosts\' network IP address. The default
    -- value is @true@. Setting this to @false@ enables the Kubernetes pod
    -- networking model. Most Batch workloads are egress-only and don\'t
    -- require the overhead of IP allocation for each pod for incoming
    -- connections. For more information, see
    -- <https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces Host namespaces>
    -- and
    -- <https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking Pod networking>
    -- in the /Kubernetes documentation/.
    EksPodPropertiesDetail -> Maybe Bool
hostNetwork :: Prelude.Maybe Prelude.Bool,
    -- | The name of the node for this job.
    EksPodPropertiesDetail -> Maybe Text
nodeName :: Prelude.Maybe Prelude.Text,
    -- | The name of the pod for this job.
    EksPodPropertiesDetail -> Maybe Text
podName :: Prelude.Maybe Prelude.Text,
    -- | The name of the service account that\'s used to run the pod. For more
    -- information, see
    -- <https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html Kubernetes service accounts>
    -- and
    -- <https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html Configure a Kubernetes service account to assume an IAM role>
    -- in the /Amazon EKS User Guide/ and
    -- <https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ Configure service accounts for pods>
    -- in the /Kubernetes documentation/.
    EksPodPropertiesDetail -> Maybe Text
serviceAccountName :: Prelude.Maybe Prelude.Text,
    -- | Specifies the volumes for a job definition using Amazon EKS resources.
    EksPodPropertiesDetail -> Maybe [EksVolume]
volumes :: Prelude.Maybe [EksVolume]
  }
  deriving (EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
$c/= :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
== :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
$c== :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
Prelude.Eq, ReadPrec [EksPodPropertiesDetail]
ReadPrec EksPodPropertiesDetail
Int -> ReadS EksPodPropertiesDetail
ReadS [EksPodPropertiesDetail]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EksPodPropertiesDetail]
$creadListPrec :: ReadPrec [EksPodPropertiesDetail]
readPrec :: ReadPrec EksPodPropertiesDetail
$creadPrec :: ReadPrec EksPodPropertiesDetail
readList :: ReadS [EksPodPropertiesDetail]
$creadList :: ReadS [EksPodPropertiesDetail]
readsPrec :: Int -> ReadS EksPodPropertiesDetail
$creadsPrec :: Int -> ReadS EksPodPropertiesDetail
Prelude.Read, Int -> EksPodPropertiesDetail -> ShowS
[EksPodPropertiesDetail] -> ShowS
EksPodPropertiesDetail -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EksPodPropertiesDetail] -> ShowS
$cshowList :: [EksPodPropertiesDetail] -> ShowS
show :: EksPodPropertiesDetail -> String
$cshow :: EksPodPropertiesDetail -> String
showsPrec :: Int -> EksPodPropertiesDetail -> ShowS
$cshowsPrec :: Int -> EksPodPropertiesDetail -> ShowS
Prelude.Show, forall x. Rep EksPodPropertiesDetail x -> EksPodPropertiesDetail
forall x. EksPodPropertiesDetail -> Rep EksPodPropertiesDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EksPodPropertiesDetail x -> EksPodPropertiesDetail
$cfrom :: forall x. EksPodPropertiesDetail -> Rep EksPodPropertiesDetail x
Prelude.Generic)

-- |
-- Create a value of 'EksPodPropertiesDetail' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'containers', 'eksPodPropertiesDetail_containers' - The properties of the container that\'s used on the Amazon EKS pod.
--
-- 'dnsPolicy', 'eksPodPropertiesDetail_dnsPolicy' - The DNS policy for the pod. The default value is @ClusterFirst@. If the
-- @hostNetwork@ parameter is not specified, the default is
-- @ClusterFirstWithHostNet@. @ClusterFirst@ indicates that any DNS query
-- that does not match the configured cluster domain suffix is forwarded to
-- the upstream nameserver inherited from the node. If no value was
-- specified for @dnsPolicy@ in the
-- <https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html RegisterJobDefinition>
-- API operation, then no value will be returned for @dnsPolicy@ by either
-- of
-- <https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html DescribeJobDefinitions>
-- or
-- <https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html DescribeJobs>
-- API operations. The pod spec setting will contain either @ClusterFirst@
-- or @ClusterFirstWithHostNet@, depending on the value of the
-- @hostNetwork@ parameter. For more information, see
-- <https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy Pod\'s DNS policy>
-- in the /Kubernetes documentation/.
--
-- Valid values: @Default@ | @ClusterFirst@ | @ClusterFirstWithHostNet@
--
-- 'hostNetwork', 'eksPodPropertiesDetail_hostNetwork' - Indicates if the pod uses the hosts\' network IP address. The default
-- value is @true@. Setting this to @false@ enables the Kubernetes pod
-- networking model. Most Batch workloads are egress-only and don\'t
-- require the overhead of IP allocation for each pod for incoming
-- connections. For more information, see
-- <https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces Host namespaces>
-- and
-- <https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking Pod networking>
-- in the /Kubernetes documentation/.
--
-- 'nodeName', 'eksPodPropertiesDetail_nodeName' - The name of the node for this job.
--
-- 'podName', 'eksPodPropertiesDetail_podName' - The name of the pod for this job.
--
-- 'serviceAccountName', 'eksPodPropertiesDetail_serviceAccountName' - The name of the service account that\'s used to run the pod. For more
-- information, see
-- <https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html Kubernetes service accounts>
-- and
-- <https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html Configure a Kubernetes service account to assume an IAM role>
-- in the /Amazon EKS User Guide/ and
-- <https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ Configure service accounts for pods>
-- in the /Kubernetes documentation/.
--
-- 'volumes', 'eksPodPropertiesDetail_volumes' - Specifies the volumes for a job definition using Amazon EKS resources.
newEksPodPropertiesDetail ::
  EksPodPropertiesDetail
newEksPodPropertiesDetail :: EksPodPropertiesDetail
newEksPodPropertiesDetail =
  EksPodPropertiesDetail'
    { $sel:containers:EksPodPropertiesDetail' :: Maybe [EksContainerDetail]
containers =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dnsPolicy:EksPodPropertiesDetail' :: Maybe Text
dnsPolicy = forall a. Maybe a
Prelude.Nothing,
      $sel:hostNetwork:EksPodPropertiesDetail' :: Maybe Bool
hostNetwork = forall a. Maybe a
Prelude.Nothing,
      $sel:nodeName:EksPodPropertiesDetail' :: Maybe Text
nodeName = forall a. Maybe a
Prelude.Nothing,
      $sel:podName:EksPodPropertiesDetail' :: Maybe Text
podName = forall a. Maybe a
Prelude.Nothing,
      $sel:serviceAccountName:EksPodPropertiesDetail' :: Maybe Text
serviceAccountName = forall a. Maybe a
Prelude.Nothing,
      $sel:volumes:EksPodPropertiesDetail' :: Maybe [EksVolume]
volumes = forall a. Maybe a
Prelude.Nothing
    }

-- | The properties of the container that\'s used on the Amazon EKS pod.
eksPodPropertiesDetail_containers :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe [EksContainerDetail])
eksPodPropertiesDetail_containers :: Lens' EksPodPropertiesDetail (Maybe [EksContainerDetail])
eksPodPropertiesDetail_containers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe [EksContainerDetail]
containers :: Maybe [EksContainerDetail]
$sel:containers:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksContainerDetail]
containers} -> Maybe [EksContainerDetail]
containers) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe [EksContainerDetail]
a -> EksPodPropertiesDetail
s {$sel:containers:EksPodPropertiesDetail' :: Maybe [EksContainerDetail]
containers = Maybe [EksContainerDetail]
a} :: EksPodPropertiesDetail) 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

-- | The DNS policy for the pod. The default value is @ClusterFirst@. If the
-- @hostNetwork@ parameter is not specified, the default is
-- @ClusterFirstWithHostNet@. @ClusterFirst@ indicates that any DNS query
-- that does not match the configured cluster domain suffix is forwarded to
-- the upstream nameserver inherited from the node. If no value was
-- specified for @dnsPolicy@ in the
-- <https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html RegisterJobDefinition>
-- API operation, then no value will be returned for @dnsPolicy@ by either
-- of
-- <https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html DescribeJobDefinitions>
-- or
-- <https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html DescribeJobs>
-- API operations. The pod spec setting will contain either @ClusterFirst@
-- or @ClusterFirstWithHostNet@, depending on the value of the
-- @hostNetwork@ parameter. For more information, see
-- <https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy Pod\'s DNS policy>
-- in the /Kubernetes documentation/.
--
-- Valid values: @Default@ | @ClusterFirst@ | @ClusterFirstWithHostNet@
eksPodPropertiesDetail_dnsPolicy :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_dnsPolicy :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_dnsPolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
dnsPolicy :: Maybe Text
$sel:dnsPolicy:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
dnsPolicy} -> Maybe Text
dnsPolicy) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:dnsPolicy:EksPodPropertiesDetail' :: Maybe Text
dnsPolicy = Maybe Text
a} :: EksPodPropertiesDetail)

-- | Indicates if the pod uses the hosts\' network IP address. The default
-- value is @true@. Setting this to @false@ enables the Kubernetes pod
-- networking model. Most Batch workloads are egress-only and don\'t
-- require the overhead of IP allocation for each pod for incoming
-- connections. For more information, see
-- <https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces Host namespaces>
-- and
-- <https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking Pod networking>
-- in the /Kubernetes documentation/.
eksPodPropertiesDetail_hostNetwork :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Bool)
eksPodPropertiesDetail_hostNetwork :: Lens' EksPodPropertiesDetail (Maybe Bool)
eksPodPropertiesDetail_hostNetwork = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Bool
hostNetwork :: Maybe Bool
$sel:hostNetwork:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Bool
hostNetwork} -> Maybe Bool
hostNetwork) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Bool
a -> EksPodPropertiesDetail
s {$sel:hostNetwork:EksPodPropertiesDetail' :: Maybe Bool
hostNetwork = Maybe Bool
a} :: EksPodPropertiesDetail)

-- | The name of the node for this job.
eksPodPropertiesDetail_nodeName :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_nodeName :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_nodeName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
nodeName :: Maybe Text
$sel:nodeName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
nodeName} -> Maybe Text
nodeName) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:nodeName:EksPodPropertiesDetail' :: Maybe Text
nodeName = Maybe Text
a} :: EksPodPropertiesDetail)

-- | The name of the pod for this job.
eksPodPropertiesDetail_podName :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_podName :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_podName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
podName :: Maybe Text
$sel:podName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
podName} -> Maybe Text
podName) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:podName:EksPodPropertiesDetail' :: Maybe Text
podName = Maybe Text
a} :: EksPodPropertiesDetail)

-- | The name of the service account that\'s used to run the pod. For more
-- information, see
-- <https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html Kubernetes service accounts>
-- and
-- <https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html Configure a Kubernetes service account to assume an IAM role>
-- in the /Amazon EKS User Guide/ and
-- <https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ Configure service accounts for pods>
-- in the /Kubernetes documentation/.
eksPodPropertiesDetail_serviceAccountName :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_serviceAccountName :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_serviceAccountName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
serviceAccountName :: Maybe Text
$sel:serviceAccountName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
serviceAccountName} -> Maybe Text
serviceAccountName) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:serviceAccountName:EksPodPropertiesDetail' :: Maybe Text
serviceAccountName = Maybe Text
a} :: EksPodPropertiesDetail)

-- | Specifies the volumes for a job definition using Amazon EKS resources.
eksPodPropertiesDetail_volumes :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe [EksVolume])
eksPodPropertiesDetail_volumes :: Lens' EksPodPropertiesDetail (Maybe [EksVolume])
eksPodPropertiesDetail_volumes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe [EksVolume]
volumes :: Maybe [EksVolume]
$sel:volumes:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksVolume]
volumes} -> Maybe [EksVolume]
volumes) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe [EksVolume]
a -> EksPodPropertiesDetail
s {$sel:volumes:EksPodPropertiesDetail' :: Maybe [EksVolume]
volumes = Maybe [EksVolume]
a} :: EksPodPropertiesDetail) 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

instance Data.FromJSON EksPodPropertiesDetail where
  parseJSON :: Value -> Parser EksPodPropertiesDetail
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"EksPodPropertiesDetail"
      ( \Object
x ->
          Maybe [EksContainerDetail]
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [EksVolume]
-> EksPodPropertiesDetail
EksPodPropertiesDetail'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"containers" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dnsPolicy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"hostNetwork")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"nodeName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"podName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"serviceAccountName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"volumes" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable EksPodPropertiesDetail where
  hashWithSalt :: Int -> EksPodPropertiesDetail -> Int
hashWithSalt Int
_salt EksPodPropertiesDetail' {Maybe Bool
Maybe [EksContainerDetail]
Maybe [EksVolume]
Maybe Text
volumes :: Maybe [EksVolume]
serviceAccountName :: Maybe Text
podName :: Maybe Text
nodeName :: Maybe Text
hostNetwork :: Maybe Bool
dnsPolicy :: Maybe Text
containers :: Maybe [EksContainerDetail]
$sel:volumes:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksVolume]
$sel:serviceAccountName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:podName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:nodeName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:hostNetwork:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Bool
$sel:dnsPolicy:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:containers:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksContainerDetail]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [EksContainerDetail]
containers
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dnsPolicy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
hostNetwork
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nodeName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
podName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceAccountName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [EksVolume]
volumes

instance Prelude.NFData EksPodPropertiesDetail where
  rnf :: EksPodPropertiesDetail -> ()
rnf EksPodPropertiesDetail' {Maybe Bool
Maybe [EksContainerDetail]
Maybe [EksVolume]
Maybe Text
volumes :: Maybe [EksVolume]
serviceAccountName :: Maybe Text
podName :: Maybe Text
nodeName :: Maybe Text
hostNetwork :: Maybe Bool
dnsPolicy :: Maybe Text
containers :: Maybe [EksContainerDetail]
$sel:volumes:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksVolume]
$sel:serviceAccountName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:podName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:nodeName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:hostNetwork:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Bool
$sel:dnsPolicy:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:containers:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksContainerDetail]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [EksContainerDetail]
containers
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dnsPolicy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
hostNetwork
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nodeName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
podName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serviceAccountName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [EksVolume]
volumes