amazonka-serverlessrepo-1.6.1: 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 # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Data CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

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 # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Show CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Generic CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Associated Types

type Rep CreateApplication :: Type -> Type #

Hashable CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

ToJSON CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

AWSRequest CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Associated Types

type Rs CreateApplication :: Type #

ToHeaders CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

ToPath CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

ToQuery CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

NFData CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Methods

rnf :: CreateApplication -> () #

type Rep CreateApplication Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

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

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

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 # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Data CreateApplicationResponse Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

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 # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Show CreateApplicationResponse Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Generic CreateApplicationResponse Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

Associated Types

type Rep CreateApplicationResponse :: Type -> Type #

NFData CreateApplicationResponse Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

type Rep CreateApplicationResponse Source # 
Instance details

Defined in Network.AWS.ServerlessApplicationRepository.CreateApplication

type Rep CreateApplicationResponse = D1 (MetaData "CreateApplicationResponse" "Network.AWS.ServerlessApplicationRepository.CreateApplication" "amazonka-serverlessrepo-1.6.1-BrNuDK74DeNKvSny4fhIJ2" False) (C1 (MetaCons "CreateApplicationResponse'" PrefixI True) (((S1 (MetaSel (Just "_carsCreationTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_carsHomePageURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_carsLicenseURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_carsReadmeURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_carsApplicationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_carsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_carsVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Version)) :*: (S1 (MetaSel (Just "_carsAuthor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_carsLabels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 (MetaSel (Just "_carsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_carsSpdxLicenseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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