module Stratosphere.RolesAnywhere.Profile (
        module Exports, Profile(..), mkProfile
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RolesAnywhere.Profile.AttributeMappingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Profile
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html>
    Profile {Profile -> ()
haddock_workaround_ :: (),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-acceptrolesessionname>
             Profile -> Maybe (Value Bool)
acceptRoleSessionName :: (Prelude.Maybe (Value Prelude.Bool)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings>
             Profile -> Maybe [AttributeMappingProperty]
attributeMappings :: (Prelude.Maybe [AttributeMappingProperty]),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-durationseconds>
             Profile -> Maybe (Value Double)
durationSeconds :: (Prelude.Maybe (Value Prelude.Double)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-enabled>
             Profile -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-managedpolicyarns>
             Profile -> Maybe (ValueList Text)
managedPolicyArns :: (Prelude.Maybe (ValueList Prelude.Text)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-name>
             Profile -> Value Text
name :: (Value Prelude.Text),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-requireinstanceproperties>
             Profile -> Maybe (Value Bool)
requireInstanceProperties :: (Prelude.Maybe (Value Prelude.Bool)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-rolearns>
             Profile -> ValueList Text
roleArns :: (ValueList Prelude.Text),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-sessionpolicy>
             Profile -> Maybe (Value Text)
sessionPolicy :: (Prelude.Maybe (Value Prelude.Text)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-tags>
             Profile -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (Profile -> Profile -> Bool
(Profile -> Profile -> Bool)
-> (Profile -> Profile -> Bool) -> Eq Profile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Profile -> Profile -> Bool
== :: Profile -> Profile -> Bool
$c/= :: Profile -> Profile -> Bool
/= :: Profile -> Profile -> Bool
Prelude.Eq, Int -> Profile -> ShowS
[Profile] -> ShowS
Profile -> String
(Int -> Profile -> ShowS)
-> (Profile -> String) -> ([Profile] -> ShowS) -> Show Profile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Profile -> ShowS
showsPrec :: Int -> Profile -> ShowS
$cshow :: Profile -> String
show :: Profile -> String
$cshowList :: [Profile] -> ShowS
showList :: [Profile] -> ShowS
Prelude.Show)
mkProfile ::
  Value Prelude.Text -> ValueList Prelude.Text -> Profile
mkProfile :: Value Text -> ValueList Text -> Profile
mkProfile Value Text
name ValueList Text
roleArns
  = Profile
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, roleArns :: ValueList Text
roleArns = ValueList Text
roleArns,
       acceptRoleSessionName :: Maybe (Value Bool)
acceptRoleSessionName = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       attributeMappings :: Maybe [AttributeMappingProperty]
attributeMappings = Maybe [AttributeMappingProperty]
forall a. Maybe a
Prelude.Nothing,
       durationSeconds :: Maybe (Value Double)
durationSeconds = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       managedPolicyArns :: Maybe (ValueList Text)
managedPolicyArns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       requireInstanceProperties :: Maybe (Value Bool)
requireInstanceProperties = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       sessionPolicy :: Maybe (Value Text)
sessionPolicy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Profile where
  toResourceProperties :: Profile -> ResourceProperties
toResourceProperties Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RolesAnywhere::Profile",
         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
"RoleArns" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
roleArns]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AcceptRoleSessionName"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
acceptRoleSessionName,
                               Key -> [AttributeMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AttributeMappings" ([AttributeMappingProperty] -> (Key, Value))
-> Maybe [AttributeMappingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AttributeMappingProperty]
attributeMappings,
                               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DurationSeconds" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
durationSeconds,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
                               Key -> ValueList 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
"ManagedPolicyArns" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
managedPolicyArns,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RequireInstanceProperties"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
requireInstanceProperties,
                               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
"SessionPolicy" (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)
sessionPolicy,
                               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 Profile where
  toJSON :: Profile -> Value
toJSON Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = [(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
"RoleArns" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
roleArns]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AcceptRoleSessionName"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
acceptRoleSessionName,
                  Key -> [AttributeMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AttributeMappings" ([AttributeMappingProperty] -> (Key, Value))
-> Maybe [AttributeMappingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AttributeMappingProperty]
attributeMappings,
                  Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DurationSeconds" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
durationSeconds,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
                  Key -> ValueList 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
"ManagedPolicyArns" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
managedPolicyArns,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RequireInstanceProperties"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
requireInstanceProperties,
                  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
"SessionPolicy" (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)
sessionPolicy,
                  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 "AcceptRoleSessionName" Profile where
  type PropertyType "AcceptRoleSessionName" Profile = Value Prelude.Bool
  set :: PropertyType "AcceptRoleSessionName" Profile -> Profile -> Profile
set PropertyType "AcceptRoleSessionName" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {acceptRoleSessionName :: Maybe (Value Bool)
acceptRoleSessionName = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AcceptRoleSessionName" Profile
Value Bool
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "AttributeMappings" Profile where
  type PropertyType "AttributeMappings" Profile = [AttributeMappingProperty]
  set :: PropertyType "AttributeMappings" Profile -> Profile -> Profile
set PropertyType "AttributeMappings" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {attributeMappings :: Maybe [AttributeMappingProperty]
attributeMappings = [AttributeMappingProperty] -> Maybe [AttributeMappingProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AttributeMappingProperty]
PropertyType "AttributeMappings" Profile
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "DurationSeconds" Profile where
  type PropertyType "DurationSeconds" Profile = Value Prelude.Double
  set :: PropertyType "DurationSeconds" Profile -> Profile -> Profile
set PropertyType "DurationSeconds" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {durationSeconds :: Maybe (Value Double)
durationSeconds = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DurationSeconds" Profile
Value Double
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Enabled" Profile where
  type PropertyType "Enabled" Profile = Value Prelude.Bool
  set :: PropertyType "Enabled" Profile -> Profile -> Profile
set PropertyType "Enabled" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" Profile
Value Bool
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "ManagedPolicyArns" Profile where
  type PropertyType "ManagedPolicyArns" Profile = ValueList Prelude.Text
  set :: PropertyType "ManagedPolicyArns" Profile -> Profile -> Profile
set PropertyType "ManagedPolicyArns" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {managedPolicyArns :: Maybe (ValueList Text)
managedPolicyArns = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManagedPolicyArns" Profile
ValueList Text
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" Profile where
  type PropertyType "Name" Profile = Value Prelude.Text
  set :: PropertyType "Name" Profile -> Profile -> Profile
set PropertyType "Name" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Profile {name :: Value Text
name = PropertyType "Name" Profile
Value Text
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "RequireInstanceProperties" Profile where
  type PropertyType "RequireInstanceProperties" Profile = Value Prelude.Bool
  set :: PropertyType "RequireInstanceProperties" Profile
-> Profile -> Profile
set PropertyType "RequireInstanceProperties" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {requireInstanceProperties :: Maybe (Value Bool)
requireInstanceProperties = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RequireInstanceProperties" Profile
Value Bool
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "RoleArns" Profile where
  type PropertyType "RoleArns" Profile = ValueList Prelude.Text
  set :: PropertyType "RoleArns" Profile -> Profile -> Profile
set PropertyType "RoleArns" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Profile {roleArns :: ValueList Text
roleArns = PropertyType "RoleArns" Profile
ValueList Text
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "SessionPolicy" Profile where
  type PropertyType "SessionPolicy" Profile = Value Prelude.Text
  set :: PropertyType "SessionPolicy" Profile -> Profile -> Profile
set PropertyType "SessionPolicy" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {sessionPolicy :: Maybe (Value Text)
sessionPolicy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SessionPolicy" Profile
Value Text
newValue, Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Profile where
  type PropertyType "Tags" Profile = [Tag]
  set :: PropertyType "Tags" Profile -> Profile -> Profile
set PropertyType "Tags" Profile
newValue Profile {Maybe [Tag]
Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: Profile -> ()
acceptRoleSessionName :: Profile -> Maybe (Value Bool)
attributeMappings :: Profile -> Maybe [AttributeMappingProperty]
durationSeconds :: Profile -> Maybe (Value Double)
enabled :: Profile -> Maybe (Value Bool)
managedPolicyArns :: Profile -> Maybe (ValueList Text)
name :: Profile -> Value Text
requireInstanceProperties :: Profile -> Maybe (Value Bool)
roleArns :: Profile -> ValueList Text
sessionPolicy :: Profile -> Maybe (Value Text)
tags :: Profile -> Maybe [Tag]
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Profile {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" Profile
newValue, Maybe [AttributeMappingProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
haddock_workaround_ :: ()
acceptRoleSessionName :: Maybe (Value Bool)
attributeMappings :: Maybe [AttributeMappingProperty]
durationSeconds :: Maybe (Value Double)
enabled :: Maybe (Value Bool)
managedPolicyArns :: Maybe (ValueList Text)
name :: Value Text
requireInstanceProperties :: Maybe (Value Bool)
roleArns :: ValueList Text
sessionPolicy :: Maybe (Value Text)
..}