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

Contents

Description

Creates a Resource resource.

Synopsis

Creating a Request

createResource Source #

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

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

data CreateResource Source #

Requests Amazon API Gateway to create a Resource resource.

See: createResource smart constructor.

Instances

Eq CreateResource Source # 
Data CreateResource Source # 

Methods

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

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

toConstr :: CreateResource -> Constr #

dataTypeOf :: CreateResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateResource Source # 
Show CreateResource Source # 
Generic CreateResource Source # 

Associated Types

type Rep CreateResource :: * -> * #

ToJSON CreateResource Source # 
Hashable CreateResource Source # 
NFData CreateResource Source # 

Methods

rnf :: CreateResource -> () #

AWSRequest CreateResource Source # 
ToPath CreateResource Source # 
ToHeaders CreateResource Source # 
ToQuery CreateResource Source # 
type Rep CreateResource Source # 
type Rep CreateResource = D1 (MetaData "CreateResource" "Network.AWS.APIGateway.CreateResource" "amazonka-apigateway-1.4.2-1ZfIGe0X9Tw3KKubfE7kqg" False) (C1 (MetaCons "CreateResource'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_crRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_crParentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_crPathPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateResource Source # 

Request Lenses

crRestAPIId :: Lens' CreateResource Text Source #

The identifier of the RestApi for the resource.

crParentId :: Lens' CreateResource Text Source #

The parent resource's identifier.

crPathPart :: Lens' CreateResource Text Source #

The last path segment for this resource.

Destructuring the Response

resource :: Resource Source #

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

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

data Resource Source #

Represents a resource.

See: resource smart constructor.

Instances

Eq Resource Source # 
Data Resource Source # 

Methods

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

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

toConstr :: Resource -> Constr #

dataTypeOf :: Resource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Resource Source # 
Show Resource Source # 
Generic Resource Source # 

Associated Types

type Rep Resource :: * -> * #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

FromJSON Resource Source # 
Hashable Resource Source # 

Methods

hashWithSalt :: Int -> Resource -> Int #

hash :: Resource -> Int #

NFData Resource Source # 

Methods

rnf :: Resource -> () #

type Rep Resource Source # 
type Rep Resource = D1 (MetaData "Resource" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.4.2-1ZfIGe0X9Tw3KKubfE7kqg" False) (C1 (MetaCons "Resource'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rPathPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_rId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_rResourceMethods") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Method)))) (S1 (MetaSel (Just Symbol "_rParentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))

Response Lenses

rPathPart :: Lens' Resource (Maybe Text) Source #

The last path segment for this resource.

rPath :: Lens' Resource (Maybe Text) Source #

The full path for this resource.

rId :: Lens' Resource (Maybe Text) Source #

The resource's identifier.

rResourceMethods :: Lens' Resource (HashMap Text Method) Source #

Map of methods for this resource, which is included only if the request uses the embed query option.

rParentId :: Lens' Resource (Maybe Text) Source #

The parent resource's identifier.