stratosphere-0.1.2.1: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.Policy

Description

The AWS::IAM::Policy resource associates an IAM policy with IAM users, roles, or groups. For more information about IAM policies, see Overview of IAM Policies in the IAM User Guide guide.

Synopsis

Documentation

data Policy Source #

Full data type definition for Policy. See policy for a more convenient constructor.

Instances

Show Policy Source # 
Generic Policy Source # 

Associated Types

type Rep Policy :: * -> * #

Methods

from :: Policy -> Rep Policy x #

to :: Rep Policy x -> Policy #

ToJSON Policy Source # 
FromJSON Policy Source # 
type Rep Policy Source # 
type Rep Policy = D1 (MetaData "Policy" "Stratosphere.Resources.Policy" "stratosphere-0.1.2.1-5untC9f2D1vFh9V3wq6Ua5" False) (C1 (MetaCons "Policy" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_policyGroups") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Val Text]))) (S1 (MetaSel (Just Symbol "_policyPolicyDocument") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Object))) ((:*:) (S1 (MetaSel (Just Symbol "_policyPolicyName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Val Text))) ((:*:) (S1 (MetaSel (Just Symbol "_policyRoles") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Val Text]))) (S1 (MetaSel (Just Symbol "_policyUsers") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Val Text])))))))

policy Source #

Constructor for Policy containing required fields as arguments.

pGroups :: Lens' Policy (Maybe [Val Text]) Source #

The names of groups to which you want to add the policy.

pPolicyDocument :: Lens' Policy Object Source #

A policy document that contains permissions to add to the specified users or groups.

pPolicyName :: Lens' Policy (Val Text) Source #

The name of the policy. If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name.

pRoles :: Lens' Policy (Maybe [Val Text]) Source #

The names of AWS::IAM::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.

pUsers :: Lens' Policy (Maybe [Val Text]) Source #

The names of users for whom you want to add the policy.