module Stratosphere.IAM.Role (
        module Exports, Role(..), mkRole
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IAM.Role.PolicyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Role
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html>
    Role {Role -> ()
haddock_workaround_ :: (),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-assumerolepolicydocument>
          Role -> Object
assumeRolePolicyDocument :: JSON.Object,
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-description>
          Role -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-managedpolicyarns>
          Role -> Maybe (ValueList Text)
managedPolicyArns :: (Prelude.Maybe (ValueList Prelude.Text)),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-maxsessionduration>
          Role -> Maybe (Value Integer)
maxSessionDuration :: (Prelude.Maybe (Value Prelude.Integer)),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-path>
          Role -> Maybe (Value Text)
path :: (Prelude.Maybe (Value Prelude.Text)),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-permissionsboundary>
          Role -> Maybe (Value Text)
permissionsBoundary :: (Prelude.Maybe (Value Prelude.Text)),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-policies>
          Role -> Maybe [PolicyProperty]
policies :: (Prelude.Maybe [PolicyProperty]),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-rolename>
          Role -> Maybe (Value Text)
roleName :: (Prelude.Maybe (Value Prelude.Text)),
          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags>
          Role -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (Role -> Role -> Bool
(Role -> Role -> Bool) -> (Role -> Role -> Bool) -> Eq Role
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Role -> Role -> Bool
== :: Role -> Role -> Bool
$c/= :: Role -> Role -> Bool
/= :: Role -> Role -> Bool
Prelude.Eq, Int -> Role -> ShowS
[Role] -> ShowS
Role -> String
(Int -> Role -> ShowS)
-> (Role -> String) -> ([Role] -> ShowS) -> Show Role
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Role -> ShowS
showsPrec :: Int -> Role -> ShowS
$cshow :: Role -> String
show :: Role -> String
$cshowList :: [Role] -> ShowS
showList :: [Role] -> ShowS
Prelude.Show)
mkRole :: JSON.Object -> Role
mkRole :: Object -> Role
mkRole Object
assumeRolePolicyDocument
  = Role
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       assumeRolePolicyDocument :: Object
assumeRolePolicyDocument = Object
assumeRolePolicyDocument,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, managedPolicyArns :: Maybe (ValueList Text)
managedPolicyArns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       maxSessionDuration :: Maybe (Value Integer)
maxSessionDuration = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, path :: Maybe (Value Text)
path = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       permissionsBoundary :: Maybe (Value Text)
permissionsBoundary = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, policies :: Maybe [PolicyProperty]
policies = Maybe [PolicyProperty]
forall a. Maybe a
Prelude.Nothing,
       roleName :: Maybe (Value Text)
roleName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Role where
  toResourceProperties :: Role -> ResourceProperties
toResourceProperties Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IAM::Role", 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
"AssumeRolePolicyDocument" 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..= Object
assumeRolePolicyDocument]
                           ([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
"Description" (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)
description,
                               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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxSessionDuration" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxSessionDuration,
                               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
"Path" (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)
path,
                               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
"PermissionsBoundary" (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)
permissionsBoundary,
                               Key -> [PolicyProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Policies" ([PolicyProperty] -> (Key, Value))
-> Maybe [PolicyProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PolicyProperty]
policies,
                               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
"RoleName" (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)
roleName,
                               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 Role where
  toJSON :: Role -> Value
toJSON Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: 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
"AssumeRolePolicyDocument" 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..= Object
assumeRolePolicyDocument]
              ([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
"Description" (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)
description,
                  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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxSessionDuration" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxSessionDuration,
                  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
"Path" (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)
path,
                  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
"PermissionsBoundary" (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)
permissionsBoundary,
                  Key -> [PolicyProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Policies" ([PolicyProperty] -> (Key, Value))
-> Maybe [PolicyProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PolicyProperty]
policies,
                  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
"RoleName" (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)
roleName,
                  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 "AssumeRolePolicyDocument" Role where
  type PropertyType "AssumeRolePolicyDocument" Role = JSON.Object
  set :: PropertyType "AssumeRolePolicyDocument" Role -> Role -> Role
set PropertyType "AssumeRolePolicyDocument" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Role {assumeRolePolicyDocument :: Object
assumeRolePolicyDocument = Object
PropertyType "AssumeRolePolicyDocument" Role
newValue, Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Description" Role where
  type PropertyType "Description" Role = Value Prelude.Text
  set :: PropertyType "Description" Role -> Role -> Role
set PropertyType "Description" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Role {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Role
Value Text
newValue, Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "ManagedPolicyArns" Role where
  type PropertyType "ManagedPolicyArns" Role = ValueList Prelude.Text
  set :: PropertyType "ManagedPolicyArns" Role -> Role -> Role
set PropertyType "ManagedPolicyArns" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Role {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" Role
ValueList Text
newValue, Maybe [Tag]
Maybe [PolicyProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "MaxSessionDuration" Role where
  type PropertyType "MaxSessionDuration" Role = Value Prelude.Integer
  set :: PropertyType "MaxSessionDuration" Role -> Role -> Role
set PropertyType "MaxSessionDuration" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Role {maxSessionDuration :: Maybe (Value Integer)
maxSessionDuration = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxSessionDuration" Role
Value Integer
newValue, Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Path" Role where
  type PropertyType "Path" Role = Value Prelude.Text
  set :: PropertyType "Path" Role -> Role -> Role
set PropertyType "Path" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Role {path :: Maybe (Value Text)
path = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Path" Role
Value Text
newValue, Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "PermissionsBoundary" Role where
  type PropertyType "PermissionsBoundary" Role = Value Prelude.Text
  set :: PropertyType "PermissionsBoundary" Role -> Role -> Role
set PropertyType "PermissionsBoundary" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Role {permissionsBoundary :: Maybe (Value Text)
permissionsBoundary = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PermissionsBoundary" Role
Value Text
newValue, Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Policies" Role where
  type PropertyType "Policies" Role = [PolicyProperty]
  set :: PropertyType "Policies" Role -> Role -> Role
set PropertyType "Policies" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Role {policies :: Maybe [PolicyProperty]
policies = [PolicyProperty] -> Maybe [PolicyProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [PolicyProperty]
PropertyType "Policies" Role
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "RoleName" Role where
  type PropertyType "RoleName" Role = Value Prelude.Text
  set :: PropertyType "RoleName" Role -> Role -> Role
set PropertyType "RoleName" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Role {roleName :: Maybe (Value Text)
roleName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleName" Role
Value Text
newValue, Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
tags :: Maybe [Tag]
..}
instance Property "Tags" Role where
  type PropertyType "Tags" Role = [Tag]
  set :: PropertyType "Tags" Role -> Role -> Role
set PropertyType "Tags" Role
newValue Role {Maybe [Tag]
Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: Role -> ()
assumeRolePolicyDocument :: Role -> Object
description :: Role -> Maybe (Value Text)
managedPolicyArns :: Role -> Maybe (ValueList Text)
maxSessionDuration :: Role -> Maybe (Value Integer)
path :: Role -> Maybe (Value Text)
permissionsBoundary :: Role -> Maybe (Value Text)
policies :: Role -> Maybe [PolicyProperty]
roleName :: Role -> Maybe (Value Text)
tags :: Role -> Maybe [Tag]
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Role {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" Role
newValue, Maybe [PolicyProperty]
Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
haddock_workaround_ :: ()
assumeRolePolicyDocument :: Object
description :: Maybe (Value Text)
managedPolicyArns :: Maybe (ValueList Text)
maxSessionDuration :: Maybe (Value Integer)
path :: Maybe (Value Text)
permissionsBoundary :: Maybe (Value Text)
policies :: Maybe [PolicyProperty]
roleName :: Maybe (Value Text)
..}