module Stratosphere.CodeArtifact.PackageGroup.OriginConfigurationProperty (
module Exports, OriginConfigurationProperty(..),
mkOriginConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodeArtifact.PackageGroup.RestrictionsProperty as Exports
import Stratosphere.ResourceProperties
data OriginConfigurationProperty
=
OriginConfigurationProperty {OriginConfigurationProperty -> ()
haddock_workaround_ :: (),
OriginConfigurationProperty -> RestrictionsProperty
restrictions :: RestrictionsProperty}
deriving stock (OriginConfigurationProperty -> OriginConfigurationProperty -> Bool
(OriginConfigurationProperty
-> OriginConfigurationProperty -> Bool)
-> (OriginConfigurationProperty
-> OriginConfigurationProperty -> Bool)
-> Eq OriginConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OriginConfigurationProperty -> OriginConfigurationProperty -> Bool
== :: OriginConfigurationProperty -> OriginConfigurationProperty -> Bool
$c/= :: OriginConfigurationProperty -> OriginConfigurationProperty -> Bool
/= :: OriginConfigurationProperty -> OriginConfigurationProperty -> Bool
Prelude.Eq, Int -> OriginConfigurationProperty -> ShowS
[OriginConfigurationProperty] -> ShowS
OriginConfigurationProperty -> String
(Int -> OriginConfigurationProperty -> ShowS)
-> (OriginConfigurationProperty -> String)
-> ([OriginConfigurationProperty] -> ShowS)
-> Show OriginConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OriginConfigurationProperty -> ShowS
showsPrec :: Int -> OriginConfigurationProperty -> ShowS
$cshow :: OriginConfigurationProperty -> String
show :: OriginConfigurationProperty -> String
$cshowList :: [OriginConfigurationProperty] -> ShowS
showList :: [OriginConfigurationProperty] -> ShowS
Prelude.Show)
mkOriginConfigurationProperty ::
RestrictionsProperty -> OriginConfigurationProperty
mkOriginConfigurationProperty :: RestrictionsProperty -> OriginConfigurationProperty
mkOriginConfigurationProperty RestrictionsProperty
restrictions
= OriginConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), restrictions :: RestrictionsProperty
restrictions = RestrictionsProperty
restrictions}
instance ToResourceProperties OriginConfigurationProperty where
toResourceProperties :: OriginConfigurationProperty -> ResourceProperties
toResourceProperties OriginConfigurationProperty {()
RestrictionsProperty
haddock_workaround_ :: OriginConfigurationProperty -> ()
restrictions :: OriginConfigurationProperty -> RestrictionsProperty
haddock_workaround_ :: ()
restrictions :: RestrictionsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeArtifact::PackageGroup.OriginConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Restrictions" Key -> RestrictionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RestrictionsProperty
restrictions]}
instance JSON.ToJSON OriginConfigurationProperty where
toJSON :: OriginConfigurationProperty -> Value
toJSON OriginConfigurationProperty {()
RestrictionsProperty
haddock_workaround_ :: OriginConfigurationProperty -> ()
restrictions :: OriginConfigurationProperty -> RestrictionsProperty
haddock_workaround_ :: ()
restrictions :: RestrictionsProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Restrictions" Key -> RestrictionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RestrictionsProperty
restrictions]
instance Property "Restrictions" OriginConfigurationProperty where
type PropertyType "Restrictions" OriginConfigurationProperty = RestrictionsProperty
set :: PropertyType "Restrictions" OriginConfigurationProperty
-> OriginConfigurationProperty -> OriginConfigurationProperty
set PropertyType "Restrictions" OriginConfigurationProperty
newValue OriginConfigurationProperty {()
RestrictionsProperty
haddock_workaround_ :: OriginConfigurationProperty -> ()
restrictions :: OriginConfigurationProperty -> RestrictionsProperty
haddock_workaround_ :: ()
restrictions :: RestrictionsProperty
..}
= OriginConfigurationProperty {restrictions :: RestrictionsProperty
restrictions = PropertyType "Restrictions" OriginConfigurationProperty
RestrictionsProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}