module Stratosphere.DataZone.EnvironmentActions (
module Exports, EnvironmentActions(..), mkEnvironmentActions
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataZone.EnvironmentActions.AwsConsoleLinkParametersProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EnvironmentActions
=
EnvironmentActions {EnvironmentActions -> ()
haddock_workaround_ :: (),
EnvironmentActions -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
EnvironmentActions -> Maybe (Value Text)
identifier :: (Prelude.Maybe (Value Prelude.Text)),
EnvironmentActions -> Value Text
name :: (Value Prelude.Text),
EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
parameters :: (Prelude.Maybe AwsConsoleLinkParametersProperty)}
deriving stock (EnvironmentActions -> EnvironmentActions -> Bool
(EnvironmentActions -> EnvironmentActions -> Bool)
-> (EnvironmentActions -> EnvironmentActions -> Bool)
-> Eq EnvironmentActions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EnvironmentActions -> EnvironmentActions -> Bool
== :: EnvironmentActions -> EnvironmentActions -> Bool
$c/= :: EnvironmentActions -> EnvironmentActions -> Bool
/= :: EnvironmentActions -> EnvironmentActions -> Bool
Prelude.Eq, Int -> EnvironmentActions -> ShowS
[EnvironmentActions] -> ShowS
EnvironmentActions -> String
(Int -> EnvironmentActions -> ShowS)
-> (EnvironmentActions -> String)
-> ([EnvironmentActions] -> ShowS)
-> Show EnvironmentActions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EnvironmentActions -> ShowS
showsPrec :: Int -> EnvironmentActions -> ShowS
$cshow :: EnvironmentActions -> String
show :: EnvironmentActions -> String
$cshowList :: [EnvironmentActions] -> ShowS
showList :: [EnvironmentActions] -> ShowS
Prelude.Show)
mkEnvironmentActions :: Value Prelude.Text -> EnvironmentActions
mkEnvironmentActions :: Value Text -> EnvironmentActions
mkEnvironmentActions Value Text
name
= EnvironmentActions
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, domainIdentifier :: Maybe (Value Text)
domainIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
environmentIdentifier :: Maybe (Value Text)
environmentIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
identifier :: Maybe (Value Text)
identifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, parameters :: Maybe AwsConsoleLinkParametersProperty
parameters = Maybe AwsConsoleLinkParametersProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EnvironmentActions where
toResourceProperties :: EnvironmentActions -> ResourceProperties
toResourceProperties EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::EnvironmentActions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DomainIdentifier" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
domainIdentifier,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnvironmentIdentifier"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
environmentIdentifier,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Identifier" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
identifier,
Key -> AwsConsoleLinkParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" (AwsConsoleLinkParametersProperty -> (Key, Value))
-> Maybe AwsConsoleLinkParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsConsoleLinkParametersProperty
parameters]))}
instance JSON.ToJSON EnvironmentActions where
toJSON :: EnvironmentActions -> Value
toJSON EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DomainIdentifier" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
domainIdentifier,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnvironmentIdentifier"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
environmentIdentifier,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Identifier" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
identifier,
Key -> AwsConsoleLinkParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" (AwsConsoleLinkParametersProperty -> (Key, Value))
-> Maybe AwsConsoleLinkParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsConsoleLinkParametersProperty
parameters])))
instance Property "Description" EnvironmentActions where
type PropertyType "Description" EnvironmentActions = Value Prelude.Text
set :: PropertyType "Description" EnvironmentActions
-> EnvironmentActions -> EnvironmentActions
set PropertyType "Description" EnvironmentActions
newValue EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= EnvironmentActions {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" EnvironmentActions
Value Text
newValue, Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: ()
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
instance Property "DomainIdentifier" EnvironmentActions where
type PropertyType "DomainIdentifier" EnvironmentActions = Value Prelude.Text
set :: PropertyType "DomainIdentifier" EnvironmentActions
-> EnvironmentActions -> EnvironmentActions
set PropertyType "DomainIdentifier" EnvironmentActions
newValue EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= EnvironmentActions {domainIdentifier :: Maybe (Value Text)
domainIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DomainIdentifier" EnvironmentActions
Value Text
newValue, Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
instance Property "EnvironmentIdentifier" EnvironmentActions where
type PropertyType "EnvironmentIdentifier" EnvironmentActions = Value Prelude.Text
set :: PropertyType "EnvironmentIdentifier" EnvironmentActions
-> EnvironmentActions -> EnvironmentActions
set PropertyType "EnvironmentIdentifier" EnvironmentActions
newValue EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= EnvironmentActions
{environmentIdentifier :: Maybe (Value Text)
environmentIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EnvironmentIdentifier" EnvironmentActions
Value Text
newValue, Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
instance Property "Identifier" EnvironmentActions where
type PropertyType "Identifier" EnvironmentActions = Value Prelude.Text
set :: PropertyType "Identifier" EnvironmentActions
-> EnvironmentActions -> EnvironmentActions
set PropertyType "Identifier" EnvironmentActions
newValue EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= EnvironmentActions {identifier :: Maybe (Value Text)
identifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Identifier" EnvironmentActions
Value Text
newValue, Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
instance Property "Name" EnvironmentActions where
type PropertyType "Name" EnvironmentActions = Value Prelude.Text
set :: PropertyType "Name" EnvironmentActions
-> EnvironmentActions -> EnvironmentActions
set PropertyType "Name" EnvironmentActions
newValue EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= EnvironmentActions {name :: Value Text
name = PropertyType "Name" EnvironmentActions
Value Text
newValue, Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
parameters :: Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
instance Property "Parameters" EnvironmentActions where
type PropertyType "Parameters" EnvironmentActions = AwsConsoleLinkParametersProperty
set :: PropertyType "Parameters" EnvironmentActions
-> EnvironmentActions -> EnvironmentActions
set PropertyType "Parameters" EnvironmentActions
newValue EnvironmentActions {Maybe (Value Text)
Maybe AwsConsoleLinkParametersProperty
()
Value Text
haddock_workaround_ :: EnvironmentActions -> ()
description :: EnvironmentActions -> Maybe (Value Text)
domainIdentifier :: EnvironmentActions -> Maybe (Value Text)
environmentIdentifier :: EnvironmentActions -> Maybe (Value Text)
identifier :: EnvironmentActions -> Maybe (Value Text)
name :: EnvironmentActions -> Value Text
parameters :: EnvironmentActions -> Maybe AwsConsoleLinkParametersProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
parameters :: Maybe AwsConsoleLinkParametersProperty
..}
= EnvironmentActions {parameters :: Maybe AwsConsoleLinkParametersProperty
parameters = AwsConsoleLinkParametersProperty
-> Maybe AwsConsoleLinkParametersProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Parameters" EnvironmentActions
AwsConsoleLinkParametersProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Maybe (Value Text)
environmentIdentifier :: Maybe (Value Text)
identifier :: Maybe (Value Text)
name :: Value Text
..}