module Stratosphere.S3Outposts.Endpoint (
        module Exports, Endpoint(..), mkEndpoint
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3Outposts.Endpoint.FailedReasonProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Endpoint
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-endpoint.html>
    Endpoint {Endpoint -> ()
haddock_workaround_ :: (),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-endpoint.html#cfn-s3outposts-endpoint-accesstype>
              Endpoint -> Maybe (Value Text)
accessType :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-endpoint.html#cfn-s3outposts-endpoint-customerownedipv4pool>
              Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-endpoint.html#cfn-s3outposts-endpoint-failedreason>
              Endpoint -> Maybe FailedReasonProperty
failedReason :: (Prelude.Maybe FailedReasonProperty),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-endpoint.html#cfn-s3outposts-endpoint-outpostid>
              Endpoint -> Value Text
outpostId :: (Value Prelude.Text),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-endpoint.html#cfn-s3outposts-endpoint-securitygroupid>
              Endpoint -> Value Text
securityGroupId :: (Value Prelude.Text),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-endpoint.html#cfn-s3outposts-endpoint-subnetid>
              Endpoint -> Value Text
subnetId :: (Value Prelude.Text)}
  deriving stock (Endpoint -> Endpoint -> Bool
(Endpoint -> Endpoint -> Bool)
-> (Endpoint -> Endpoint -> Bool) -> Eq Endpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Endpoint -> Endpoint -> Bool
== :: Endpoint -> Endpoint -> Bool
$c/= :: Endpoint -> Endpoint -> Bool
/= :: Endpoint -> Endpoint -> Bool
Prelude.Eq, Int -> Endpoint -> ShowS
[Endpoint] -> ShowS
Endpoint -> String
(Int -> Endpoint -> ShowS)
-> (Endpoint -> String) -> ([Endpoint] -> ShowS) -> Show Endpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Endpoint -> ShowS
showsPrec :: Int -> Endpoint -> ShowS
$cshow :: Endpoint -> String
show :: Endpoint -> String
$cshowList :: [Endpoint] -> ShowS
showList :: [Endpoint] -> ShowS
Prelude.Show)
mkEndpoint ::
  Value Prelude.Text
  -> Value Prelude.Text -> Value Prelude.Text -> Endpoint
mkEndpoint :: Value Text -> Value Text -> Value Text -> Endpoint
mkEndpoint Value Text
outpostId Value Text
securityGroupId Value Text
subnetId
  = Endpoint
      {haddock_workaround_ :: ()
haddock_workaround_ = (), outpostId :: Value Text
outpostId = Value Text
outpostId,
       securityGroupId :: Value Text
securityGroupId = Value Text
securityGroupId, subnetId :: Value Text
subnetId = Value Text
subnetId,
       accessType :: Maybe (Value Text)
accessType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       customerOwnedIpv4Pool :: Maybe (Value Text)
customerOwnedIpv4Pool = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       failedReason :: Maybe FailedReasonProperty
failedReason = Maybe FailedReasonProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Endpoint where
  toResourceProperties :: Endpoint -> ResourceProperties
toResourceProperties Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3Outposts::Endpoint",
         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
"OutpostId" 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
outpostId,
                            Key
"SecurityGroupId" 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
securityGroupId,
                            Key
"SubnetId" 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
subnetId]
                           ([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
"AccessType" (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)
accessType,
                               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
"CustomerOwnedIpv4Pool"
                                 (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)
customerOwnedIpv4Pool,
                               Key -> FailedReasonProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FailedReason" (FailedReasonProperty -> (Key, Value))
-> Maybe FailedReasonProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FailedReasonProperty
failedReason]))}
instance JSON.ToJSON Endpoint where
  toJSON :: Endpoint -> Value
toJSON Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: 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
"OutpostId" 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
outpostId,
               Key
"SecurityGroupId" 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
securityGroupId,
               Key
"SubnetId" 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
subnetId]
              ([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
"AccessType" (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)
accessType,
                  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
"CustomerOwnedIpv4Pool"
                    (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)
customerOwnedIpv4Pool,
                  Key -> FailedReasonProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FailedReason" (FailedReasonProperty -> (Key, Value))
-> Maybe FailedReasonProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FailedReasonProperty
failedReason])))
instance Property "AccessType" Endpoint where
  type PropertyType "AccessType" Endpoint = Value Prelude.Text
  set :: PropertyType "AccessType" Endpoint -> Endpoint -> Endpoint
set PropertyType "AccessType" Endpoint
newValue Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
    = Endpoint {accessType :: Maybe (Value Text)
accessType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccessType" Endpoint
Value Text
newValue, Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: ()
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
haddock_workaround_ :: ()
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
instance Property "CustomerOwnedIpv4Pool" Endpoint where
  type PropertyType "CustomerOwnedIpv4Pool" Endpoint = Value Prelude.Text
  set :: PropertyType "CustomerOwnedIpv4Pool" Endpoint
-> Endpoint -> Endpoint
set PropertyType "CustomerOwnedIpv4Pool" Endpoint
newValue Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
    = Endpoint {customerOwnedIpv4Pool :: Maybe (Value Text)
customerOwnedIpv4Pool = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomerOwnedIpv4Pool" Endpoint
Value Text
newValue, Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
instance Property "FailedReason" Endpoint where
  type PropertyType "FailedReason" Endpoint = FailedReasonProperty
  set :: PropertyType "FailedReason" Endpoint -> Endpoint -> Endpoint
set PropertyType "FailedReason" Endpoint
newValue Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
    = Endpoint {failedReason :: Maybe FailedReasonProperty
failedReason = FailedReasonProperty -> Maybe FailedReasonProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FailedReason" Endpoint
FailedReasonProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
instance Property "OutpostId" Endpoint where
  type PropertyType "OutpostId" Endpoint = Value Prelude.Text
  set :: PropertyType "OutpostId" Endpoint -> Endpoint -> Endpoint
set PropertyType "OutpostId" Endpoint
newValue Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..} = Endpoint {outpostId :: Value Text
outpostId = PropertyType "OutpostId" Endpoint
Value Text
newValue, Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
securityGroupId :: Value Text
subnetId :: Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
securityGroupId :: Value Text
subnetId :: Value Text
..}
instance Property "SecurityGroupId" Endpoint where
  type PropertyType "SecurityGroupId" Endpoint = Value Prelude.Text
  set :: PropertyType "SecurityGroupId" Endpoint -> Endpoint -> Endpoint
set PropertyType "SecurityGroupId" Endpoint
newValue Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..}
    = Endpoint {securityGroupId :: Value Text
securityGroupId = PropertyType "SecurityGroupId" Endpoint
Value Text
newValue, Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
subnetId :: Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
subnetId :: Value Text
..}
instance Property "SubnetId" Endpoint where
  type PropertyType "SubnetId" Endpoint = Value Prelude.Text
  set :: PropertyType "SubnetId" Endpoint -> Endpoint -> Endpoint
set PropertyType "SubnetId" Endpoint
newValue Endpoint {Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: Endpoint -> ()
accessType :: Endpoint -> Maybe (Value Text)
customerOwnedIpv4Pool :: Endpoint -> Maybe (Value Text)
failedReason :: Endpoint -> Maybe FailedReasonProperty
outpostId :: Endpoint -> Value Text
securityGroupId :: Endpoint -> Value Text
subnetId :: Endpoint -> Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
subnetId :: Value Text
..} = Endpoint {subnetId :: Value Text
subnetId = PropertyType "SubnetId" Endpoint
Value Text
newValue, Maybe (Value Text)
Maybe FailedReasonProperty
()
Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
haddock_workaround_ :: ()
accessType :: Maybe (Value Text)
customerOwnedIpv4Pool :: Maybe (Value Text)
failedReason :: Maybe FailedReasonProperty
outpostId :: Value Text
securityGroupId :: Value Text
..}