amazonka-serverlessrepo-1.6.0: Amazon ServerlessApplicationRepository 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.ServerlessApplicationRepository.CreateApplication

Contents

Description

Creates an application, optionally including an AWS SAM file to create the first application version in the same call.

Synopsis

Creating a Request

createApplication :: CreateApplication Source #

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

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

  • caHomePageURL - A URL with more information about the application, for example the location of your GitHub repository for the application.
  • caReadmeBody - A raw text Readme file that contains a more detailed description of the application and how it works in markdown language. Max size 5 MB
  • caLicenseURL - A link to a license file of the app that matches the spdxLicenseID of your application. Max size 5 MB
  • caSemanticVersion - The semantic version of the application: https://semver.org/
  • caSourceCodeURL - A link to a public repository for the source code of your application.
  • caReadmeURL - A link to the Readme file that contains a more detailed description of the application and how it works in markdown language. Max size 5 MB
  • caName - The name of the application you want to publish. Min Length=1. Max Length=140 Pattern: "[a-zA-Z0-9\-]+";
  • caAuthor - The name of the author publishing the app. Min Length=1. Max Length=127. Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
  • caLabels - Labels to improve discovery of apps in search results. Min Length=1. Max Length=127. Maximum number of labels: 10 Pattern: "^[a-zA-Z0-9+\-_:\/@]+$";
  • caTemplateBody - The raw packaged AWS SAM template of your application.
  • caTemplateURL - A link to the packaged AWS SAM template of your application.
  • caLicenseBody - A raw text file that contains the license of the app that matches the spdxLicenseID of your application. Max size 5 MB
  • caDescription - The description of the application. Min Length=1. Max Length=256
  • caSpdxLicenseId - A valid identifier from https://spdx.org/licenses/ .

data CreateApplication Source #

See: createApplication smart constructor.

Instances

Eq CreateApplication Source # 
Data CreateApplication Source # 

Methods

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

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

toConstr :: CreateApplication -> Constr #

dataTypeOf :: CreateApplication -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateApplication Source # 
Show CreateApplication Source # 
Generic CreateApplication Source # 
Hashable CreateApplication Source # 
ToJSON CreateApplication Source # 
NFData CreateApplication Source # 

Methods

rnf :: CreateApplication -> () #

AWSRequest CreateApplication Source # 
ToHeaders CreateApplication Source # 
ToPath CreateApplication Source # 
ToQuery CreateApplication Source # 
type Rep CreateApplication Source # 
type Rep CreateApplication = D1 * (MetaData "CreateApplication" "Network.AWS.ServerlessApplicationRepository.CreateApplication" "amazonka-serverlessrepo-1.6.0-2DtNFpCl6Uy2xAfjxMru3y" False) (C1 * (MetaCons "CreateApplication'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_caHomePageURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_caReadmeBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_caLicenseURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_caSemanticVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_caSourceCodeURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_caReadmeURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_caName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_caAuthor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_caLabels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_caTemplateBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_caTemplateURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_caLicenseBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_caDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_caSpdxLicenseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))))))
type Rs CreateApplication Source # 

Request Lenses

caHomePageURL :: Lens' CreateApplication (Maybe Text) Source #

A URL with more information about the application, for example the location of your GitHub repository for the application.

caReadmeBody :: Lens' CreateApplication (Maybe Text) Source #

A raw text Readme file that contains a more detailed description of the application and how it works in markdown language. Max size 5 MB

caLicenseURL :: Lens' CreateApplication (Maybe Text) Source #

A link to a license file of the app that matches the spdxLicenseID of your application. Max size 5 MB

caSemanticVersion :: Lens' CreateApplication (Maybe Text) Source #

The semantic version of the application: https://semver.org/

caSourceCodeURL :: Lens' CreateApplication (Maybe Text) Source #

A link to a public repository for the source code of your application.

caReadmeURL :: Lens' CreateApplication (Maybe Text) Source #

A link to the Readme file that contains a more detailed description of the application and how it works in markdown language. Max size 5 MB

caName :: Lens' CreateApplication (Maybe Text) Source #

The name of the application you want to publish. Min Length=1. Max Length=140 Pattern: "[a-zA-Z0-9\-]+";

caAuthor :: Lens' CreateApplication (Maybe Text) Source #

The name of the author publishing the app. Min Length=1. Max Length=127. Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";

caLabels :: Lens' CreateApplication [Text] Source #

Labels to improve discovery of apps in search results. Min Length=1. Max Length=127. Maximum number of labels: 10 Pattern: "^[a-zA-Z0-9+\-_:\/@]+$";

caTemplateBody :: Lens' CreateApplication (Maybe Text) Source #

The raw packaged AWS SAM template of your application.

caTemplateURL :: Lens' CreateApplication (Maybe Text) Source #

A link to the packaged AWS SAM template of your application.

caLicenseBody :: Lens' CreateApplication (Maybe Text) Source #

A raw text file that contains the license of the app that matches the spdxLicenseID of your application. Max size 5 MB

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

The description of the application. Min Length=1. Max Length=256

Destructuring the Response

createApplicationResponse Source #

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

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

  • carsCreationTime - The date/time this resource was created.
  • carsHomePageURL - A URL with more information about the application, for example the location of your GitHub repository for the application.
  • carsLicenseURL - A link to a license file of the app that matches the spdxLicenseID of your application. Max size 5 MB
  • carsReadmeURL - A link to the readme file that contains a more detailed description of the application and how it works in Markdown language. Max size 5 MB
  • carsApplicationId - The application Amazon Resource Name (ARN).
  • carsName - The name of the application. Min Length=1. Max Length=140 Pattern: "[a-zA-Z0-9\-]+";
  • carsVersion - Version information about the application.
  • carsAuthor - The name of the author publishing the app. Min Length=1. Max Length=127. Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
  • carsLabels - Labels to improve discovery of apps in search results. Min Length=1. Max Length=127. Maximum number of labels: 10 Pattern: "^[a-zA-Z0-9+\-_:\/@]+$";
  • carsDescription - The description of the application. Min Length=1. Max Length=256
  • carsSpdxLicenseId - A valid identifier from https://spdx.org/licenses/.
  • carsResponseStatus - -- | The response status code.

data CreateApplicationResponse Source #

See: createApplicationResponse smart constructor.

Instances

Eq CreateApplicationResponse Source # 
Data CreateApplicationResponse Source # 

Methods

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

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

toConstr :: CreateApplicationResponse -> Constr #

dataTypeOf :: CreateApplicationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateApplicationResponse Source # 
Show CreateApplicationResponse Source # 
Generic CreateApplicationResponse Source # 
NFData CreateApplicationResponse Source # 
type Rep CreateApplicationResponse Source # 
type Rep CreateApplicationResponse = D1 * (MetaData "CreateApplicationResponse" "Network.AWS.ServerlessApplicationRepository.CreateApplication" "amazonka-serverlessrepo-1.6.0-2DtNFpCl6Uy2xAfjxMru3y" False) (C1 * (MetaCons "CreateApplicationResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_carsCreationTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_carsHomePageURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_carsLicenseURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_carsReadmeURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_carsApplicationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_carsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_carsVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Version))) ((:*:) * (S1 * (MetaSel (Just Symbol "_carsAuthor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_carsLabels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_carsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_carsSpdxLicenseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_carsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))))

Response Lenses

carsCreationTime :: Lens' CreateApplicationResponse (Maybe Text) Source #

The date/time this resource was created.

carsHomePageURL :: Lens' CreateApplicationResponse (Maybe Text) Source #

A URL with more information about the application, for example the location of your GitHub repository for the application.

carsLicenseURL :: Lens' CreateApplicationResponse (Maybe Text) Source #

A link to a license file of the app that matches the spdxLicenseID of your application. Max size 5 MB

carsReadmeURL :: Lens' CreateApplicationResponse (Maybe Text) Source #

A link to the readme file that contains a more detailed description of the application and how it works in Markdown language. Max size 5 MB

carsApplicationId :: Lens' CreateApplicationResponse (Maybe Text) Source #

The application Amazon Resource Name (ARN).

carsName :: Lens' CreateApplicationResponse (Maybe Text) Source #

The name of the application. Min Length=1. Max Length=140 Pattern: "[a-zA-Z0-9\-]+";

carsVersion :: Lens' CreateApplicationResponse (Maybe Version) Source #

Version information about the application.

carsAuthor :: Lens' CreateApplicationResponse (Maybe Text) Source #

The name of the author publishing the app. Min Length=1. Max Length=127. Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";

carsLabels :: Lens' CreateApplicationResponse [Text] Source #

Labels to improve discovery of apps in search results. Min Length=1. Max Length=127. Maximum number of labels: 10 Pattern: "^[a-zA-Z0-9+\-_:\/@]+$";

carsDescription :: Lens' CreateApplicationResponse (Maybe Text) Source #

The description of the application. Min Length=1. Max Length=256