stratosphere-0.2.0: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.VPC

Description

Creates a Virtual Private Cloud (VPC) with the CIDR block that you specify.

Synopsis

Documentation

data VPC Source #

Full data type definition for VPC. See vpc for a more convenient constructor.

Instances

Show VPC Source # 

Methods

showsPrec :: Int -> VPC -> ShowS #

show :: VPC -> String #

showList :: [VPC] -> ShowS #

Generic VPC Source # 

Associated Types

type Rep VPC :: * -> * #

Methods

from :: VPC -> Rep VPC x #

to :: Rep VPC x -> VPC #

ToJSON VPC Source # 
FromJSON VPC Source # 
type Rep VPC Source # 
type Rep VPC = D1 (MetaData "VPC" "Stratosphere.Resources.VPC" "stratosphere-0.2.0-B1WeL9cnxuQ3qer3csMa6f" False) (C1 (MetaCons "VPC" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_vPCCidrBlock") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Val Text))) (S1 (MetaSel (Just Symbol "_vPCEnableDnsSupport") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Bool'))))) ((:*:) (S1 (MetaSel (Just Symbol "_vPCEnableDnsHostnames") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Bool')))) ((:*:) (S1 (MetaSel (Just Symbol "_vPCInstanceTenancy") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_vPCTags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [ResourceTag])))))))

vpc Source #

Arguments

:: Val Text

vpcCidrBlock

-> VPC 

Constructor for VPC containing required fields as arguments.

vpcCidrBlock :: Lens' VPC (Val Text) Source #

The CIDR block you want the VPC to cover. For example: "10.0.0.0/16".

vpcEnableDnsSupport :: Lens' VPC (Maybe (Val Bool')) Source #

Specifies whether DNS resolution is supported for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not. By default the value is set to true.

vpcEnableDnsHostnames :: Lens' VPC (Maybe (Val Bool')) Source #

Specifies whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not. You can only set EnableDnsHostnames to true if you also set the EnableDnsSupport attribute to true. By default, the value is set to false.

vpcInstanceTenancy :: Lens' VPC (Maybe (Val Text)) Source #

The allowed tenancy of instances launched into the VPC. "default": Instances can be launched with any tenancy. "dedicated": Any instance launched into the VPC will automatically be dedicated, regardless of the tenancy option you specify when you launch the instance.

vpcTags :: Lens' VPC (Maybe [ResourceTag]) Source #

An arbitrary set of tags (key–value pairs) for this VPC.