amazonka-apigateway-1.6.0: Amazon API Gateway 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.APIGateway.CreateDeployment

Contents

Description

Creates a Deployment resource, which makes a specified RestApi callable over the internet.

Synopsis

Creating a Request

createDeployment Source #

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

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

  • cdStageDescription - The description of the Stage resource for the Deployment resource to create.
  • cdVariables - A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+ .
  • cdCacheClusterSize - Specifies the cache cluster size for the Stage resource specified in the input, if a cache cluster is enabled.
  • cdCanarySettings - The input configuration for the canary deployment when the deployment is a canary release deployment.
  • cdCacheClusterEnabled - Enables a cache cluster for the Stage resource specified in the input.
  • cdStageName - The name of the Stage resource for the Deployment resource to create.
  • cdDescription - The description for the Deployment resource to create.
  • cdRestAPIId - [Required] The string identifier of the associated RestApi .

data CreateDeployment Source #

Requests API Gateway to create a Deployment resource.

See: createDeployment smart constructor.

Instances

Eq CreateDeployment Source # 
Data CreateDeployment Source # 

Methods

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

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

toConstr :: CreateDeployment -> Constr #

dataTypeOf :: CreateDeployment -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateDeployment -> () #

AWSRequest CreateDeployment Source # 
ToHeaders CreateDeployment Source # 
ToPath CreateDeployment Source # 
ToQuery CreateDeployment Source # 
type Rep CreateDeployment Source # 
type Rep CreateDeployment = D1 * (MetaData "CreateDeployment" "Network.AWS.APIGateway.CreateDeployment" "amazonka-apigateway-1.6.0-JJ9NJtNe0aRBcVRYpJCEA2" False) (C1 * (MetaCons "CreateDeployment'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdStageDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cdVariables") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdCacheClusterSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe CacheClusterSize))) (S1 * (MetaSel (Just Symbol "_cdCanarySettings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DeploymentCanarySettings))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdCacheClusterEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_cdStageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cdRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs CreateDeployment Source # 

Request Lenses

cdStageDescription :: Lens' CreateDeployment (Maybe Text) Source #

The description of the Stage resource for the Deployment resource to create.

cdVariables :: Lens' CreateDeployment (HashMap Text Text) Source #

A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+ .

cdCacheClusterSize :: Lens' CreateDeployment (Maybe CacheClusterSize) Source #

Specifies the cache cluster size for the Stage resource specified in the input, if a cache cluster is enabled.

cdCanarySettings :: Lens' CreateDeployment (Maybe DeploymentCanarySettings) Source #

The input configuration for the canary deployment when the deployment is a canary release deployment.

cdCacheClusterEnabled :: Lens' CreateDeployment (Maybe Bool) Source #

Enables a cache cluster for the Stage resource specified in the input.

cdStageName :: Lens' CreateDeployment (Maybe Text) Source #

The name of the Stage resource for the Deployment resource to create.

cdDescription :: Lens' CreateDeployment (Maybe Text) Source #

The description for the Deployment resource to create.

cdRestAPIId :: Lens' CreateDeployment Text Source #

Required
The string identifier of the associated RestApi .

Destructuring the Response

deployment :: Deployment Source #

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

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

  • dApiSummary - A summary of the RestApi at the date and time that the deployment resource was created.
  • dCreatedDate - The date and time that the deployment resource was created.
  • dId - The identifier for the deployment resource.
  • dDescription - The description for the deployment resource.

data Deployment Source #

An immutable representation of a RestApi resource that can be called by users using Stages . A deployment must be associated with a Stage for it to be callable over the Internet.

To create a deployment, call POST on the Deployments resource of a RestApi . To view, update, or delete a deployment, call GET , PATCH , or DELETE on the specified deployment resource (restapis{restapi_id}deployments{deployment_id} ).RestApi , Deployments , Stage , AWS CLI , AWS SDKs

See: deployment smart constructor.

Instances

Eq Deployment Source # 
Data Deployment Source # 

Methods

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

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

toConstr :: Deployment -> Constr #

dataTypeOf :: Deployment -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Deployment Source # 
Show Deployment Source # 
Generic Deployment Source # 

Associated Types

type Rep Deployment :: * -> * #

Hashable Deployment Source # 
FromJSON Deployment Source # 
NFData Deployment Source # 

Methods

rnf :: Deployment -> () #

type Rep Deployment Source # 
type Rep Deployment = D1 * (MetaData "Deployment" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.6.0-JJ9NJtNe0aRBcVRYpJCEA2" False) (C1 * (MetaCons "Deployment'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_dApiSummary") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text (Map Text MethodSnapshot))))) (S1 * (MetaSel (Just Symbol "_dCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))))

Response Lenses

dApiSummary :: Lens' Deployment (HashMap Text (HashMap Text MethodSnapshot)) Source #

A summary of the RestApi at the date and time that the deployment resource was created.

dCreatedDate :: Lens' Deployment (Maybe UTCTime) Source #

The date and time that the deployment resource was created.

dId :: Lens' Deployment (Maybe Text) Source #

The identifier for the deployment resource.

dDescription :: Lens' Deployment (Maybe Text) Source #

The description for the deployment resource.