Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data DocumentationPartLocation = DocumentationPartLocation' {}
- newDocumentationPartLocation :: DocumentationPartType -> DocumentationPartLocation
- documentationPartLocation_path :: Lens' DocumentationPartLocation (Maybe Text)
- documentationPartLocation_name :: Lens' DocumentationPartLocation (Maybe Text)
- documentationPartLocation_method :: Lens' DocumentationPartLocation (Maybe Text)
- documentationPartLocation_statusCode :: Lens' DocumentationPartLocation (Maybe Text)
- documentationPartLocation_type :: Lens' DocumentationPartLocation DocumentationPartType
Documentation
data DocumentationPartLocation Source #
Specifies the target API entity to which the documentation applies.
See: newDocumentationPartLocation
smart constructor.
DocumentationPartLocation' | |
|
Instances
newDocumentationPartLocation Source #
Create a value of DocumentationPartLocation
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:path:DocumentationPartLocation'
, documentationPartLocation_path
- The URL path of the target. It is a valid field for the API entity types
of RESOURCE
, METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and
RESPONSE_BODY
. The default value is /
for the root resource. When
an applicable child entity inherits the content of another entity of the
same type with more general specifications of the other location
attributes, the child entity's path
attribute must match that of the
parent entity as a prefix.
$sel:name:DocumentationPartLocation'
, documentationPartLocation_name
- The name of the targeted API entity. It is a valid and required field
for the API entity types of AUTHORIZER
, MODEL
, PATH_PARAMETER
,
QUERY_PARAMETER
, REQUEST_HEADER
, REQUEST_BODY
and
RESPONSE_HEADER
. It is an invalid field for any other entity type.
$sel:method:DocumentationPartLocation'
, documentationPartLocation_method
- The HTTP verb of a method. It is a valid field for the API entity types
of METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The
default value is *
for any method. When an applicable child entity
inherits the content of an entity of the same type with more general
specifications of the other location
attributes, the child entity's
method
attribute must match that of the parent entity exactly.
$sel:statusCode:DocumentationPartLocation'
, documentationPartLocation_statusCode
- The HTTP status code of a response. It is a valid field for the API
entity types of RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The
default value is *
for any status code. When an applicable child
entity inherits the content of an entity of the same type with more
general specifications of the other location
attributes, the child
entity's statusCode
attribute must match that of the parent entity
exactly.
$sel:type':DocumentationPartLocation'
, documentationPartLocation_type
- [Required] The type of API entity to which the documentation content
applies. Valid values are API
, AUTHORIZER
, MODEL
, RESOURCE
,
METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
.
Content inheritance does not apply to any entity of the API
,
AUTHORIZER
, METHOD
, MODEL
, REQUEST_BODY
, or RESOURCE
type.
documentationPartLocation_path :: Lens' DocumentationPartLocation (Maybe Text) Source #
The URL path of the target. It is a valid field for the API entity types
of RESOURCE
, METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
,
REQUEST_HEADER
, REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and
RESPONSE_BODY
. The default value is /
for the root resource. When
an applicable child entity inherits the content of another entity of the
same type with more general specifications of the other location
attributes, the child entity's path
attribute must match that of the
parent entity as a prefix.
documentationPartLocation_name :: Lens' DocumentationPartLocation (Maybe Text) Source #
The name of the targeted API entity. It is a valid and required field
for the API entity types of AUTHORIZER
, MODEL
, PATH_PARAMETER
,
QUERY_PARAMETER
, REQUEST_HEADER
, REQUEST_BODY
and
RESPONSE_HEADER
. It is an invalid field for any other entity type.
documentationPartLocation_method :: Lens' DocumentationPartLocation (Maybe Text) Source #
The HTTP verb of a method. It is a valid field for the API entity types
of METHOD
, PATH_PARAMETER
, QUERY_PARAMETER
, REQUEST_HEADER
,
REQUEST_BODY
, RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The
default value is *
for any method. When an applicable child entity
inherits the content of an entity of the same type with more general
specifications of the other location
attributes, the child entity's
method
attribute must match that of the parent entity exactly.
documentationPartLocation_statusCode :: Lens' DocumentationPartLocation (Maybe Text) Source #
The HTTP status code of a response. It is a valid field for the API
entity types of RESPONSE
, RESPONSE_HEADER
, and RESPONSE_BODY
. The
default value is *
for any status code. When an applicable child
entity inherits the content of an entity of the same type with more
general specifications of the other location
attributes, the child
entity's statusCode
attribute must match that of the parent entity
exactly.
documentationPartLocation_type :: Lens' DocumentationPartLocation DocumentationPartType Source #
- Required
- The type of API entity to which the documentation content
applies. Valid values are
API
,AUTHORIZER
,MODEL
,RESOURCE
,METHOD
,PATH_PARAMETER
,QUERY_PARAMETER
,REQUEST_HEADER
,REQUEST_BODY
,RESPONSE
,RESPONSE_HEADER
, andRESPONSE_BODY
. Content inheritance does not apply to any entity of theAPI
,AUTHORIZER
,METHOD
,MODEL
,REQUEST_BODY
, orRESOURCE
type.