amazonka-cloudformation-1.3.3.1: Amazon CloudFormation SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudFormation

Contents

Description

AWS CloudFormation

AWS CloudFormation enables you to create and manage AWS infrastructure deployments predictably and repeatedly. AWS CloudFormation helps you leverage AWS products such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, highly scalable, cost effective applications without worrying about creating and configuring the underlying AWS infrastructure.

With AWS CloudFormation, you declare all of your resources and dependencies in a template file. The template defines a collection of resources as a single unit called a stack. AWS CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you.

For more information about this product, go to the CloudFormation Product Page.

Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/.

See: AWS API Reference

Synopsis

Service Configuration

cloudFormation :: Service Source

API version '2010-05-15' of the Amazon CloudFormation SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by CloudFormation.

InsufficientCapabilitiesException

_InsufficientCapabilitiesException :: AsError a => Getting (First ServiceError) a ServiceError Source

The template contains resources with capabilities that were not specified in the Capabilities parameter.

AlreadyExistsException

_AlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError Source

Resource with the name requested already exists.

LimitExceededException

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source

Quota for the resource has already been reached.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

DeleteStack

UpdateStack

GetTemplateSummary

ListStackResources (Paginated)

GetStackPolicy

DescribeStacks (Paginated)

ValidateTemplate

CancelUpdateStack

DescribeStackEvents (Paginated)

SignalResource

SetStackPolicy

ListStacks (Paginated)

DescribeAccountLimits

DescribeStackResources

CreateStack

EstimateTemplateCost

GetTemplate

DescribeStackResource

Types

Capability

OnFailure

ResourceSignalStatus

ResourceStatus

StackStatus

AccountLimit

accountLimit :: AccountLimit Source

Creates a value of AccountLimit with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

alValue :: Lens' AccountLimit (Maybe Int) Source

The value that is associated with the account limit name.

alName :: Lens' AccountLimit (Maybe Text) Source

The name of the account limit. Currently, the only account limit is StackLimit.

Output

data Output Source

The Output data type.

See: output smart constructor.

output :: Output Source

Creates a value of Output with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

oOutputValue :: Lens' Output (Maybe Text) Source

The value associated with the output.

oOutputKey :: Lens' Output (Maybe Text) Source

The key associated with the output.

oDescription :: Lens' Output (Maybe Text) Source

User defined description associated with the output.

Parameter

parameter :: Parameter Source

Creates a value of Parameter with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

pParameterValue :: Lens' Parameter (Maybe Text) Source

The value associated with the parameter.

pParameterKey :: Lens' Parameter (Maybe Text) Source

The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.

pUsePreviousValue :: Lens' Parameter (Maybe Bool) Source

During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify true, do not specify a parameter value.

ParameterConstraints

data ParameterConstraints Source

A set of criteria that AWS CloudFormation uses to validate parameter values. Although other constraints might be defined in the stack template, AWS CloudFormation returns only the AllowedValues property.

See: parameterConstraints smart constructor.

parameterConstraints :: ParameterConstraints Source

Creates a value of ParameterConstraints with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

pcAllowedValues :: Lens' ParameterConstraints [Text] Source

A list of values that are permitted for a parameter.

ParameterDeclaration

parameterDeclaration :: ParameterDeclaration Source

Creates a value of ParameterDeclaration with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

pdParameterKey :: Lens' ParameterDeclaration (Maybe Text) Source

The name that is associated with the parameter.

pdParameterConstraints :: Lens' ParameterDeclaration (Maybe ParameterConstraints) Source

The criteria that AWS CloudFormation uses to validate parameter values.

pdDefaultValue :: Lens' ParameterDeclaration (Maybe Text) Source

The default value of the parameter.

pdNoEcho :: Lens' ParameterDeclaration (Maybe Bool) Source

Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console.

pdDescription :: Lens' ParameterDeclaration (Maybe Text) Source

The description that is associate with the parameter.

Stack

data Stack Source

The Stack data type.

See: stack smart constructor.

sDisableRollback :: Lens' Stack (Maybe Bool) Source

Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback

sLastUpdatedTime :: Lens' Stack (Maybe UTCTime) Source

The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

sNotificationARNs :: Lens' Stack [Text] Source

SNS topic ARNs to which stack related events are published.

sStackStatusReason :: Lens' Stack (Maybe Text) Source

Success/failure message associated with the stack status.

sOutputs :: Lens' Stack [Output] Source

A list of output structures.

sParameters :: Lens' Stack [Parameter] Source

A list of Parameter structures.

sStackId :: Lens' Stack (Maybe Text) Source

Unique identifier of the stack.

sDescription :: Lens' Stack (Maybe Text) Source

A user-defined description associated with the stack.

sCapabilities :: Lens' Stack [Capability] Source

The capabilities allowed in the stack.

sTags :: Lens' Stack [Tag] Source

A list of Tags that specify cost allocation information for the stack.

sTimeoutInMinutes :: Lens' Stack (Maybe Natural) Source

The amount of time within which stack creation should complete.

sStackName :: Lens' Stack Text Source

The name associated with the stack.

sCreationTime :: Lens' Stack UTCTime Source

The time at which the stack was created.

sStackStatus :: Lens' Stack StackStatus Source

Current status of the stack.

StackEvent

stackEvent Source

Creates a value of StackEvent with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

seLogicalResourceId :: Lens' StackEvent (Maybe Text) Source

The logical name of the resource specified in the template.

sePhysicalResourceId :: Lens' StackEvent (Maybe Text) Source

The name or unique identifier associated with the physical instance of the resource.

seResourceType :: Lens' StackEvent (Maybe Text) Source

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

seResourceStatusReason :: Lens' StackEvent (Maybe Text) Source

Success/failure message associated with the resource.

seResourceProperties :: Lens' StackEvent (Maybe Text) Source

BLOB of the properties used to create the resource.

seResourceStatus :: Lens' StackEvent (Maybe ResourceStatus) Source

Current status of the resource.

seStackId :: Lens' StackEvent Text Source

The unique ID name of the instance of the stack.

seEventId :: Lens' StackEvent Text Source

The unique ID of this event.

seStackName :: Lens' StackEvent Text Source

The name associated with a stack.

seTimestamp :: Lens' StackEvent UTCTime Source

Time the status was updated.

StackResource

srPhysicalResourceId :: Lens' StackResource (Maybe Text) Source

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

srResourceStatusReason :: Lens' StackResource (Maybe Text) Source

Success/failure message associated with the resource.

srStackId :: Lens' StackResource (Maybe Text) Source

Unique identifier of the stack.

srDescription :: Lens' StackResource (Maybe Text) Source

User defined description associated with the resource.

srStackName :: Lens' StackResource (Maybe Text) Source

The name associated with the stack.

srLogicalResourceId :: Lens' StackResource Text Source

The logical name of the resource specified in the template.

srResourceType :: Lens' StackResource Text Source

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

srTimestamp :: Lens' StackResource UTCTime Source

Time the status was updated.

srResourceStatus :: Lens' StackResource ResourceStatus Source

Current status of the resource.

StackResourceDetail

srdPhysicalResourceId :: Lens' StackResourceDetail (Maybe Text) Source

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

srdResourceStatusReason :: Lens' StackResourceDetail (Maybe Text) Source

Success/failure message associated with the resource.

srdMetadata :: Lens' StackResourceDetail (Maybe Text) Source

The JSON format content of the Metadata attribute declared for the resource. For more information, see Metadata Attribute in the AWS CloudFormation User Guide.

srdStackId :: Lens' StackResourceDetail (Maybe Text) Source

Unique identifier of the stack.

srdDescription :: Lens' StackResourceDetail (Maybe Text) Source

User defined description associated with the resource.

srdStackName :: Lens' StackResourceDetail (Maybe Text) Source

The name associated with the stack.

srdLogicalResourceId :: Lens' StackResourceDetail Text Source

The logical name of the resource specified in the template.

srdResourceType :: Lens' StackResourceDetail Text Source

Type of resource. ((For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

StackResourceSummary

srsPhysicalResourceId :: Lens' StackResourceSummary (Maybe Text) Source

The name or unique identifier that corresponds to a physical instance ID of the resource.

srsResourceStatusReason :: Lens' StackResourceSummary (Maybe Text) Source

Success/failure message associated with the resource.

srsLogicalResourceId :: Lens' StackResourceSummary Text Source

The logical name of the resource specified in the template.

srsResourceType :: Lens' StackResourceSummary Text Source

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

StackSummary

stackSummary Source

Creates a value of StackSummary with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ssLastUpdatedTime :: Lens' StackSummary (Maybe UTCTime) Source

The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

ssStackStatusReason :: Lens' StackSummary (Maybe Text) Source

Success/Failure message associated with the stack status.

ssTemplateDescription :: Lens' StackSummary (Maybe Text) Source

The template description of the template used to create the stack.

ssDeletionTime :: Lens' StackSummary (Maybe UTCTime) Source

The time the stack was deleted.

ssStackId :: Lens' StackSummary (Maybe Text) Source

Unique stack identifier.

ssStackName :: Lens' StackSummary Text Source

The name associated with the stack.

ssCreationTime :: Lens' StackSummary UTCTime Source

The time the stack was created.

ssStackStatus :: Lens' StackSummary StackStatus Source

The current status of the stack.

Tag

data Tag Source

The Tag type is used by CreateStack in the Tags parameter. It allows you to specify a key/value pair that can be used to store information related to cost allocation for an AWS CloudFormation stack.

See: tag smart constructor.

tag :: Tag Source

Creates a value of Tag with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tagValue :: Lens' Tag (Maybe Text) Source

Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

tagKey :: Lens' Tag (Maybe Text) Source

Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: 'aws:'.

TemplateParameter

templateParameter :: TemplateParameter Source

Creates a value of TemplateParameter with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tpParameterKey :: Lens' TemplateParameter (Maybe Text) Source

The name associated with the parameter.

tpDefaultValue :: Lens' TemplateParameter (Maybe Text) Source

The default value associated with the parameter.

tpNoEcho :: Lens' TemplateParameter (Maybe Bool) Source

Flag indicating whether the parameter should be displayed as plain text in logs and UIs.

tpDescription :: Lens' TemplateParameter (Maybe Text) Source

User defined description associated with the parameter.