Skip to content

Commit

Permalink
Regenerating ElasticBeanstalkfrom latest service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed May 4, 2016
1 parent bb570ae commit 7f098ad
Show file tree
Hide file tree
Showing 34 changed files with 1,218 additions and 142 deletions.
10 changes: 3 additions & 7 deletions amazonka-elasticbeanstalk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@

AWS Elastic Beanstalk

This is the AWS Elastic Beanstalk API Reference. This guide provides
detailed information about AWS Elastic Beanstalk actions, data types,
parameters, and errors.

AWS Elastic Beanstalk is a tool that makes it easy for you to create,
deploy, and manage scalable, fault-tolerant applications running on
Amazon Web Services cloud resources.
AWS Elastic Beanstalk makes it easy for you to create, deploy, and
manage scalable, fault-tolerant applications running on the Amazon Web
Services cloud.

For more information about this product, go to the
<http://aws.amazon.com/elasticbeanstalk/ AWS Elastic Beanstalk> details
Expand Down
13 changes: 6 additions & 7 deletions amazonka-elasticbeanstalk/amazonka-elasticbeanstalk.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ extra-source-files: README.md fixture/*.yaml fixture/*.proto
description:
AWS Elastic Beanstalk

This is the AWS Elastic Beanstalk API Reference. This guide provides
detailed information about AWS Elastic Beanstalk actions, data types,
parameters, and errors.

AWS Elastic Beanstalk is a tool that makes it easy for you to create,
deploy, and manage scalable, fault-tolerant applications running on
Amazon Web Services cloud resources.
AWS Elastic Beanstalk makes it easy for you to create, deploy, and
manage scalable, fault-tolerant applications running on the Amazon Web
Services cloud.

For more information about this product, go to the
<http://aws.amazon.com/elasticbeanstalk/ AWS Elastic Beanstalk> details
Expand Down Expand Up @@ -66,6 +62,7 @@ library
exposed-modules:
Network.AWS.ElasticBeanstalk
, Network.AWS.ElasticBeanstalk.AbortEnvironmentUpdate
, Network.AWS.ElasticBeanstalk.ApplyEnvironmentManagedAction
, Network.AWS.ElasticBeanstalk.CheckDNSAvailability
, Network.AWS.ElasticBeanstalk.ComposeEnvironments
, Network.AWS.ElasticBeanstalk.CreateApplication
Expand All @@ -82,6 +79,8 @@ library
, Network.AWS.ElasticBeanstalk.DescribeConfigurationOptions
, Network.AWS.ElasticBeanstalk.DescribeConfigurationSettings
, Network.AWS.ElasticBeanstalk.DescribeEnvironmentHealth
, Network.AWS.ElasticBeanstalk.DescribeEnvironmentManagedActionHistory
, Network.AWS.ElasticBeanstalk.DescribeEnvironmentManagedActions
, Network.AWS.ElasticBeanstalk.DescribeEnvironmentResources
, Network.AWS.ElasticBeanstalk.DescribeEnvironments
, Network.AWS.ElasticBeanstalk.DescribeEvents
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
69 changes: 62 additions & 7 deletions amazonka-elasticbeanstalk/gen/Network/AWS/ElasticBeanstalk.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@
--
-- AWS Elastic Beanstalk
--
-- This is the AWS Elastic Beanstalk API Reference. This guide provides
-- detailed information about AWS Elastic Beanstalk actions, data types,
-- parameters, and errors.
--
-- AWS Elastic Beanstalk is a tool that makes it easy for you to create,
-- deploy, and manage scalable, fault-tolerant applications running on
-- Amazon Web Services cloud resources.
-- AWS Elastic Beanstalk makes it easy for you to create, deploy, and
-- manage scalable, fault-tolerant applications running on the Amazon Web
-- Services cloud.
--
-- For more information about this product, go to the
-- <http://aws.amazon.com/elasticbeanstalk/ AWS Elastic Beanstalk> details
Expand Down Expand Up @@ -71,6 +67,9 @@ module Network.AWS.ElasticBeanstalk
-- ** TooManyApplicationsException
, _TooManyApplicationsException

-- ** ManagedActionInvalidStateException
, _ManagedActionInvalidStateException

-- ** SourceBundleDeletionException
, _SourceBundleDeletionException

Expand Down Expand Up @@ -134,6 +133,9 @@ module Network.AWS.ElasticBeanstalk
-- ** DescribeEnvironmentResources
, module Network.AWS.ElasticBeanstalk.DescribeEnvironmentResources

-- ** DescribeEnvironmentManagedActionHistory
, module Network.AWS.ElasticBeanstalk.DescribeEnvironmentManagedActionHistory

-- ** DeleteApplicationVersion
, module Network.AWS.ElasticBeanstalk.DeleteApplicationVersion

Expand All @@ -158,12 +160,18 @@ module Network.AWS.ElasticBeanstalk
-- ** ListAvailableSolutionStacks
, module Network.AWS.ElasticBeanstalk.ListAvailableSolutionStacks

-- ** ApplyEnvironmentManagedAction
, module Network.AWS.ElasticBeanstalk.ApplyEnvironmentManagedAction

-- ** DescribeConfigurationOptions
, module Network.AWS.ElasticBeanstalk.DescribeConfigurationOptions

-- ** CreateStorageLocation
, module Network.AWS.ElasticBeanstalk.CreateStorageLocation

-- ** DescribeEnvironmentManagedActions
, module Network.AWS.ElasticBeanstalk.DescribeEnvironmentManagedActions

-- ** DescribeConfigurationSettings
, module Network.AWS.ElasticBeanstalk.DescribeConfigurationSettings

Expand All @@ -187,6 +195,15 @@ module Network.AWS.ElasticBeanstalk

-- * Types

-- ** ActionHistoryStatus
, ActionHistoryStatus (..)

-- ** ActionStatus
, ActionStatus (..)

-- ** ActionType
, ActionType (..)

-- ** ApplicationVersionStatus
, ApplicationVersionStatus (..)

Expand Down Expand Up @@ -214,6 +231,9 @@ module Network.AWS.ElasticBeanstalk
-- ** EventSeverity
, EventSeverity (..)

-- ** FailureType
, FailureType (..)

-- ** InstancesHealthAttribute
, InstancesHealthAttribute (..)

Expand Down Expand Up @@ -311,6 +331,14 @@ module Network.AWS.ElasticBeanstalk
, csdSolutionStackName
, csdDescription

-- ** Deployment
, Deployment
, deployment
, dDeploymentId
, dStatus
, dDeploymentTime
, dVersionLabel

-- ** EnvironmentDescription
, EnvironmentDescription
, environmentDescription
Expand Down Expand Up @@ -439,6 +467,27 @@ module Network.AWS.ElasticBeanstalk
, lbdDomain
, lbdListeners

-- ** ManagedAction
, ManagedAction
, managedAction
, maStatus
, maActionId
, maWindowStartTime
, maActionDescription
, maActionType

-- ** ManagedActionHistoryItem
, ManagedActionHistoryItem
, managedActionHistoryItem
, mahiStatus
, mahiFailureType
, mahiActionId
, mahiFailureDescription
, mahiFinishedTime
, mahiActionDescription
, mahiExecutedTime
, mahiActionType

-- ** OptionRestrictionRegex
, OptionRestrictionRegex
, optionRestrictionRegex
Expand Down Expand Up @@ -472,7 +521,10 @@ module Network.AWS.ElasticBeanstalk
, sihSystem
, sihApplicationMetrics
, sihColor
, sihInstanceType
, sihAvailabilityZone
, sihHealthStatus
, sihDeployment
, sihLaunchedAt

-- ** SolutionStackDescription
Expand Down Expand Up @@ -522,6 +574,7 @@ module Network.AWS.ElasticBeanstalk
) where

import Network.AWS.ElasticBeanstalk.AbortEnvironmentUpdate
import Network.AWS.ElasticBeanstalk.ApplyEnvironmentManagedAction
import Network.AWS.ElasticBeanstalk.CheckDNSAvailability
import Network.AWS.ElasticBeanstalk.ComposeEnvironments
import Network.AWS.ElasticBeanstalk.CreateApplication
Expand All @@ -538,6 +591,8 @@ import Network.AWS.ElasticBeanstalk.DescribeApplicationVersions
import Network.AWS.ElasticBeanstalk.DescribeConfigurationOptions
import Network.AWS.ElasticBeanstalk.DescribeConfigurationSettings
import Network.AWS.ElasticBeanstalk.DescribeEnvironmentHealth
import Network.AWS.ElasticBeanstalk.DescribeEnvironmentManagedActionHistory
import Network.AWS.ElasticBeanstalk.DescribeEnvironmentManagedActions
import Network.AWS.ElasticBeanstalk.DescribeEnvironmentResources
import Network.AWS.ElasticBeanstalk.DescribeEnvironments
import Network.AWS.ElasticBeanstalk.DescribeEvents
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}

{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module : Network.AWS.ElasticBeanstalk.ApplyEnvironmentManagedAction
-- Copyright : (c) 2013-2016 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Applies a scheduled managed action immediately. A managed action can be
-- applied only if its status is 'Scheduled'. Get the status and action ID
-- of a managed action with < DescribeEnvironmentManagedActions>.
module Network.AWS.ElasticBeanstalk.ApplyEnvironmentManagedAction
(
-- * Creating a Request
applyEnvironmentManagedAction
, ApplyEnvironmentManagedAction
-- * Request Lenses
, aemaEnvironmentName
, aemaEnvironmentId
, aemaActionId

-- * Destructuring the Response
, applyEnvironmentManagedActionResponse
, ApplyEnvironmentManagedActionResponse
-- * Response Lenses
, aemarsStatus
, aemarsActionId
, aemarsActionDescription
, aemarsActionType
, aemarsResponseStatus
) where

import Network.AWS.ElasticBeanstalk.Types
import Network.AWS.ElasticBeanstalk.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response

-- | Request to execute a scheduled managed action immediately.
--
-- /See:/ 'applyEnvironmentManagedAction' smart constructor.
data ApplyEnvironmentManagedAction = ApplyEnvironmentManagedAction'
{ _aemaEnvironmentName :: !(Maybe Text)
, _aemaEnvironmentId :: !(Maybe Text)
, _aemaActionId :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)

-- | Creates a value of 'ApplyEnvironmentManagedAction' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'aemaEnvironmentName'
--
-- * 'aemaEnvironmentId'
--
-- * 'aemaActionId'
applyEnvironmentManagedAction
:: Text -- ^ 'aemaActionId'
-> ApplyEnvironmentManagedAction
applyEnvironmentManagedAction pActionId_ =
ApplyEnvironmentManagedAction'
{ _aemaEnvironmentName = Nothing
, _aemaEnvironmentId = Nothing
, _aemaActionId = pActionId_
}

-- | The name of the target environment.
aemaEnvironmentName :: Lens' ApplyEnvironmentManagedAction (Maybe Text)
aemaEnvironmentName = lens _aemaEnvironmentName (\ s a -> s{_aemaEnvironmentName = a});

-- | The environment ID of the target environment.
aemaEnvironmentId :: Lens' ApplyEnvironmentManagedAction (Maybe Text)
aemaEnvironmentId = lens _aemaEnvironmentId (\ s a -> s{_aemaEnvironmentId = a});

-- | The action ID of the scheduled managed action to execute.
aemaActionId :: Lens' ApplyEnvironmentManagedAction Text
aemaActionId = lens _aemaActionId (\ s a -> s{_aemaActionId = a});

instance AWSRequest ApplyEnvironmentManagedAction
where
type Rs ApplyEnvironmentManagedAction =
ApplyEnvironmentManagedActionResponse
request = postQuery elasticBeanstalk
response
= receiveXMLWrapper
"ApplyEnvironmentManagedActionResult"
(\ s h x ->
ApplyEnvironmentManagedActionResponse' <$>
(x .@? "Status") <*> (x .@? "ActionId") <*>
(x .@? "ActionDescription")
<*> (x .@? "ActionType")
<*> (pure (fromEnum s)))

instance Hashable ApplyEnvironmentManagedAction

instance NFData ApplyEnvironmentManagedAction

instance ToHeaders ApplyEnvironmentManagedAction
where
toHeaders = const mempty

instance ToPath ApplyEnvironmentManagedAction where
toPath = const "/"

instance ToQuery ApplyEnvironmentManagedAction where
toQuery ApplyEnvironmentManagedAction'{..}
= mconcat
["Action" =:
("ApplyEnvironmentManagedAction" :: ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"EnvironmentName" =: _aemaEnvironmentName,
"EnvironmentId" =: _aemaEnvironmentId,
"ActionId" =: _aemaActionId]

-- | The result message containing information about the managed action.
--
-- /See:/ 'applyEnvironmentManagedActionResponse' smart constructor.
data ApplyEnvironmentManagedActionResponse = ApplyEnvironmentManagedActionResponse'
{ _aemarsStatus :: !(Maybe Text)
, _aemarsActionId :: !(Maybe Text)
, _aemarsActionDescription :: !(Maybe Text)
, _aemarsActionType :: !(Maybe ActionType)
, _aemarsResponseStatus :: !Int
} deriving (Eq,Read,Show,Data,Typeable,Generic)

-- | Creates a value of 'ApplyEnvironmentManagedActionResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'aemarsStatus'
--
-- * 'aemarsActionId'
--
-- * 'aemarsActionDescription'
--
-- * 'aemarsActionType'
--
-- * 'aemarsResponseStatus'
applyEnvironmentManagedActionResponse
:: Int -- ^ 'aemarsResponseStatus'
-> ApplyEnvironmentManagedActionResponse
applyEnvironmentManagedActionResponse pResponseStatus_ =
ApplyEnvironmentManagedActionResponse'
{ _aemarsStatus = Nothing
, _aemarsActionId = Nothing
, _aemarsActionDescription = Nothing
, _aemarsActionType = Nothing
, _aemarsResponseStatus = pResponseStatus_
}

-- | The status of the managed action.
aemarsStatus :: Lens' ApplyEnvironmentManagedActionResponse (Maybe Text)
aemarsStatus = lens _aemarsStatus (\ s a -> s{_aemarsStatus = a});

-- | The action ID of the managed action.
aemarsActionId :: Lens' ApplyEnvironmentManagedActionResponse (Maybe Text)
aemarsActionId = lens _aemarsActionId (\ s a -> s{_aemarsActionId = a});

-- | A description of the managed action.
aemarsActionDescription :: Lens' ApplyEnvironmentManagedActionResponse (Maybe Text)
aemarsActionDescription = lens _aemarsActionDescription (\ s a -> s{_aemarsActionDescription = a});

-- | The type of managed action.
aemarsActionType :: Lens' ApplyEnvironmentManagedActionResponse (Maybe ActionType)
aemarsActionType = lens _aemarsActionType (\ s a -> s{_aemarsActionType = a});

-- | The response status code.
aemarsResponseStatus :: Lens' ApplyEnvironmentManagedActionResponse Int
aemarsResponseStatus = lens _aemarsResponseStatus (\ s a -> s{_aemarsResponseStatus = a});

instance NFData ApplyEnvironmentManagedActionResponse
Loading

0 comments on commit 7f098ad

Please sign in to comment.