module Stratosphere.CodeGuruReviewer.RepositoryAssociation (
RepositoryAssociation(..), mkRepositoryAssociation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data RepositoryAssociation
=
RepositoryAssociation {RepositoryAssociation -> ()
haddock_workaround_ :: (),
RepositoryAssociation -> Maybe (Value Text)
bucketName :: (Prelude.Maybe (Value Prelude.Text)),
RepositoryAssociation -> Maybe (Value Text)
connectionArn :: (Prelude.Maybe (Value Prelude.Text)),
RepositoryAssociation -> Value Text
name :: (Value Prelude.Text),
RepositoryAssociation -> Maybe (Value Text)
owner :: (Prelude.Maybe (Value Prelude.Text)),
RepositoryAssociation -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
RepositoryAssociation -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (RepositoryAssociation -> RepositoryAssociation -> Bool
(RepositoryAssociation -> RepositoryAssociation -> Bool)
-> (RepositoryAssociation -> RepositoryAssociation -> Bool)
-> Eq RepositoryAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepositoryAssociation -> RepositoryAssociation -> Bool
== :: RepositoryAssociation -> RepositoryAssociation -> Bool
$c/= :: RepositoryAssociation -> RepositoryAssociation -> Bool
/= :: RepositoryAssociation -> RepositoryAssociation -> Bool
Prelude.Eq, Int -> RepositoryAssociation -> ShowS
[RepositoryAssociation] -> ShowS
RepositoryAssociation -> String
(Int -> RepositoryAssociation -> ShowS)
-> (RepositoryAssociation -> String)
-> ([RepositoryAssociation] -> ShowS)
-> Show RepositoryAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RepositoryAssociation -> ShowS
showsPrec :: Int -> RepositoryAssociation -> ShowS
$cshow :: RepositoryAssociation -> String
show :: RepositoryAssociation -> String
$cshowList :: [RepositoryAssociation] -> ShowS
showList :: [RepositoryAssociation] -> ShowS
Prelude.Show)
mkRepositoryAssociation ::
Value Prelude.Text -> Value Prelude.Text -> RepositoryAssociation
mkRepositoryAssociation :: Value Text -> Value Text -> RepositoryAssociation
mkRepositoryAssociation Value Text
name Value Text
type'
= RepositoryAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, type' :: Value Text
type' = Value Text
type',
bucketName :: Maybe (Value Text)
bucketName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, connectionArn :: Maybe (Value Text)
connectionArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
owner :: Maybe (Value Text)
owner = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RepositoryAssociation where
toResourceProperties :: RepositoryAssociation -> ResourceProperties
toResourceProperties RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeGuruReviewer::RepositoryAssociation",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"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 -> 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
"BucketName" (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)
bucketName,
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
"ConnectionArn" (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)
connectionArn,
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
"Owner" (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)
owner,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON RepositoryAssociation where
toJSON :: RepositoryAssociation -> Value
toJSON RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
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
"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 -> 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
"BucketName" (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)
bucketName,
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
"ConnectionArn" (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)
connectionArn,
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
"Owner" (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)
owner,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "BucketName" RepositoryAssociation where
type PropertyType "BucketName" RepositoryAssociation = Value Prelude.Text
set :: PropertyType "BucketName" RepositoryAssociation
-> RepositoryAssociation -> RepositoryAssociation
set PropertyType "BucketName" RepositoryAssociation
newValue RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= RepositoryAssociation {bucketName :: Maybe (Value Text)
bucketName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BucketName" RepositoryAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "ConnectionArn" RepositoryAssociation where
type PropertyType "ConnectionArn" RepositoryAssociation = Value Prelude.Text
set :: PropertyType "ConnectionArn" RepositoryAssociation
-> RepositoryAssociation -> RepositoryAssociation
set PropertyType "ConnectionArn" RepositoryAssociation
newValue RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= RepositoryAssociation {connectionArn :: Maybe (Value Text)
connectionArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectionArn" RepositoryAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Name" RepositoryAssociation where
type PropertyType "Name" RepositoryAssociation = Value Prelude.Text
set :: PropertyType "Name" RepositoryAssociation
-> RepositoryAssociation -> RepositoryAssociation
set PropertyType "Name" RepositoryAssociation
newValue RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= RepositoryAssociation {name :: Value Text
name = PropertyType "Name" RepositoryAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Owner" RepositoryAssociation where
type PropertyType "Owner" RepositoryAssociation = Value Prelude.Text
set :: PropertyType "Owner" RepositoryAssociation
-> RepositoryAssociation -> RepositoryAssociation
set PropertyType "Owner" RepositoryAssociation
newValue RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= RepositoryAssociation {owner :: Maybe (Value Text)
owner = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Owner" RepositoryAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Tags" RepositoryAssociation where
type PropertyType "Tags" RepositoryAssociation = [Tag]
set :: PropertyType "Tags" RepositoryAssociation
-> RepositoryAssociation -> RepositoryAssociation
set PropertyType "Tags" RepositoryAssociation
newValue RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= RepositoryAssociation {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" RepositoryAssociation
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" RepositoryAssociation where
type PropertyType "Type" RepositoryAssociation = Value Prelude.Text
set :: PropertyType "Type" RepositoryAssociation
-> RepositoryAssociation -> RepositoryAssociation
set PropertyType "Type" RepositoryAssociation
newValue RepositoryAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RepositoryAssociation -> ()
bucketName :: RepositoryAssociation -> Maybe (Value Text)
connectionArn :: RepositoryAssociation -> Maybe (Value Text)
name :: RepositoryAssociation -> Value Text
owner :: RepositoryAssociation -> Maybe (Value Text)
tags :: RepositoryAssociation -> Maybe [Tag]
type' :: RepositoryAssociation -> Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= RepositoryAssociation {type' :: Value Text
type' = PropertyType "Type" RepositoryAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
bucketName :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
name :: Value Text
owner :: Maybe (Value Text)
tags :: Maybe [Tag]
..}