amazonka-apigateway-1.3.7: Amazon API Gateway SDK.

Copyright(c) 2013-2015 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.APIGateway.CreateDeployment

Contents

Description

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

See: AWS API Reference for CreateDeployment.

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:

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 alphabetic 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.

cdCacheClusterEnabled :: Lens' CreateDeployment (Maybe Bool) Source

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

cdDescription :: Lens' CreateDeployment (Maybe Text) Source

The description for the Deployment resource to create.

cdRestAPIId :: Lens' CreateDeployment Text Source

The RestApi resource identifier for the Deployment resource to create.

cdStageName :: Lens' CreateDeployment Text Source

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

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:

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.

See: deployment smart constructor.

Response Lenses

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

Gets 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.