module Stratosphere.FSx.S3AccessPointAttachment.S3AccessPointProperty (
        module Exports, S3AccessPointProperty(..), mkS3AccessPointProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.FSx.S3AccessPointAttachment.S3AccessPointVpcConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3AccessPointProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-s3accesspointattachment-s3accesspoint.html>
    S3AccessPointProperty {S3AccessPointProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-s3accesspointattachment-s3accesspoint.html#cfn-fsx-s3accesspointattachment-s3accesspoint-alias>
                           S3AccessPointProperty -> Maybe (Value Text)
alias :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-s3accesspointattachment-s3accesspoint.html#cfn-fsx-s3accesspointattachment-s3accesspoint-policy>
                           S3AccessPointProperty -> Maybe Object
policy :: (Prelude.Maybe JSON.Object),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-s3accesspointattachment-s3accesspoint.html#cfn-fsx-s3accesspointattachment-s3accesspoint-resourcearn>
                           S3AccessPointProperty -> Maybe (Value Text)
resourceARN :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-s3accesspointattachment-s3accesspoint.html#cfn-fsx-s3accesspointattachment-s3accesspoint-vpcconfiguration>
                           S3AccessPointProperty
-> Maybe S3AccessPointVpcConfigurationProperty
vpcConfiguration :: (Prelude.Maybe S3AccessPointVpcConfigurationProperty)}
  deriving stock (S3AccessPointProperty -> S3AccessPointProperty -> Bool
(S3AccessPointProperty -> S3AccessPointProperty -> Bool)
-> (S3AccessPointProperty -> S3AccessPointProperty -> Bool)
-> Eq S3AccessPointProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3AccessPointProperty -> S3AccessPointProperty -> Bool
== :: S3AccessPointProperty -> S3AccessPointProperty -> Bool
$c/= :: S3AccessPointProperty -> S3AccessPointProperty -> Bool
/= :: S3AccessPointProperty -> S3AccessPointProperty -> Bool
Prelude.Eq, Int -> S3AccessPointProperty -> ShowS
[S3AccessPointProperty] -> ShowS
S3AccessPointProperty -> String
(Int -> S3AccessPointProperty -> ShowS)
-> (S3AccessPointProperty -> String)
-> ([S3AccessPointProperty] -> ShowS)
-> Show S3AccessPointProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3AccessPointProperty -> ShowS
showsPrec :: Int -> S3AccessPointProperty -> ShowS
$cshow :: S3AccessPointProperty -> String
show :: S3AccessPointProperty -> String
$cshowList :: [S3AccessPointProperty] -> ShowS
showList :: [S3AccessPointProperty] -> ShowS
Prelude.Show)
mkS3AccessPointProperty :: S3AccessPointProperty
mkS3AccessPointProperty :: S3AccessPointProperty
mkS3AccessPointProperty
  = S3AccessPointProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), alias :: Maybe (Value Text)
alias = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       policy :: Maybe Object
policy = Maybe Object
forall a. Maybe a
Prelude.Nothing, resourceARN :: Maybe (Value Text)
resourceARN = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
vpcConfiguration = Maybe S3AccessPointVpcConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3AccessPointProperty where
  toResourceProperties :: S3AccessPointProperty -> ResourceProperties
toResourceProperties S3AccessPointProperty {Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: S3AccessPointProperty -> ()
alias :: S3AccessPointProperty -> Maybe (Value Text)
policy :: S3AccessPointProperty -> Maybe Object
resourceARN :: S3AccessPointProperty -> Maybe (Value Text)
vpcConfiguration :: S3AccessPointProperty
-> Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::FSx::S3AccessPointAttachment.S3AccessPoint",
         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
"Alias" (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)
alias,
                            Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Policy" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
policy,
                            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
"ResourceARN" (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)
resourceARN,
                            Key -> S3AccessPointVpcConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcConfiguration" (S3AccessPointVpcConfigurationProperty -> (Key, Value))
-> Maybe S3AccessPointVpcConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3AccessPointVpcConfigurationProperty
vpcConfiguration])}
instance JSON.ToJSON S3AccessPointProperty where
  toJSON :: S3AccessPointProperty -> Value
toJSON S3AccessPointProperty {Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: S3AccessPointProperty -> ()
alias :: S3AccessPointProperty -> Maybe (Value Text)
policy :: S3AccessPointProperty -> Maybe Object
resourceARN :: S3AccessPointProperty -> Maybe (Value Text)
vpcConfiguration :: S3AccessPointProperty
-> Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
    = [(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
"Alias" (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)
alias,
               Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Policy" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
policy,
               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
"ResourceARN" (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)
resourceARN,
               Key -> S3AccessPointVpcConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcConfiguration" (S3AccessPointVpcConfigurationProperty -> (Key, Value))
-> Maybe S3AccessPointVpcConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3AccessPointVpcConfigurationProperty
vpcConfiguration]))
instance Property "Alias" S3AccessPointProperty where
  type PropertyType "Alias" S3AccessPointProperty = Value Prelude.Text
  set :: PropertyType "Alias" S3AccessPointProperty
-> S3AccessPointProperty -> S3AccessPointProperty
set PropertyType "Alias" S3AccessPointProperty
newValue S3AccessPointProperty {Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: S3AccessPointProperty -> ()
alias :: S3AccessPointProperty -> Maybe (Value Text)
policy :: S3AccessPointProperty -> Maybe Object
resourceARN :: S3AccessPointProperty -> Maybe (Value Text)
vpcConfiguration :: S3AccessPointProperty
-> Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
    = S3AccessPointProperty {alias :: Maybe (Value Text)
alias = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Alias" S3AccessPointProperty
Value Text
newValue, Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: ()
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
instance Property "Policy" S3AccessPointProperty where
  type PropertyType "Policy" S3AccessPointProperty = JSON.Object
  set :: PropertyType "Policy" S3AccessPointProperty
-> S3AccessPointProperty -> S3AccessPointProperty
set PropertyType "Policy" S3AccessPointProperty
newValue S3AccessPointProperty {Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: S3AccessPointProperty -> ()
alias :: S3AccessPointProperty -> Maybe (Value Text)
policy :: S3AccessPointProperty -> Maybe Object
resourceARN :: S3AccessPointProperty -> Maybe (Value Text)
vpcConfiguration :: S3AccessPointProperty
-> Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
    = S3AccessPointProperty {policy :: Maybe Object
policy = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Policy" S3AccessPointProperty
newValue, Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
instance Property "ResourceARN" S3AccessPointProperty where
  type PropertyType "ResourceARN" S3AccessPointProperty = Value Prelude.Text
  set :: PropertyType "ResourceARN" S3AccessPointProperty
-> S3AccessPointProperty -> S3AccessPointProperty
set PropertyType "ResourceARN" S3AccessPointProperty
newValue S3AccessPointProperty {Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: S3AccessPointProperty -> ()
alias :: S3AccessPointProperty -> Maybe (Value Text)
policy :: S3AccessPointProperty -> Maybe Object
resourceARN :: S3AccessPointProperty -> Maybe (Value Text)
vpcConfiguration :: S3AccessPointProperty
-> Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
    = S3AccessPointProperty {resourceARN :: Maybe (Value Text)
resourceARN = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceARN" S3AccessPointProperty
Value Text
newValue, Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
instance Property "VpcConfiguration" S3AccessPointProperty where
  type PropertyType "VpcConfiguration" S3AccessPointProperty = S3AccessPointVpcConfigurationProperty
  set :: PropertyType "VpcConfiguration" S3AccessPointProperty
-> S3AccessPointProperty -> S3AccessPointProperty
set PropertyType "VpcConfiguration" S3AccessPointProperty
newValue S3AccessPointProperty {Maybe Object
Maybe (Value Text)
Maybe S3AccessPointVpcConfigurationProperty
()
haddock_workaround_ :: S3AccessPointProperty -> ()
alias :: S3AccessPointProperty -> Maybe (Value Text)
policy :: S3AccessPointProperty -> Maybe Object
resourceARN :: S3AccessPointProperty -> Maybe (Value Text)
vpcConfiguration :: S3AccessPointProperty
-> Maybe S3AccessPointVpcConfigurationProperty
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
..}
    = S3AccessPointProperty
        {vpcConfiguration :: Maybe S3AccessPointVpcConfigurationProperty
vpcConfiguration = S3AccessPointVpcConfigurationProperty
-> Maybe S3AccessPointVpcConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcConfiguration" S3AccessPointProperty
S3AccessPointVpcConfigurationProperty
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
haddock_workaround_ :: ()
alias :: Maybe (Value Text)
policy :: Maybe Object
resourceARN :: Maybe (Value Text)
..}