stratosphere-0.1.2.1: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.EIP

Description

The AWS::EC2::EIP resource allocates an Elastic IP (EIP) address and can, optionally, associate it with an Amazon EC2 instance.

Synopsis

Documentation

data EIP Source #

Full data type definition for EIP. See eip for a more convenient constructor.

Constructors

EIP 

Instances

Show EIP Source # 

Methods

showsPrec :: Int -> EIP -> ShowS #

show :: EIP -> String #

showList :: [EIP] -> ShowS #

Generic EIP Source # 

Associated Types

type Rep EIP :: * -> * #

Methods

from :: EIP -> Rep EIP x #

to :: Rep EIP x -> EIP #

ToJSON EIP Source # 

Methods

toJSON :: EIP -> Value #

toEncoding :: EIP -> Encoding #

FromJSON EIP Source # 

Methods

parseJSON :: Value -> Parser EIP #

type Rep EIP Source # 
type Rep EIP = D1 (MetaData "EIP" "Stratosphere.Resources.EIP" "stratosphere-0.1.2.1-5untC9f2D1vFh9V3wq6Ua5" False) (C1 (MetaCons "EIP" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_eIPInstanceId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_eIPDomain") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))))

eip :: EIP Source #

Constructor for EIP containing required fields as arguments.

eipInstanceId :: Lens' EIP (Maybe (Val Text)) Source #

The Instance ID of the Amazon EC2 instance that you want to associate with this Elastic IP address.

eipDomain :: Lens' EIP (Maybe (Val Text)) Source #

Set to vpc to allocate the address to your Virtual Private Cloud (VPC). No other values are supported. Note If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn attribute on this resource. For more information, see DependsOn Attribute. For more information, see AllocateAddress in the Amazon EC2 API Reference. For more information about Elastic IP Addresses in VPC, go to IP Addressing in Your VPC in the Amazon VPC User Guide.