amazonka-opsworks-1.4.5: Amazon OpsWorks SDK.

Copyright(c) 2013-2016 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.OpsWorks.UpdateApp

Contents

Description

Updates a specified app.

Required Permissions : To use this action, an IAM user must have a Deploy or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

Synopsis

Creating a Request

updateApp #

Arguments

:: Text

uaAppId

-> UpdateApp 

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

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

  • uaSSLConfiguration - An SslConfiguration object with the SSL configuration.
  • uaEnvironment - An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables . There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."
  • uaEnableSSL - Whether SSL is enabled for the app.
  • uaDataSources - The app's data sources.
  • uaAppSource - A Source object that specifies the app repository.
  • uaAttributes - One or more user-defined key/value pairs to be added to the stack attributes.
  • uaName - The app name.
  • uaType - The app type.
  • uaDomains - The app's virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
  • uaDescription - A description of the app.
  • uaAppId - The app ID.

data UpdateApp #

See: updateApp smart constructor.

Instances

Eq UpdateApp # 
Data UpdateApp # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateApp -> c UpdateApp #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateApp #

toConstr :: UpdateApp -> Constr #

dataTypeOf :: UpdateApp -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateApp) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateApp) #

gmapT :: (forall b. Data b => b -> b) -> UpdateApp -> UpdateApp #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateApp -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateApp -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateApp -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateApp -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateApp -> m UpdateApp #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateApp -> m UpdateApp #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateApp -> m UpdateApp #

Read UpdateApp # 
Show UpdateApp # 
Generic UpdateApp # 

Associated Types

type Rep UpdateApp :: * -> * #

Hashable UpdateApp # 
ToJSON UpdateApp # 
NFData UpdateApp # 

Methods

rnf :: UpdateApp -> () #

AWSRequest UpdateApp # 
ToQuery UpdateApp # 
ToPath UpdateApp # 
ToHeaders UpdateApp # 

Methods

toHeaders :: UpdateApp -> [Header] #

type Rep UpdateApp # 
type Rep UpdateApp = D1 (MetaData "UpdateApp" "Network.AWS.OpsWorks.UpdateApp" "amazonka-opsworks-1.4.5-JiFrWEFhyqOE1ZKfkjkheh" False) (C1 (MetaCons "UpdateApp'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_uaSSLConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SSLConfiguration))) (S1 (MetaSel (Just Symbol "_uaEnvironment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EnvironmentVariable])))) ((:*:) (S1 (MetaSel (Just Symbol "_uaEnableSSL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_uaDataSources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataSource]))) (S1 (MetaSel (Just Symbol "_uaAppSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Source)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_uaAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map AppAttributesKeys Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_uaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_uaType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AppType))))) ((:*:) (S1 (MetaSel (Just Symbol "_uaDomains") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_uaDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_uaAppId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Rs UpdateApp # 

Request Lenses

uaSSLConfiguration :: Lens' UpdateApp (Maybe SSLConfiguration) #

An SslConfiguration object with the SSL configuration.

uaEnvironment :: Lens' UpdateApp [EnvironmentVariable] #

An array of EnvironmentVariable objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instances.For more information, see Environment Variables . There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 10KB)."

uaEnableSSL :: Lens' UpdateApp (Maybe Bool) #

Whether SSL is enabled for the app.

uaDataSources :: Lens' UpdateApp [DataSource] #

The app's data sources.

uaAppSource :: Lens' UpdateApp (Maybe Source) #

A Source object that specifies the app repository.

uaAttributes :: Lens' UpdateApp (HashMap AppAttributesKeys Text) #

One or more user-defined key/value pairs to be added to the stack attributes.

uaName :: Lens' UpdateApp (Maybe Text) #

The app name.

uaType :: Lens' UpdateApp (Maybe AppType) #

The app type.

uaDomains :: Lens' UpdateApp [Text] #

The app's virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

uaDescription :: Lens' UpdateApp (Maybe Text) #

A description of the app.

uaAppId :: Lens' UpdateApp Text #

The app ID.

Destructuring the Response

updateAppResponse :: UpdateAppResponse #

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

data UpdateAppResponse #

See: updateAppResponse smart constructor.

Instances

Eq UpdateAppResponse # 
Data UpdateAppResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateAppResponse -> c UpdateAppResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateAppResponse #

toConstr :: UpdateAppResponse -> Constr #

dataTypeOf :: UpdateAppResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateAppResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateAppResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateAppResponse -> UpdateAppResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateAppResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateAppResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateAppResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateAppResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateAppResponse -> m UpdateAppResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateAppResponse -> m UpdateAppResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateAppResponse -> m UpdateAppResponse #

Read UpdateAppResponse # 
Show UpdateAppResponse # 
Generic UpdateAppResponse # 
NFData UpdateAppResponse # 

Methods

rnf :: UpdateAppResponse -> () #

type Rep UpdateAppResponse # 
type Rep UpdateAppResponse = D1 (MetaData "UpdateAppResponse" "Network.AWS.OpsWorks.UpdateApp" "amazonka-opsworks-1.4.5-JiFrWEFhyqOE1ZKfkjkheh" False) (C1 (MetaCons "UpdateAppResponse'" PrefixI False) U1)