amazonka-opsworks-1.6.0: Amazon OpsWorks SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 Source #

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 Source #

See: updateApp smart constructor.

Instances

Eq UpdateApp Source # 
Data UpdateApp Source # 

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 Source # 
Show UpdateApp Source # 
Generic UpdateApp Source # 

Associated Types

type Rep UpdateApp :: * -> * #

Hashable UpdateApp Source # 
ToJSON UpdateApp Source # 
NFData UpdateApp Source # 

Methods

rnf :: UpdateApp -> () #

AWSRequest UpdateApp Source # 
ToHeaders UpdateApp Source # 

Methods

toHeaders :: UpdateApp -> [Header] #

ToPath UpdateApp Source # 
ToQuery UpdateApp Source # 
type Rep UpdateApp Source # 
type Rep UpdateApp = D1 * (MetaData "UpdateApp" "Network.AWS.OpsWorks.UpdateApp" "amazonka-opsworks-1.6.0-dhw3H9lmJm2qKjEl8vg7Z" 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 Source # 

Request Lenses

uaSSLConfiguration :: Lens' UpdateApp (Maybe SSLConfiguration) Source #

An SslConfiguration object with the SSL configuration.

uaEnvironment :: Lens' UpdateApp [EnvironmentVariable] Source #

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) Source #

Whether SSL is enabled for the app.

uaDataSources :: Lens' UpdateApp [DataSource] Source #

The app's data sources.

uaAppSource :: Lens' UpdateApp (Maybe Source) Source #

A Source object that specifies the app repository.

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

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

uaName :: Lens' UpdateApp (Maybe Text) Source #

The app name.

uaDomains :: Lens' UpdateApp [Text] Source #

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

uaDescription :: Lens' UpdateApp (Maybe Text) Source #

A description of the app.

Destructuring the Response

updateAppResponse :: UpdateAppResponse Source #

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

data UpdateAppResponse Source #

See: updateAppResponse smart constructor.

Instances

Eq UpdateAppResponse Source # 
Data UpdateAppResponse Source # 

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 Source # 
Show UpdateAppResponse Source # 
Generic UpdateAppResponse Source # 
NFData UpdateAppResponse Source # 

Methods

rnf :: UpdateAppResponse -> () #

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