amazonka-apigateway-1.4.2: Amazon API Gateway SDK.

Copyright(c) 2013-2016 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.CreateStage

Contents

Description

Creates a new Stage resource that references a pre-existing Deployment for the API.

Synopsis

Creating a Request

createStage Source #

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

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

data CreateStage Source #

Requests Amazon API Gateway to create a Stage resource.

See: createStage smart constructor.

Instances

Eq CreateStage Source # 
Data CreateStage Source # 

Methods

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

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

toConstr :: CreateStage -> Constr #

dataTypeOf :: CreateStage -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateStage Source # 
Show CreateStage Source # 
Generic CreateStage Source # 

Associated Types

type Rep CreateStage :: * -> * #

ToJSON CreateStage Source # 
Hashable CreateStage Source # 
NFData CreateStage Source # 

Methods

rnf :: CreateStage -> () #

AWSRequest CreateStage Source # 
ToPath CreateStage Source # 
ToHeaders CreateStage Source # 

Methods

toHeaders :: CreateStage -> [Header] #

ToQuery CreateStage Source # 
type Rep CreateStage Source # 
type Rep CreateStage = D1 (MetaData "CreateStage" "Network.AWS.APIGateway.CreateStage" "amazonka-apigateway-1.4.2-1ZfIGe0X9Tw3KKubfE7kqg" False) (C1 (MetaCons "CreateStage'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_csVariables") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_csCacheClusterSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CacheClusterSize))) (S1 (MetaSel (Just Symbol "_csCacheClusterEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_csDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_csRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_csStageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_csDeploymentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateStage Source # 

Request Lenses

csVariables :: Lens' CreateStage (HashMap Text Text) Source #

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

csCacheClusterSize :: Lens' CreateStage (Maybe CacheClusterSize) Source #

The stage's cache cluster size.

csCacheClusterEnabled :: Lens' CreateStage (Maybe Bool) Source #

Whether cache clustering is enabled for the stage.

csDescription :: Lens' CreateStage (Maybe Text) Source #

The description of the Stage resource.

csRestAPIId :: Lens' CreateStage Text Source #

The identifier of the RestApi resource for the Stage resource to create.

csStageName :: Lens' CreateStage Text Source #

The name for the Stage resource.

csDeploymentId :: Lens' CreateStage Text Source #

The identifier of the Deployment resource for the Stage resource.

Destructuring the Response

stage :: Stage Source #

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

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

data Stage Source #

Represents a unique identifier for a version of a deployed RestApi that is callable by users.

See: stage smart constructor.

Instances

Eq Stage Source # 

Methods

(==) :: Stage -> Stage -> Bool #

(/=) :: Stage -> Stage -> Bool #

Data Stage Source # 

Methods

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

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

toConstr :: Stage -> Constr #

dataTypeOf :: Stage -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Stage Source # 
Show Stage Source # 

Methods

showsPrec :: Int -> Stage -> ShowS #

show :: Stage -> String #

showList :: [Stage] -> ShowS #

Generic Stage Source # 

Associated Types

type Rep Stage :: * -> * #

Methods

from :: Stage -> Rep Stage x #

to :: Rep Stage x -> Stage #

FromJSON Stage Source # 
Hashable Stage Source # 

Methods

hashWithSalt :: Int -> Stage -> Int #

hash :: Stage -> Int #

NFData Stage Source # 

Methods

rnf :: Stage -> () #

type Rep Stage Source # 
type Rep Stage = D1 (MetaData "Stage" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.4.2-1ZfIGe0X9Tw3KKubfE7kqg" False) (C1 (MetaCons "Stage'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sDeploymentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_sVariables") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_sClientCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_sCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601))) (S1 (MetaSel (Just Symbol "_sCacheClusterStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CacheClusterStatus)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sMethodSettings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text MethodSetting)))) ((:*:) (S1 (MetaSel (Just Symbol "_sLastUpdatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601))) (S1 (MetaSel (Just Symbol "_sCacheClusterSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CacheClusterSize))))) ((:*:) (S1 (MetaSel (Just Symbol "_sCacheClusterEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_sStageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_sDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))

Response Lenses

sDeploymentId :: Lens' Stage (Maybe Text) Source #

The identifier of the Deployment that the stage points to.

sVariables :: Lens' Stage (HashMap Text Text) Source #

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

sClientCertificateId :: Lens' Stage (Maybe Text) Source #

Undocumented member.

sCreatedDate :: Lens' Stage (Maybe UTCTime) Source #

The date and time that the stage was created, in ISO 8601 format.

sCacheClusterStatus :: Lens' Stage (Maybe CacheClusterStatus) Source #

The status of the cache cluster for the stage, if enabled.

sMethodSettings :: Lens' Stage (HashMap Text MethodSetting) Source #

A map that defines the method settings for a Stage resource. Keys are defined as '{resource_path}/{http_method}' for an individual method override, or \\*\/\\* for the settings applied to all methods in the stage.

sLastUpdatedDate :: Lens' Stage (Maybe UTCTime) Source #

The date and time that information about the stage was last updated, in ISO 8601 format.

sCacheClusterSize :: Lens' Stage (Maybe CacheClusterSize) Source #

The size of the cache cluster for the stage, if enabled.

sCacheClusterEnabled :: Lens' Stage (Maybe Bool) Source #

Specifies whether a cache cluster is enabled for the stage.

sStageName :: Lens' Stage (Maybe Text) Source #

The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.

sDescription :: Lens' Stage (Maybe Text) Source #

The stage's description.