{-# 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.EMRContainers.Types.Endpoint where
import qualified Amazonka.Core as Core
import Amazonka.EMRContainers.Types.ConfigurationOverrides
import Amazonka.EMRContainers.Types.EndpointState
import Amazonka.EMRContainers.Types.FailureReason
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Endpoint = Endpoint'
{
Endpoint -> Maybe FailureReason
failureReason :: Prelude.Maybe FailureReason,
Endpoint -> Maybe EndpointState
state :: Prelude.Maybe EndpointState,
Endpoint -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
Endpoint -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text],
Endpoint -> Maybe Text
stateDetails :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
certificateArn :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
executionRoleArn :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
securityGroup :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe ConfigurationOverrides
configurationOverrides :: Prelude.Maybe ConfigurationOverrides,
Endpoint -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
releaseLabel :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
type' :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
serverUrl :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
virtualClusterId :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
}
deriving (Endpoint -> Endpoint -> Bool
(Endpoint -> Endpoint -> Bool)
-> (Endpoint -> Endpoint -> Bool) -> Eq Endpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Endpoint -> Endpoint -> Bool
$c/= :: Endpoint -> Endpoint -> Bool
== :: Endpoint -> Endpoint -> Bool
$c== :: Endpoint -> Endpoint -> Bool
Prelude.Eq, Int -> Endpoint -> ShowS
[Endpoint] -> ShowS
Endpoint -> String
(Int -> Endpoint -> ShowS)
-> (Endpoint -> String) -> ([Endpoint] -> ShowS) -> Show Endpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Endpoint] -> ShowS
$cshowList :: [Endpoint] -> ShowS
show :: Endpoint -> String
$cshow :: Endpoint -> String
showsPrec :: Int -> Endpoint -> ShowS
$cshowsPrec :: Int -> Endpoint -> ShowS
Prelude.Show, (forall x. Endpoint -> Rep Endpoint x)
-> (forall x. Rep Endpoint x -> Endpoint) -> Generic Endpoint
forall x. Rep Endpoint x -> Endpoint
forall x. Endpoint -> Rep Endpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Endpoint x -> Endpoint
$cfrom :: forall x. Endpoint -> Rep Endpoint x
Prelude.Generic)
newEndpoint ::
Endpoint
newEndpoint :: Endpoint
newEndpoint =
Endpoint' :: Maybe FailureReason
-> Maybe EndpointState
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint
Endpoint'
{ $sel:failureReason:Endpoint' :: Maybe FailureReason
failureReason = Maybe FailureReason
forall a. Maybe a
Prelude.Nothing,
$sel:state:Endpoint' :: Maybe EndpointState
state = Maybe EndpointState
forall a. Maybe a
Prelude.Nothing,
$sel:arn:Endpoint' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:Endpoint' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:subnetIds:Endpoint' :: Maybe [Text]
subnetIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:stateDetails:Endpoint' :: Maybe Text
stateDetails = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:certificateArn:Endpoint' :: Maybe Text
certificateArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionRoleArn:Endpoint' :: Maybe Text
executionRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:securityGroup:Endpoint' :: Maybe Text
securityGroup = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:configurationOverrides:Endpoint' :: Maybe ConfigurationOverrides
configurationOverrides = Maybe ConfigurationOverrides
forall a. Maybe a
Prelude.Nothing,
$sel:name:Endpoint' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:releaseLabel:Endpoint' :: Maybe Text
releaseLabel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:Endpoint' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':Endpoint' :: Maybe Text
type' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:serverUrl:Endpoint' :: Maybe Text
serverUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:virtualClusterId:Endpoint' :: Maybe Text
virtualClusterId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:Endpoint' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
}
endpoint_failureReason :: Lens.Lens' Endpoint (Prelude.Maybe FailureReason)
endpoint_failureReason :: (Maybe FailureReason -> f (Maybe FailureReason))
-> Endpoint -> f Endpoint
endpoint_failureReason = (Endpoint -> Maybe FailureReason)
-> (Endpoint -> Maybe FailureReason -> Endpoint)
-> Lens
Endpoint Endpoint (Maybe FailureReason) (Maybe FailureReason)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe FailureReason
failureReason :: Maybe FailureReason
$sel:failureReason:Endpoint' :: Endpoint -> Maybe FailureReason
failureReason} -> Maybe FailureReason
failureReason) (\s :: Endpoint
s@Endpoint' {} Maybe FailureReason
a -> Endpoint
s {$sel:failureReason:Endpoint' :: Maybe FailureReason
failureReason = Maybe FailureReason
a} :: Endpoint)
endpoint_state :: Lens.Lens' Endpoint (Prelude.Maybe EndpointState)
endpoint_state :: (Maybe EndpointState -> f (Maybe EndpointState))
-> Endpoint -> f Endpoint
endpoint_state = (Endpoint -> Maybe EndpointState)
-> (Endpoint -> Maybe EndpointState -> Endpoint)
-> Lens
Endpoint Endpoint (Maybe EndpointState) (Maybe EndpointState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe EndpointState
state :: Maybe EndpointState
$sel:state:Endpoint' :: Endpoint -> Maybe EndpointState
state} -> Maybe EndpointState
state) (\s :: Endpoint
s@Endpoint' {} Maybe EndpointState
a -> Endpoint
s {$sel:state:Endpoint' :: Maybe EndpointState
state = Maybe EndpointState
a} :: Endpoint)
endpoint_arn :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_arn :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_arn = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
arn :: Maybe Text
$sel:arn:Endpoint' :: Endpoint -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:arn:Endpoint' :: Maybe Text
arn = Maybe Text
a} :: Endpoint)
endpoint_createdAt :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.UTCTime)
endpoint_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Endpoint -> f Endpoint
endpoint_createdAt = (Endpoint -> Maybe POSIX)
-> (Endpoint -> Maybe POSIX -> Endpoint)
-> Lens Endpoint Endpoint (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Endpoint' :: Endpoint -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Endpoint
s@Endpoint' {} Maybe POSIX
a -> Endpoint
s {$sel:createdAt:Endpoint' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Endpoint) ((Maybe POSIX -> f (Maybe POSIX)) -> Endpoint -> f Endpoint)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Endpoint
-> f Endpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
endpoint_subnetIds :: Lens.Lens' Endpoint (Prelude.Maybe [Prelude.Text])
endpoint_subnetIds :: (Maybe [Text] -> f (Maybe [Text])) -> Endpoint -> f Endpoint
endpoint_subnetIds = (Endpoint -> Maybe [Text])
-> (Endpoint -> Maybe [Text] -> Endpoint)
-> Lens Endpoint Endpoint (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:Endpoint' :: Endpoint -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: Endpoint
s@Endpoint' {} Maybe [Text]
a -> Endpoint
s {$sel:subnetIds:Endpoint' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: Endpoint) ((Maybe [Text] -> f (Maybe [Text])) -> Endpoint -> f Endpoint)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> Endpoint
-> f Endpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
endpoint_stateDetails :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_stateDetails :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_stateDetails = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
stateDetails :: Maybe Text
$sel:stateDetails:Endpoint' :: Endpoint -> Maybe Text
stateDetails} -> Maybe Text
stateDetails) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:stateDetails:Endpoint' :: Maybe Text
stateDetails = Maybe Text
a} :: Endpoint)
endpoint_certificateArn :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_certificateArn :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_certificateArn = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
certificateArn :: Maybe Text
$sel:certificateArn:Endpoint' :: Endpoint -> Maybe Text
certificateArn} -> Maybe Text
certificateArn) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:certificateArn:Endpoint' :: Maybe Text
certificateArn = Maybe Text
a} :: Endpoint)
endpoint_executionRoleArn :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_executionRoleArn :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_executionRoleArn = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
executionRoleArn :: Maybe Text
$sel:executionRoleArn:Endpoint' :: Endpoint -> Maybe Text
executionRoleArn} -> Maybe Text
executionRoleArn) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:executionRoleArn:Endpoint' :: Maybe Text
executionRoleArn = Maybe Text
a} :: Endpoint)
endpoint_securityGroup :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_securityGroup :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_securityGroup = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
securityGroup :: Maybe Text
$sel:securityGroup:Endpoint' :: Endpoint -> Maybe Text
securityGroup} -> Maybe Text
securityGroup) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:securityGroup:Endpoint' :: Maybe Text
securityGroup = Maybe Text
a} :: Endpoint)
endpoint_configurationOverrides :: Lens.Lens' Endpoint (Prelude.Maybe ConfigurationOverrides)
endpoint_configurationOverrides :: (Maybe ConfigurationOverrides -> f (Maybe ConfigurationOverrides))
-> Endpoint -> f Endpoint
endpoint_configurationOverrides = (Endpoint -> Maybe ConfigurationOverrides)
-> (Endpoint -> Maybe ConfigurationOverrides -> Endpoint)
-> Lens
Endpoint
Endpoint
(Maybe ConfigurationOverrides)
(Maybe ConfigurationOverrides)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe ConfigurationOverrides
configurationOverrides :: Maybe ConfigurationOverrides
$sel:configurationOverrides:Endpoint' :: Endpoint -> Maybe ConfigurationOverrides
configurationOverrides} -> Maybe ConfigurationOverrides
configurationOverrides) (\s :: Endpoint
s@Endpoint' {} Maybe ConfigurationOverrides
a -> Endpoint
s {$sel:configurationOverrides:Endpoint' :: Maybe ConfigurationOverrides
configurationOverrides = Maybe ConfigurationOverrides
a} :: Endpoint)
endpoint_name :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_name :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_name = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
name :: Maybe Text
$sel:name:Endpoint' :: Endpoint -> Maybe Text
name} -> Maybe Text
name) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:name:Endpoint' :: Maybe Text
name = Maybe Text
a} :: Endpoint)
endpoint_releaseLabel :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_releaseLabel :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_releaseLabel = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
releaseLabel :: Maybe Text
$sel:releaseLabel:Endpoint' :: Endpoint -> Maybe Text
releaseLabel} -> Maybe Text
releaseLabel) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:releaseLabel:Endpoint' :: Maybe Text
releaseLabel = Maybe Text
a} :: Endpoint)
endpoint_id :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_id :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_id = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
id :: Maybe Text
$sel:id:Endpoint' :: Endpoint -> Maybe Text
id} -> Maybe Text
id) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:id:Endpoint' :: Maybe Text
id = Maybe Text
a} :: Endpoint)
endpoint_type :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_type :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_type = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
type' :: Maybe Text
$sel:type':Endpoint' :: Endpoint -> Maybe Text
type'} -> Maybe Text
type') (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:type':Endpoint' :: Maybe Text
type' = Maybe Text
a} :: Endpoint)
endpoint_serverUrl :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_serverUrl :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_serverUrl = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
serverUrl :: Maybe Text
$sel:serverUrl:Endpoint' :: Endpoint -> Maybe Text
serverUrl} -> Maybe Text
serverUrl) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:serverUrl:Endpoint' :: Maybe Text
serverUrl = Maybe Text
a} :: Endpoint)
endpoint_virtualClusterId :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_virtualClusterId :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_virtualClusterId = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
virtualClusterId :: Maybe Text
$sel:virtualClusterId:Endpoint' :: Endpoint -> Maybe Text
virtualClusterId} -> Maybe Text
virtualClusterId) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:virtualClusterId:Endpoint' :: Maybe Text
virtualClusterId = Maybe Text
a} :: Endpoint)
endpoint_tags :: Lens.Lens' Endpoint (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
endpoint_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Endpoint -> f Endpoint
endpoint_tags = (Endpoint -> Maybe (HashMap Text Text))
-> (Endpoint -> Maybe (HashMap Text Text) -> Endpoint)
-> Lens
Endpoint
Endpoint
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Endpoint' :: Endpoint -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Endpoint
s@Endpoint' {} Maybe (HashMap Text Text)
a -> Endpoint
s {$sel:tags:Endpoint' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Endpoint) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Endpoint -> f Endpoint)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Endpoint
-> f Endpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.FromJSON Endpoint where
parseJSON :: Value -> Parser Endpoint
parseJSON =
String -> (Object -> Parser Endpoint) -> Value -> Parser Endpoint
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Endpoint"
( \Object
x ->
Maybe FailureReason
-> Maybe EndpointState
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint
Endpoint'
(Maybe FailureReason
-> Maybe EndpointState
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe FailureReason)
-> Parser
(Maybe EndpointState
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe FailureReason)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"failureReason")
Parser
(Maybe EndpointState
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe EndpointState)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EndpointState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"state")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"arn")
Parser
(Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe POSIX)
-> Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"createdAt")
Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe [Text])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"subnetIds" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"stateDetails")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"certificateArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionRoleArn")
Parser
(Maybe Text
-> Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"securityGroup")
Parser
(Maybe ConfigurationOverrides
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe ConfigurationOverrides)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ConfigurationOverrides)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"configurationOverrides")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"name")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"releaseLabel")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"id")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> Maybe (HashMap Text Text) -> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"type")
Parser
(Maybe Text -> Maybe Text -> Maybe (HashMap Text Text) -> Endpoint)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe (HashMap Text Text) -> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"serverUrl")
Parser (Maybe Text -> Maybe (HashMap Text Text) -> Endpoint)
-> Parser (Maybe Text)
-> Parser (Maybe (HashMap Text Text) -> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"virtualClusterId")
Parser (Maybe (HashMap Text Text) -> Endpoint)
-> Parser (Maybe (HashMap Text Text)) -> Parser Endpoint
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable Endpoint
instance Prelude.NFData Endpoint