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

Defined in Network.AWS.APIGateway.CreateDeployment

Data CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

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

Defined in Network.AWS.APIGateway.CreateDeployment

Show CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

Generic CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

Associated Types

type Rep CreateDeployment :: Type -> Type #

Hashable CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

ToJSON CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

AWSRequest CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

Associated Types

type Rs CreateDeployment :: Type #

ToHeaders CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

ToPath CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

ToQuery CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

NFData CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

Methods

rnf :: CreateDeployment -> () #

type Rep CreateDeployment Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateDeployment

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

Defined in Network.AWS.APIGateway.CreateDeployment

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

Defined in Network.AWS.APIGateway.Types.Product

Data Deployment Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

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

Defined in Network.AWS.APIGateway.Types.Product

Show Deployment Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Generic Deployment Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Associated Types

type Rep Deployment :: Type -> Type #

Hashable Deployment Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

FromJSON Deployment Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

NFData Deployment Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

rnf :: Deployment -> () #

type Rep Deployment Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

type Rep Deployment = D1 (MetaData "Deployment" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "Deployment'" PrefixI True) ((S1 (MetaSel (Just "_dApiSummary") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text (Map Text MethodSnapshot)))) :*: S1 (MetaSel (Just "_dCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_dId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.