amazonka-apigateway-1.4.5: 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.UpdateDocumentationPart

Contents

Description

Undocumented operation.

Synopsis

Creating a Request

updateDocumentationPart Source #

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

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

  • udpPatchOperations - A list of update operations to be applied to the specified resource and in the order specified in this list.
  • udpRestAPIId - [Required] The identifier of an API of the to-be-updated documentation part.
  • udpDocumentationPartId - [Required] The identifier of the to-be-updated documentation part.

data UpdateDocumentationPart Source #

Updates an existing documentation part of a given API.

See: updateDocumentationPart smart constructor.

Instances

Eq UpdateDocumentationPart Source # 
Data UpdateDocumentationPart Source # 

Methods

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

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

toConstr :: UpdateDocumentationPart -> Constr #

dataTypeOf :: UpdateDocumentationPart -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: UpdateDocumentationPart -> () #

AWSRequest UpdateDocumentationPart Source # 
ToPath UpdateDocumentationPart Source # 
ToHeaders UpdateDocumentationPart Source # 
ToQuery UpdateDocumentationPart Source # 
type Rep UpdateDocumentationPart Source # 
type Rep UpdateDocumentationPart = D1 (MetaData "UpdateDocumentationPart" "Network.AWS.APIGateway.UpdateDocumentationPart" "amazonka-apigateway-1.4.5-BIK2fycuXdJFBbWQ9Hqf16" False) (C1 (MetaCons "UpdateDocumentationPart'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udpPatchOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PatchOperation]))) ((:*:) (S1 (MetaSel (Just Symbol "_udpRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_udpDocumentationPartId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateDocumentationPart Source # 

Request Lenses

udpPatchOperations :: Lens' UpdateDocumentationPart [PatchOperation] Source #

A list of update operations to be applied to the specified resource and in the order specified in this list.

udpRestAPIId :: Lens' UpdateDocumentationPart Text Source #

Required
The identifier of an API of the to-be-updated documentation part.

udpDocumentationPartId :: Lens' UpdateDocumentationPart Text Source #

Required
The identifier of the to-be-updated documentation part.

Destructuring the Response

documentationPart :: DocumentationPart Source #

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

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

  • dpLocation - The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
  • dpId - The DocumentationPart identifier, generated by Amazon API Gateway when the DocumentationPart is created.
  • dpProperties - A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ "description": "The API does ..." }" . Only Swagger-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a Swagger extension of x-amazon-apigateway-documentation .

data DocumentationPart Source #

A documentation part for a targeted API entity.

A documentation part consists of a content map (properties ) and a target (location ). The target specifies an API entity to which the documentation content applies. The supported API entity types are API , AUTHORIZER , MODEL , RESOURCE , METHOD , PATH_PARAMETER , QUERY_PARAMETER , REQUEST_HEADER , REQUEST_BODY , RESPONSE , RESPONSE_HEADER , and RESPONSE_BODY . Valid location fields depend on the API entity type. All valid fields are not required.

The content map is a JSON string of API-specific key-value pairs. Although an API can use any shape for the content map, only the Swagger-compliant documentation fields will be injected into the associated API entity definition in the exported Swagger definition file.

Documenting an API , DocumentationParts

See: documentationPart smart constructor.

Instances

Eq DocumentationPart Source # 
Data DocumentationPart Source # 

Methods

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

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

toConstr :: DocumentationPart -> Constr #

dataTypeOf :: DocumentationPart -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DocumentationPart Source # 
Show DocumentationPart Source # 
Generic DocumentationPart Source # 
Hashable DocumentationPart Source # 
FromJSON DocumentationPart Source # 
NFData DocumentationPart Source # 

Methods

rnf :: DocumentationPart -> () #

type Rep DocumentationPart Source # 
type Rep DocumentationPart = D1 (MetaData "DocumentationPart" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.4.5-BIK2fycuXdJFBbWQ9Hqf16" False) (C1 (MetaCons "DocumentationPart'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dpLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentationPartLocation))) ((:*:) (S1 (MetaSel (Just Symbol "_dpId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dpProperties") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

Response Lenses

dpLocation :: Lens' DocumentationPart (Maybe DocumentationPartLocation) Source #

The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

dpId :: Lens' DocumentationPart (Maybe Text) Source #

The DocumentationPart identifier, generated by Amazon API Gateway when the DocumentationPart is created.

dpProperties :: Lens' DocumentationPart (Maybe Text) Source #

A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ "description": "The API does ..." }" . Only Swagger-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a Swagger extension of x-amazon-apigateway-documentation .