libZSservicesZSamazonka-apigatewayZSamazonka-apigateway
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.APIGateway.ImportDocumentationParts

Description

  • - | Undocumented operation.
Synopsis

Creating a Request

data ImportDocumentationParts Source #

Import documentation parts from an external (e.g., OpenAPI) definition file.

See: newImportDocumentationParts smart constructor.

Constructors

ImportDocumentationParts' 

Fields

  • mode :: Maybe PutMode

    A query parameter to indicate whether to overwrite (OVERWRITE) any existing DocumentationParts definition or to merge (MERGE) the new definition into the existing one. The default value is MERGE.

  • failOnWarnings :: Maybe Bool

    A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.

  • restApiId :: Text
    Required
    The string identifier of the associated RestApi.
  • body :: ByteString
    Required
    Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.

Instances

Instances details
Eq ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Show ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Generic ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Associated Types

type Rep ImportDocumentationParts :: Type -> Type #

NFData ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Hashable ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

AWSRequest ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

ToBody ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

ToHeaders ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

ToPath ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

ToQuery ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationParts = D1 ('MetaData "ImportDocumentationParts" "Amazonka.APIGateway.ImportDocumentationParts" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "ImportDocumentationParts'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PutMode)) :*: S1 ('MetaSel ('Just "failOnWarnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))))
type AWSResponse ImportDocumentationParts Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

newImportDocumentationParts Source #

Create a value of ImportDocumentationParts with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:mode:ImportDocumentationParts', importDocumentationParts_mode - A query parameter to indicate whether to overwrite (OVERWRITE) any existing DocumentationParts definition or to merge (MERGE) the new definition into the existing one. The default value is MERGE.

$sel:failOnWarnings:ImportDocumentationParts', importDocumentationParts_failOnWarnings - A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.

$sel:restApiId:ImportDocumentationParts', importDocumentationParts_restApiId - [Required] The string identifier of the associated RestApi.

$sel:body:ImportDocumentationParts', importDocumentationParts_body - [Required] Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.

Request Lenses

importDocumentationParts_mode :: Lens' ImportDocumentationParts (Maybe PutMode) Source #

A query parameter to indicate whether to overwrite (OVERWRITE) any existing DocumentationParts definition or to merge (MERGE) the new definition into the existing one. The default value is MERGE.

importDocumentationParts_failOnWarnings :: Lens' ImportDocumentationParts (Maybe Bool) Source #

A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.

importDocumentationParts_restApiId :: Lens' ImportDocumentationParts Text Source #

Required
The string identifier of the associated RestApi.

importDocumentationParts_body :: Lens' ImportDocumentationParts ByteString Source #

Required
Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.

Destructuring the Response

data ImportDocumentationPartsResponse Source #

A collection of the imported DocumentationPart identifiers.

This is used to return the result when documentation parts in an external (e.g., OpenAPI) file are imported into API Gateway

Documenting an API, documentationpart:import, DocumentationPart

See: newImportDocumentationPartsResponse smart constructor.

Constructors

ImportDocumentationPartsResponse' 

Fields

  • ids :: Maybe [Text]

    A list of the returned documentation part identifiers.

  • warnings :: Maybe [Text]

    A list of warning messages reported during import of documentation parts.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ImportDocumentationPartsResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Read ImportDocumentationPartsResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Show ImportDocumentationPartsResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Generic ImportDocumentationPartsResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

Associated Types

type Rep ImportDocumentationPartsResponse :: Type -> Type #

NFData ImportDocumentationPartsResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationPartsResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationPartsResponse = D1 ('MetaData "ImportDocumentationPartsResponse" "Amazonka.APIGateway.ImportDocumentationParts" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "ImportDocumentationPartsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "warnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newImportDocumentationPartsResponse Source #

Create a value of ImportDocumentationPartsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:ids:ImportDocumentationPartsResponse', importDocumentationPartsResponse_ids - A list of the returned documentation part identifiers.

$sel:warnings:ImportDocumentationPartsResponse', importDocumentationPartsResponse_warnings - A list of warning messages reported during import of documentation parts.

$sel:httpStatus:ImportDocumentationPartsResponse', importDocumentationPartsResponse_httpStatus - The response's http status code.

Response Lenses

importDocumentationPartsResponse_ids :: Lens' ImportDocumentationPartsResponse (Maybe [Text]) Source #

A list of the returned documentation part identifiers.

importDocumentationPartsResponse_warnings :: Lens' ImportDocumentationPartsResponse (Maybe [Text]) Source #

A list of warning messages reported during import of documentation parts.