amazonka-opsworks-1.4.4: 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.CreateApp

Contents

Description

Creates an app for a specified stack. For more information, see Creating Apps.

Required Permissions: To use this action, an IAM user must have a 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

createApp Source #

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

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

data CreateApp Source #

See: createApp smart constructor.

Instances

Eq CreateApp Source # 
Data CreateApp Source # 

Methods

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

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

toConstr :: CreateApp -> Constr #

dataTypeOf :: CreateApp -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateApp Source # 
Show CreateApp Source # 
Generic CreateApp Source # 

Associated Types

type Rep CreateApp :: * -> * #

Hashable CreateApp Source # 
NFData CreateApp Source # 

Methods

rnf :: CreateApp -> () #

AWSRequest CreateApp Source # 
ToPath CreateApp Source # 
ToHeaders CreateApp Source # 

Methods

toHeaders :: CreateApp -> [Header] #

ToQuery CreateApp Source # 
ToJSON CreateApp Source # 

Methods

toJSON :: CreateApp -> Value #

toEncoding :: CreateApp -> Encoding #

type Rep CreateApp Source # 
type Rep CreateApp = D1 (MetaData "CreateApp" "Network.AWS.OpsWorks.CreateApp" "amazonka-opsworks-1.4.4-n3dv83EUzf7afH3Q1jxrM" False) (C1 (MetaCons "CreateApp'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_caSSLConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SSLConfiguration))) ((:*:) (S1 (MetaSel (Just Symbol "_caEnvironment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EnvironmentVariable]))) (S1 (MetaSel (Just Symbol "_caEnableSSL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) (S1 (MetaSel (Just Symbol "_caShortname") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_caDataSources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataSource]))) (S1 (MetaSel (Just Symbol "_caAppSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Source)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_caAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map AppAttributesKeys Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_caDomains") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_caDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_caStackId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_caName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_caType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AppType)))))))
type Rs CreateApp Source # 

Request Lenses

caSSLConfiguration :: Lens' CreateApp (Maybe SSLConfiguration) Source #

An SslConfiguration object with the SSL configuration.

caEnvironment :: Lens' CreateApp [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 instance. 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)."

This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.

caEnableSSL :: Lens' CreateApp (Maybe Bool) Source #

Whether to enable SSL for the app.

caShortname :: Lens' CreateApp (Maybe Text) Source #

The app's short name.

caDataSources :: Lens' CreateApp [DataSource] Source #

The app's data source.

caAppSource :: Lens' CreateApp (Maybe Source) Source #

A Source object that specifies the app repository.

caAttributes :: Lens' CreateApp (HashMap AppAttributesKeys Text) Source #

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

caDomains :: Lens' CreateApp [Text] Source #

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

caDescription :: Lens' CreateApp (Maybe Text) Source #

A description of the app.

caName :: Lens' CreateApp Text Source #

The app name.

caType :: Lens' CreateApp AppType Source #

The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks deploys an application to those instances that are members of the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy recipes, specify other.

Destructuring the Response

createAppResponse Source #

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

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

data CreateAppResponse Source #

Contains the response to a CreateApp request.

See: createAppResponse smart constructor.

Instances

Eq CreateAppResponse Source # 
Data CreateAppResponse Source # 

Methods

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

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

toConstr :: CreateAppResponse -> Constr #

dataTypeOf :: CreateAppResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAppResponse Source # 
Show CreateAppResponse Source # 
Generic CreateAppResponse Source # 
NFData CreateAppResponse Source # 

Methods

rnf :: CreateAppResponse -> () #

type Rep CreateAppResponse Source # 
type Rep CreateAppResponse = D1 (MetaData "CreateAppResponse" "Network.AWS.OpsWorks.CreateApp" "amazonka-opsworks-1.4.4-n3dv83EUzf7afH3Q1jxrM" False) (C1 (MetaCons "CreateAppResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_carsAppId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_carsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses