stratosphere-0.1.0: 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.

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.