This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::ApiGateway::DocumentationPart Location
The Location property specifies the location of the Amazon API Gateway API entity that the documentation applies to. Location is a property of the AWS::ApiGateway::DocumentationPart resource.
Note
For more information about each property, including constraints and valid values, see DocumentationPart in the Amazon API Gateway REST API Reference.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Method" :String, "Name" :String, "Path" :String, "StatusCode" :String, "Type" :String}
YAML
Method:StringName:StringPath:StringStatusCode:StringType:String
Properties
- 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, andRESPONSE_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 otherlocationattributes, the child entity'smethodattribute must match that of the parent entity exactly.Required: No Type: String Update requires: Replacement 
- 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_BODYandRESPONSE_HEADER. It is an invalid field for any other entity type.Required: No Type: String Update requires: Replacement 
- 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, andRESPONSE_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 otherlocationattributes, the child entity'spathattribute must match that of the parent entity as a prefix.Required: No Type: String Update requires: Replacement 
- StatusCode
- 
                    The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE,RESPONSE_HEADER, andRESPONSE_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 otherlocationattributes, the child entity'sstatusCodeattribute must match that of the parent entity exactly.Required: No Type: String Pattern: ^([1-5]\d\d|\*|\s*)$Update requires: Replacement 
- Type
- 
                    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, orRESOURCEtype.Required: No Type: String Allowed values: API | AUTHORIZER | MODEL | RESOURCE | METHOD | PATH_PARAMETER | QUERY_PARAMETER | REQUEST_HEADER | REQUEST_BODY | RESPONSE | RESPONSE_HEADER | RESPONSE_BODYUpdate requires: Replacement 
See also
- 
                    DocumentationPart in the Amazon API Gateway REST API Reference