stratosphere-0.1.3: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.ManagedPolicy

Description

AWS::IAM::ManagedPolicy creates an AWS Identity and Access Management (IAM) managed policy for your AWS account that you can use to apply permissions to IAM users, groups, and roles. For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide guide.

Synopsis

Documentation

data ManagedPolicy Source #

Full data type definition for ManagedPolicy. See managedPolicy for a more convenient constructor.

Instances

Show ManagedPolicy Source # 
Generic ManagedPolicy Source # 

Associated Types

type Rep ManagedPolicy :: * -> * #

ToJSON ManagedPolicy Source # 
FromJSON ManagedPolicy Source # 
type Rep ManagedPolicy Source # 
type Rep ManagedPolicy = D1 (MetaData "ManagedPolicy" "Stratosphere.Resources.ManagedPolicy" "stratosphere-0.1.3-HXdWlc1MCh5Gppf0ypvPw" False) (C1 (MetaCons "ManagedPolicy" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_managedPolicyDescription") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_managedPolicyGroups") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Val Text]))) (S1 (MetaSel (Just Symbol "_managedPolicyPath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))))) ((:*:) (S1 (MetaSel (Just Symbol "_managedPolicyPolicyDocument") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Object)) ((:*:) (S1 (MetaSel (Just Symbol "_managedPolicyRoles") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Val Text]))) (S1 (MetaSel (Just Symbol "_managedPolicyUsers") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Val Text])))))))

managedPolicy Source #

Constructor for ManagedPolicy containing required fields as arguments.

mpDescription :: Lens' ManagedPolicy (Maybe (Val Text)) Source #

A description of the policy. For example, you can describe the permissions that are defined in the policy.

mpGroups :: Lens' ManagedPolicy (Maybe [Val Text]) Source #

The names of groups to attach to this policy.

mpPath :: Lens' ManagedPolicy (Maybe (Val Text)) Source #

The path for the policy. By default, the path is /. For more information, see IAM Identifiers in the IAM User Guide guide.

mpPolicyDocument :: Lens' ManagedPolicy Object Source #

Policies that define the permissions for this managed policy. For more information about policy syntax, see IAM Policy Elements Reference in IAM User Guide.

mpRoles :: Lens' ManagedPolicy (Maybe [Val Text]) Source #

The names of roles to attach to this policy. Note If a policy has a Ref to a role and if a resource (such as AWS::ECS::Service) also has a Ref to the same role, add a DependsOn attribute to the resource so that the resource depends on the policy. This dependency ensures that the role's policy is available throughout the resource's lifecycle. For example, when you delete a stack with an AWS::ECS::Service resource, the DependsOn attribute ensures that the AWS::ECS::Service resource can complete its deletion before its role's policy is deleted.

mpUsers :: Lens' ManagedPolicy (Maybe [Val Text]) Source #

The names of users to attach to this policy.