module Stratosphere.GroundStation.Config.S3RecordingConfigProperty (
        S3RecordingConfigProperty(..), mkS3RecordingConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3RecordingConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-s3recordingconfig.html>
    S3RecordingConfigProperty {S3RecordingConfigProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-s3recordingconfig.html#cfn-groundstation-config-s3recordingconfig-bucketarn>
                               S3RecordingConfigProperty -> Maybe (Value Text)
bucketArn :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-s3recordingconfig.html#cfn-groundstation-config-s3recordingconfig-prefix>
                               S3RecordingConfigProperty -> Maybe (Value Text)
prefix :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-s3recordingconfig.html#cfn-groundstation-config-s3recordingconfig-rolearn>
                               S3RecordingConfigProperty -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (S3RecordingConfigProperty -> S3RecordingConfigProperty -> Bool
(S3RecordingConfigProperty -> S3RecordingConfigProperty -> Bool)
-> (S3RecordingConfigProperty -> S3RecordingConfigProperty -> Bool)
-> Eq S3RecordingConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3RecordingConfigProperty -> S3RecordingConfigProperty -> Bool
== :: S3RecordingConfigProperty -> S3RecordingConfigProperty -> Bool
$c/= :: S3RecordingConfigProperty -> S3RecordingConfigProperty -> Bool
/= :: S3RecordingConfigProperty -> S3RecordingConfigProperty -> Bool
Prelude.Eq, Int -> S3RecordingConfigProperty -> ShowS
[S3RecordingConfigProperty] -> ShowS
S3RecordingConfigProperty -> String
(Int -> S3RecordingConfigProperty -> ShowS)
-> (S3RecordingConfigProperty -> String)
-> ([S3RecordingConfigProperty] -> ShowS)
-> Show S3RecordingConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3RecordingConfigProperty -> ShowS
showsPrec :: Int -> S3RecordingConfigProperty -> ShowS
$cshow :: S3RecordingConfigProperty -> String
show :: S3RecordingConfigProperty -> String
$cshowList :: [S3RecordingConfigProperty] -> ShowS
showList :: [S3RecordingConfigProperty] -> ShowS
Prelude.Show)
mkS3RecordingConfigProperty :: S3RecordingConfigProperty
mkS3RecordingConfigProperty :: S3RecordingConfigProperty
mkS3RecordingConfigProperty
  = S3RecordingConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucketArn :: Maybe (Value Text)
bucketArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       prefix :: Maybe (Value Text)
prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3RecordingConfigProperty where
  toResourceProperties :: S3RecordingConfigProperty -> ResourceProperties
toResourceProperties S3RecordingConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3RecordingConfigProperty -> ()
bucketArn :: S3RecordingConfigProperty -> Maybe (Value Text)
prefix :: S3RecordingConfigProperty -> Maybe (Value Text)
roleArn :: S3RecordingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
prefix :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GroundStation::Config.S3RecordingConfig",
         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
"BucketArn" (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)
bucketArn,
                            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
"Prefix" (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)
prefix,
                            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])}
instance JSON.ToJSON S3RecordingConfigProperty where
  toJSON :: S3RecordingConfigProperty -> Value
toJSON S3RecordingConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3RecordingConfigProperty -> ()
bucketArn :: S3RecordingConfigProperty -> Maybe (Value Text)
prefix :: S3RecordingConfigProperty -> Maybe (Value Text)
roleArn :: S3RecordingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
prefix :: Maybe (Value Text)
roleArn :: Maybe (Value 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
"BucketArn" (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)
bucketArn,
               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
"Prefix" (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)
prefix,
               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]))
instance Property "BucketArn" S3RecordingConfigProperty where
  type PropertyType "BucketArn" S3RecordingConfigProperty = Value Prelude.Text
  set :: PropertyType "BucketArn" S3RecordingConfigProperty
-> S3RecordingConfigProperty -> S3RecordingConfigProperty
set PropertyType "BucketArn" S3RecordingConfigProperty
newValue S3RecordingConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3RecordingConfigProperty -> ()
bucketArn :: S3RecordingConfigProperty -> Maybe (Value Text)
prefix :: S3RecordingConfigProperty -> Maybe (Value Text)
roleArn :: S3RecordingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
prefix :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
    = S3RecordingConfigProperty {bucketArn :: Maybe (Value Text)
bucketArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BucketArn" S3RecordingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
instance Property "Prefix" S3RecordingConfigProperty where
  type PropertyType "Prefix" S3RecordingConfigProperty = Value Prelude.Text
  set :: PropertyType "Prefix" S3RecordingConfigProperty
-> S3RecordingConfigProperty -> S3RecordingConfigProperty
set PropertyType "Prefix" S3RecordingConfigProperty
newValue S3RecordingConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3RecordingConfigProperty -> ()
bucketArn :: S3RecordingConfigProperty -> Maybe (Value Text)
prefix :: S3RecordingConfigProperty -> Maybe (Value Text)
roleArn :: S3RecordingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
prefix :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
    = S3RecordingConfigProperty {prefix :: Maybe (Value Text)
prefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Prefix" S3RecordingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
instance Property "RoleArn" S3RecordingConfigProperty where
  type PropertyType "RoleArn" S3RecordingConfigProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" S3RecordingConfigProperty
-> S3RecordingConfigProperty -> S3RecordingConfigProperty
set PropertyType "RoleArn" S3RecordingConfigProperty
newValue S3RecordingConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3RecordingConfigProperty -> ()
bucketArn :: S3RecordingConfigProperty -> Maybe (Value Text)
prefix :: S3RecordingConfigProperty -> Maybe (Value Text)
roleArn :: S3RecordingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
prefix :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
    = S3RecordingConfigProperty {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" S3RecordingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
prefix :: Maybe (Value Text)
haddock_workaround_ :: ()
bucketArn :: Maybe (Value Text)
prefix :: Maybe (Value Text)
..}