Skip to content

Commit

Permalink
Regenerating amazonka-cloudformation from latest service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed Nov 29, 2016
1 parent d930be6 commit ce82485
Show file tree
Hide file tree
Showing 21 changed files with 682 additions and 107 deletions.
2 changes: 2 additions & 0 deletions amazonka-cloudformation/amazonka-cloudformation.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ library
, Network.AWS.CloudFormation.GetTemplate
, Network.AWS.CloudFormation.GetTemplateSummary
, Network.AWS.CloudFormation.ListChangeSets
, Network.AWS.CloudFormation.ListExports
, Network.AWS.CloudFormation.ListImports
, Network.AWS.CloudFormation.ListStackResources
, Network.AWS.CloudFormation.ListStacks
, Network.AWS.CloudFormation.SetStackPolicy
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
32 changes: 29 additions & 3 deletions amazonka-cloudformation/gen/Network/AWS/CloudFormation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
--
-- __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.
-- AWS CloudFormation allows you to create and manage AWS infrastructure deployments predictably and repeatedly. You can use AWS CloudFormation to leverage AWS products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly scalable, cost-effective applications without creating or 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 <http://aws.amazon.com/cloudformation/ CloudFormation Product Page> .
-- For more information about AWS CloudFormation, see the <http://aws.amazon.com/cloudformation/ AWS 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://docs.aws.amazon.com/ http://docs.aws.amazon.com/> .
-- 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://docs.aws.amazon.com/http:/docs.aws.amazon.com/ http://docs.aws.amazon.com/> .
--
module Network.AWS.CloudFormation
(
Expand Down Expand Up @@ -59,6 +59,9 @@ module Network.AWS.CloudFormation
-- ** StackDeleteComplete
, stackDeleteComplete

-- ** ChangeSetCreateComplete
, changeSetCreateComplete

-- * Operations
-- $operations

Expand Down Expand Up @@ -107,6 +110,9 @@ module Network.AWS.CloudFormation
-- ** SetStackPolicy
, module Network.AWS.CloudFormation.SetStackPolicy

-- ** ListImports
, module Network.AWS.CloudFormation.ListImports

-- ** ListStacks (Paginated)
, module Network.AWS.CloudFormation.ListStacks

Expand All @@ -125,6 +131,9 @@ module Network.AWS.CloudFormation
-- ** DeleteChangeSet
, module Network.AWS.CloudFormation.DeleteChangeSet

-- ** ListExports
, module Network.AWS.CloudFormation.ListExports

-- ** GetTemplate
, module Network.AWS.CloudFormation.GetTemplate

Expand All @@ -145,6 +154,9 @@ module Network.AWS.CloudFormation
-- ** ChangeSetStatus
, ChangeSetStatus (..)

-- ** ChangeSetType
, ChangeSetType (..)

-- ** ChangeSource
, ChangeSource (..)

Expand Down Expand Up @@ -178,6 +190,9 @@ module Network.AWS.CloudFormation
-- ** StackStatus
, StackStatus (..)

-- ** TemplateStage
, TemplateStage (..)

-- ** AccountLimit
, AccountLimit
, accountLimit
Expand All @@ -203,6 +218,13 @@ module Network.AWS.CloudFormation
, cssDescription
, cssStackName

-- ** Export
, Export
, export'
, eValue
, eExportingStackId
, eName

-- ** Output
, Output
, output
Expand Down Expand Up @@ -265,13 +287,15 @@ module Network.AWS.CloudFormation
, sLastUpdatedTime
, sNotificationARNs
, sStackStatusReason
, sChangeSetId
, sOutputs
, sParameters
, sStackId
, sDescription
, sCapabilities
, sTags
, sTimeoutInMinutes
, sRoleARN
, sStackName
, sCreationTime
, sStackStatus
Expand Down Expand Up @@ -372,6 +396,8 @@ import Network.AWS.CloudFormation.GetStackPolicy
import Network.AWS.CloudFormation.GetTemplate
import Network.AWS.CloudFormation.GetTemplateSummary
import Network.AWS.CloudFormation.ListChangeSets
import Network.AWS.CloudFormation.ListExports
import Network.AWS.CloudFormation.ListImports
import Network.AWS.CloudFormation.ListStackResources
import Network.AWS.CloudFormation.ListStacks
import Network.AWS.CloudFormation.SetStackPolicy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ module Network.AWS.CloudFormation.ContinueUpdateRollback
continueUpdateRollback
, ContinueUpdateRollback
-- * Request Lenses
, curResourcesToSkip
, curRoleARN
, curStackName

-- * Destructuring the Response
Expand All @@ -50,23 +52,39 @@ import Network.AWS.Response
--
--
-- /See:/ 'continueUpdateRollback' smart constructor.
newtype ContinueUpdateRollback = ContinueUpdateRollback'
{ _curStackName :: Text
data ContinueUpdateRollback = ContinueUpdateRollback'
{ _curResourcesToSkip :: !(Maybe [Text])
, _curRoleARN :: !(Maybe Text)
, _curStackName :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)

-- | Creates a value of 'ContinueUpdateRollback' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'curResourcesToSkip' - A list of the logical IDs of the resources that AWS CloudFormation skips during the continue update rollback operation. You can specify only resources that are in the @UPDATE_FAILED@ state because a rollback failed. You can't specify resources that are in the @UPDATE_FAILED@ state for other reasons, for example, because an update was canceled. To check why a resource update failed, use the 'DescribeStackResources' action, and view the resource status reason. /Important:/ Specify this property to skip rolling back resources that AWS CloudFormation can't successfully roll back. We recommend that you <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed troubleshoot> resources before skipping them. AWS CloudFormation sets the status of the specified resources to @UPDATE_COMPLETE@ and continues to roll back the stack. After the rollback is complete, the state of the skipped resources will be inconsistent with the state of the resources in the stack template. Before performing another stack update, you must update the stack or resources to be consistent with each other. If you don't, subsequent stack updates might fail, and the stack will become unrecoverable. Specify the minimum number of resources required to successfully roll back your stack. For example, a failed resource update might cause dependent resources to fail. In this case, it might not be necessary to skip the dependent resources. To specify resources in a nested stack, use the following format: @NestedStackName.ResourceLogicalID@ . You can specify a nested stack resource (the logical ID of an @AWS::CloudFormation::Stack@ resource) only if it's in one of the following states: @DELETE_IN_PROGRESS@ , @DELETE_COMPLETE@ , or @DELETE_FAILED@ .
--
-- * 'curRoleARN' - The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation uses the role's credentials to make calls on your behalf. AWS CloudFormation always uses this role for all future operations on the stack. As long as users have permission to operate on the stack, AWS CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege. If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.
--
-- * 'curStackName' - The name or the unique ID of the stack that you want to continue rolling back.
continueUpdateRollback
:: Text -- ^ 'curStackName'
-> ContinueUpdateRollback
continueUpdateRollback pStackName_ =
ContinueUpdateRollback'
{ _curStackName = pStackName_
{ _curResourcesToSkip = Nothing
, _curRoleARN = Nothing
, _curStackName = pStackName_
}

-- | A list of the logical IDs of the resources that AWS CloudFormation skips during the continue update rollback operation. You can specify only resources that are in the @UPDATE_FAILED@ state because a rollback failed. You can't specify resources that are in the @UPDATE_FAILED@ state for other reasons, for example, because an update was canceled. To check why a resource update failed, use the 'DescribeStackResources' action, and view the resource status reason. /Important:/ Specify this property to skip rolling back resources that AWS CloudFormation can't successfully roll back. We recommend that you <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed troubleshoot> resources before skipping them. AWS CloudFormation sets the status of the specified resources to @UPDATE_COMPLETE@ and continues to roll back the stack. After the rollback is complete, the state of the skipped resources will be inconsistent with the state of the resources in the stack template. Before performing another stack update, you must update the stack or resources to be consistent with each other. If you don't, subsequent stack updates might fail, and the stack will become unrecoverable. Specify the minimum number of resources required to successfully roll back your stack. For example, a failed resource update might cause dependent resources to fail. In this case, it might not be necessary to skip the dependent resources. To specify resources in a nested stack, use the following format: @NestedStackName.ResourceLogicalID@ . You can specify a nested stack resource (the logical ID of an @AWS::CloudFormation::Stack@ resource) only if it's in one of the following states: @DELETE_IN_PROGRESS@ , @DELETE_COMPLETE@ , or @DELETE_FAILED@ .
curResourcesToSkip :: Lens' ContinueUpdateRollback [Text]
curResourcesToSkip = lens _curResourcesToSkip (\ s a -> s{_curResourcesToSkip = a}) . _Default . _Coerce;

-- | The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation uses the role's credentials to make calls on your behalf. AWS CloudFormation always uses this role for all future operations on the stack. As long as users have permission to operate on the stack, AWS CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege. If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.
curRoleARN :: Lens' ContinueUpdateRollback (Maybe Text)
curRoleARN = lens _curRoleARN (\ s a -> s{_curRoleARN = a});

-- | The name or the unique ID of the stack that you want to continue rolling back.
curStackName :: Lens' ContinueUpdateRollback Text
curStackName = lens _curStackName (\ s a -> s{_curStackName = a});
Expand Down Expand Up @@ -97,6 +115,10 @@ instance ToQuery ContinueUpdateRollback where
["Action" =:
("ContinueUpdateRollback" :: ByteString),
"Version" =: ("2010-05-15" :: ByteString),
"ResourcesToSkip" =:
toQuery
(toQueryList "member" <$> _curResourcesToSkip),
"RoleARN" =: _curRoleARN,
"StackName" =: _curStackName]

-- | The output for a 'ContinueUpdateRollback' action.
Expand Down
Loading

0 comments on commit ce82485

Please sign in to comment.