module Stratosphere.GroundStation.DataflowEndpointGroup.SecurityDetailsProperty (
        SecurityDetailsProperty(..), mkSecurityDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecurityDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-securitydetails.html>
    SecurityDetailsProperty {SecurityDetailsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-securitydetails.html#cfn-groundstation-dataflowendpointgroup-securitydetails-rolearn>
                             SecurityDetailsProperty -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-securitydetails.html#cfn-groundstation-dataflowendpointgroup-securitydetails-securitygroupids>
                             SecurityDetailsProperty -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-securitydetails.html#cfn-groundstation-dataflowendpointgroup-securitydetails-subnetids>
                             SecurityDetailsProperty -> Maybe (ValueList Text)
subnetIds :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (SecurityDetailsProperty -> SecurityDetailsProperty -> Bool
(SecurityDetailsProperty -> SecurityDetailsProperty -> Bool)
-> (SecurityDetailsProperty -> SecurityDetailsProperty -> Bool)
-> Eq SecurityDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SecurityDetailsProperty -> SecurityDetailsProperty -> Bool
== :: SecurityDetailsProperty -> SecurityDetailsProperty -> Bool
$c/= :: SecurityDetailsProperty -> SecurityDetailsProperty -> Bool
/= :: SecurityDetailsProperty -> SecurityDetailsProperty -> Bool
Prelude.Eq, Int -> SecurityDetailsProperty -> ShowS
[SecurityDetailsProperty] -> ShowS
SecurityDetailsProperty -> String
(Int -> SecurityDetailsProperty -> ShowS)
-> (SecurityDetailsProperty -> String)
-> ([SecurityDetailsProperty] -> ShowS)
-> Show SecurityDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SecurityDetailsProperty -> ShowS
showsPrec :: Int -> SecurityDetailsProperty -> ShowS
$cshow :: SecurityDetailsProperty -> String
show :: SecurityDetailsProperty -> String
$cshowList :: [SecurityDetailsProperty] -> ShowS
showList :: [SecurityDetailsProperty] -> ShowS
Prelude.Show)
mkSecurityDetailsProperty :: SecurityDetailsProperty
mkSecurityDetailsProperty :: SecurityDetailsProperty
mkSecurityDetailsProperty
  = SecurityDetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, subnetIds :: Maybe (ValueList Text)
subnetIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SecurityDetailsProperty where
  toResourceProperties :: SecurityDetailsProperty -> ResourceProperties
toResourceProperties SecurityDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityDetailsProperty -> ()
roleArn :: SecurityDetailsProperty -> Maybe (Value Text)
securityGroupIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
subnetIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GroundStation::DataflowEndpointGroup.SecurityDetails",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([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
"RoleArn" (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)
roleArn,
                            Key -> ValueList 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
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds,
                            Key -> ValueList 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
"SubnetIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
subnetIds])}
instance JSON.ToJSON SecurityDetailsProperty where
  toJSON :: SecurityDetailsProperty -> Value
toJSON SecurityDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityDetailsProperty -> ()
roleArn :: SecurityDetailsProperty -> Maybe (Value Text)
securityGroupIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
subnetIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([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
"RoleArn" (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)
roleArn,
               Key -> ValueList 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
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds,
               Key -> ValueList 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
"SubnetIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
subnetIds]))
instance Property "RoleArn" SecurityDetailsProperty where
  type PropertyType "RoleArn" SecurityDetailsProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" SecurityDetailsProperty
-> SecurityDetailsProperty -> SecurityDetailsProperty
set PropertyType "RoleArn" SecurityDetailsProperty
newValue SecurityDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityDetailsProperty -> ()
roleArn :: SecurityDetailsProperty -> Maybe (Value Text)
securityGroupIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
subnetIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = SecurityDetailsProperty {roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" SecurityDetailsProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
instance Property "SecurityGroupIds" SecurityDetailsProperty where
  type PropertyType "SecurityGroupIds" SecurityDetailsProperty = ValueList Prelude.Text
  set :: PropertyType "SecurityGroupIds" SecurityDetailsProperty
-> SecurityDetailsProperty -> SecurityDetailsProperty
set PropertyType "SecurityGroupIds" SecurityDetailsProperty
newValue SecurityDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityDetailsProperty -> ()
roleArn :: SecurityDetailsProperty -> Maybe (Value Text)
securityGroupIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
subnetIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = SecurityDetailsProperty
        {securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupIds" SecurityDetailsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
subnetIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
subnetIds :: Maybe (ValueList Text)
..}
instance Property "SubnetIds" SecurityDetailsProperty where
  type PropertyType "SubnetIds" SecurityDetailsProperty = ValueList Prelude.Text
  set :: PropertyType "SubnetIds" SecurityDetailsProperty
-> SecurityDetailsProperty -> SecurityDetailsProperty
set PropertyType "SubnetIds" SecurityDetailsProperty
newValue SecurityDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityDetailsProperty -> ()
roleArn :: SecurityDetailsProperty -> Maybe (Value Text)
securityGroupIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
subnetIds :: SecurityDetailsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = SecurityDetailsProperty {subnetIds :: Maybe (ValueList Text)
subnetIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetIds" SecurityDetailsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroupIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
securityGroupIds :: Maybe (ValueList Text)
..}