module Stratosphere.FSx.S3AccessPointAttachment (
module Exports, S3AccessPointAttachment(..),
mkS3AccessPointAttachment
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.FSx.S3AccessPointAttachment.S3AccessPointProperty as Exports
import {-# SOURCE #-} Stratosphere.FSx.S3AccessPointAttachment.S3AccessPointOpenZFSConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3AccessPointAttachment
=
S3AccessPointAttachment {S3AccessPointAttachment -> ()
haddock_workaround_ :: (),
S3AccessPointAttachment -> Value Text
name :: (Value Prelude.Text),
S3AccessPointAttachment
-> S3AccessPointOpenZFSConfigurationProperty
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty,
S3AccessPointAttachment -> Maybe S3AccessPointProperty
s3AccessPoint :: (Prelude.Maybe S3AccessPointProperty),
S3AccessPointAttachment -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (S3AccessPointAttachment -> S3AccessPointAttachment -> Bool
(S3AccessPointAttachment -> S3AccessPointAttachment -> Bool)
-> (S3AccessPointAttachment -> S3AccessPointAttachment -> Bool)
-> Eq S3AccessPointAttachment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3AccessPointAttachment -> S3AccessPointAttachment -> Bool
== :: S3AccessPointAttachment -> S3AccessPointAttachment -> Bool
$c/= :: S3AccessPointAttachment -> S3AccessPointAttachment -> Bool
/= :: S3AccessPointAttachment -> S3AccessPointAttachment -> Bool
Prelude.Eq, Int -> S3AccessPointAttachment -> ShowS
[S3AccessPointAttachment] -> ShowS
S3AccessPointAttachment -> String
(Int -> S3AccessPointAttachment -> ShowS)
-> (S3AccessPointAttachment -> String)
-> ([S3AccessPointAttachment] -> ShowS)
-> Show S3AccessPointAttachment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3AccessPointAttachment -> ShowS
showsPrec :: Int -> S3AccessPointAttachment -> ShowS
$cshow :: S3AccessPointAttachment -> String
show :: S3AccessPointAttachment -> String
$cshowList :: [S3AccessPointAttachment] -> ShowS
showList :: [S3AccessPointAttachment] -> ShowS
Prelude.Show)
mkS3AccessPointAttachment ::
Value Prelude.Text
-> S3AccessPointOpenZFSConfigurationProperty
-> Value Prelude.Text -> S3AccessPointAttachment
mkS3AccessPointAttachment :: Value Text
-> S3AccessPointOpenZFSConfigurationProperty
-> Value Text
-> S3AccessPointAttachment
mkS3AccessPointAttachment Value Text
name S3AccessPointOpenZFSConfigurationProperty
openZFSConfiguration Value Text
type'
= S3AccessPointAttachment
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
openZFSConfiguration = S3AccessPointOpenZFSConfigurationProperty
openZFSConfiguration, type' :: Value Text
type' = Value Text
type',
s3AccessPoint :: Maybe S3AccessPointProperty
s3AccessPoint = Maybe S3AccessPointProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3AccessPointAttachment where
toResourceProperties :: S3AccessPointAttachment -> ResourceProperties
toResourceProperties S3AccessPointAttachment {Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: S3AccessPointAttachment -> ()
name :: S3AccessPointAttachment -> Value Text
openZFSConfiguration :: S3AccessPointAttachment
-> S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: S3AccessPointAttachment -> Maybe S3AccessPointProperty
type' :: S3AccessPointAttachment -> Value Text
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::S3AccessPointAttachment",
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,
Key
"OpenZFSConfiguration" Key -> S3AccessPointOpenZFSConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3AccessPointOpenZFSConfigurationProperty
openZFSConfiguration,
Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> S3AccessPointProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3AccessPoint" (S3AccessPointProperty -> (Key, Value))
-> Maybe S3AccessPointProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3AccessPointProperty
s3AccessPoint]))}
instance JSON.ToJSON S3AccessPointAttachment where
toJSON :: S3AccessPointAttachment -> Value
toJSON S3AccessPointAttachment {Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: S3AccessPointAttachment -> ()
name :: S3AccessPointAttachment -> Value Text
openZFSConfiguration :: S3AccessPointAttachment
-> S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: S3AccessPointAttachment -> Maybe S3AccessPointProperty
type' :: S3AccessPointAttachment -> Value Text
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
= [(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,
Key
"OpenZFSConfiguration" Key -> S3AccessPointOpenZFSConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3AccessPointOpenZFSConfigurationProperty
openZFSConfiguration,
Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> S3AccessPointProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3AccessPoint" (S3AccessPointProperty -> (Key, Value))
-> Maybe S3AccessPointProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3AccessPointProperty
s3AccessPoint])))
instance Property "Name" S3AccessPointAttachment where
type PropertyType "Name" S3AccessPointAttachment = Value Prelude.Text
set :: PropertyType "Name" S3AccessPointAttachment
-> S3AccessPointAttachment -> S3AccessPointAttachment
set PropertyType "Name" S3AccessPointAttachment
newValue S3AccessPointAttachment {Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: S3AccessPointAttachment -> ()
name :: S3AccessPointAttachment -> Value Text
openZFSConfiguration :: S3AccessPointAttachment
-> S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: S3AccessPointAttachment -> Maybe S3AccessPointProperty
type' :: S3AccessPointAttachment -> Value Text
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
= S3AccessPointAttachment {name :: Value Text
name = PropertyType "Name" S3AccessPointAttachment
Value Text
newValue, Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: ()
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
haddock_workaround_ :: ()
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
instance Property "OpenZFSConfiguration" S3AccessPointAttachment where
type PropertyType "OpenZFSConfiguration" S3AccessPointAttachment = S3AccessPointOpenZFSConfigurationProperty
set :: PropertyType "OpenZFSConfiguration" S3AccessPointAttachment
-> S3AccessPointAttachment -> S3AccessPointAttachment
set PropertyType "OpenZFSConfiguration" S3AccessPointAttachment
newValue S3AccessPointAttachment {Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: S3AccessPointAttachment -> ()
name :: S3AccessPointAttachment -> Value Text
openZFSConfiguration :: S3AccessPointAttachment
-> S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: S3AccessPointAttachment -> Maybe S3AccessPointProperty
type' :: S3AccessPointAttachment -> Value Text
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
= S3AccessPointAttachment {openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
openZFSConfiguration = PropertyType "OpenZFSConfiguration" S3AccessPointAttachment
S3AccessPointOpenZFSConfigurationProperty
newValue, Maybe S3AccessPointProperty
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
haddock_workaround_ :: ()
name :: Value Text
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
instance Property "S3AccessPoint" S3AccessPointAttachment where
type PropertyType "S3AccessPoint" S3AccessPointAttachment = S3AccessPointProperty
set :: PropertyType "S3AccessPoint" S3AccessPointAttachment
-> S3AccessPointAttachment -> S3AccessPointAttachment
set PropertyType "S3AccessPoint" S3AccessPointAttachment
newValue S3AccessPointAttachment {Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: S3AccessPointAttachment -> ()
name :: S3AccessPointAttachment -> Value Text
openZFSConfiguration :: S3AccessPointAttachment
-> S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: S3AccessPointAttachment -> Maybe S3AccessPointProperty
type' :: S3AccessPointAttachment -> Value Text
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
= S3AccessPointAttachment
{s3AccessPoint :: Maybe S3AccessPointProperty
s3AccessPoint = S3AccessPointProperty -> Maybe S3AccessPointProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3AccessPoint" S3AccessPointAttachment
S3AccessPointProperty
newValue, ()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
type' :: Value Text
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
type' :: Value Text
..}
instance Property "Type" S3AccessPointAttachment where
type PropertyType "Type" S3AccessPointAttachment = Value Prelude.Text
set :: PropertyType "Type" S3AccessPointAttachment
-> S3AccessPointAttachment -> S3AccessPointAttachment
set PropertyType "Type" S3AccessPointAttachment
newValue S3AccessPointAttachment {Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: S3AccessPointAttachment -> ()
name :: S3AccessPointAttachment -> Value Text
openZFSConfiguration :: S3AccessPointAttachment
-> S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: S3AccessPointAttachment -> Maybe S3AccessPointProperty
type' :: S3AccessPointAttachment -> Value Text
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
type' :: Value Text
..}
= S3AccessPointAttachment {type' :: Value Text
type' = PropertyType "Type" S3AccessPointAttachment
Value Text
newValue, Maybe S3AccessPointProperty
()
Value Text
S3AccessPointOpenZFSConfigurationProperty
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
haddock_workaround_ :: ()
name :: Value Text
openZFSConfiguration :: S3AccessPointOpenZFSConfigurationProperty
s3AccessPoint :: Maybe S3AccessPointProperty
..}