We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.DocumentationPart
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGateway::DocumentationPart resource creates a documentation part for an API. For more information, see Representation of API Documentation in API Gateway in the API Gateway Developer Guide.
Create DocumentationPart Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DocumentationPart(name: string, args: DocumentationPartArgs, opts?: CustomResourceOptions);@overload
def DocumentationPart(resource_name: str,
                      args: DocumentationPartArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def DocumentationPart(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      location: Optional[DocumentationPartLocationArgs] = None,
                      properties: Optional[str] = None,
                      rest_api_id: Optional[str] = None)func NewDocumentationPart(ctx *Context, name string, args DocumentationPartArgs, opts ...ResourceOption) (*DocumentationPart, error)public DocumentationPart(string name, DocumentationPartArgs args, CustomResourceOptions? opts = null)
public DocumentationPart(String name, DocumentationPartArgs args)
public DocumentationPart(String name, DocumentationPartArgs args, CustomResourceOptions options)
type: aws-native:apigateway:DocumentationPart
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DocumentationPartArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DocumentationPartArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DocumentationPartArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DocumentationPartArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DocumentationPartArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DocumentationPart Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DocumentationPart resource accepts the following input properties:
- Location
Pulumi.Aws Native. Api Gateway. Inputs. Documentation Part Location 
- The location of the targeted API entity of the to-be-created documentation part.
- Properties string
- The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
- RestApi stringId 
- The string identifier of the associated RestApi.
- Location
DocumentationPart Location Args 
- The location of the targeted API entity of the to-be-created documentation part.
- Properties string
- The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
- RestApi stringId 
- The string identifier of the associated RestApi.
- location
DocumentationPart Location 
- The location of the targeted API entity of the to-be-created documentation part.
- properties String
- The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
- restApi StringId 
- The string identifier of the associated RestApi.
- location
DocumentationPart Location 
- The location of the targeted API entity of the to-be-created documentation part.
- properties string
- The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
- restApi stringId 
- The string identifier of the associated RestApi.
- location
DocumentationPart Location Args 
- The location of the targeted API entity of the to-be-created documentation part.
- properties str
- The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
- rest_api_ strid 
- The string identifier of the associated RestApi.
- location Property Map
- The location of the targeted API entity of the to-be-created documentation part.
- properties String
- The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
- restApi StringId 
- The string identifier of the associated RestApi.
Outputs
All input properties are implicitly available as output properties. Additionally, the DocumentationPart resource produces the following output properties:
- DocumentationPart stringId 
- The ID for the documentation part.
- Id string
- The provider-assigned unique ID for this managed resource.
- DocumentationPart stringId 
- The ID for the documentation part.
- Id string
- The provider-assigned unique ID for this managed resource.
- documentationPart StringId 
- The ID for the documentation part.
- id String
- The provider-assigned unique ID for this managed resource.
- documentationPart stringId 
- The ID for the documentation part.
- id string
- The provider-assigned unique ID for this managed resource.
- documentation_part_ strid 
- The ID for the documentation part.
- id str
- The provider-assigned unique ID for this managed resource.
- documentationPart StringId 
- The ID for the documentation part.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
DocumentationPartLocation, DocumentationPartLocationArgs      
- Method string
- 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.
- Name string
- 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.
- Path string
- 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.
- StatusCode string
- 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.
- Type
Pulumi.Aws Native. Api Gateway. Documentation Part Location 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.
- Method string
- 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.
- Name string
- 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.
- Path string
- 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.
- StatusCode string
- 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.
- Type
DocumentationPart Location 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.
- method String
- 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.
- name String
- 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.
- path String
- 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.
- statusCode String
- 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.
- type
DocumentationPart Location 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.
- method string
- 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.
- name string
- 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.
- path string
- 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.
- statusCode string
- 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.
- type
DocumentationPart Location 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.
- method str
- 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.
- name str
- 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.
- path str
- 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.
- status_code str
- 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.
- type
DocumentationPart Location 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.
- method String
- 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.
- name String
- 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.
- path String
- 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.
- statusCode String
- 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.
- type "API" | "AUTHORIZER" | "MODEL" | "RESOURCE" | "METHOD" | "PATH_PARAMETER" | "QUERY_PARAMETER" | "REQUEST_HEADER" | "REQUEST_BODY" | "RESPONSE" | "RESPONSE_HEADER" | "RESPONSE_BODY"
- 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.
DocumentationPartLocationType, DocumentationPartLocationTypeArgs        
- Api
- API
- Authorizer
- AUTHORIZER
- Model
- MODEL
- Resource
- RESOURCE
- Method
- METHOD
- PathParameter 
- PATH_PARAMETER
- QueryParameter 
- QUERY_PARAMETER
- RequestHeader 
- REQUEST_HEADER
- RequestBody 
- REQUEST_BODY
- Response
- RESPONSE
- ResponseHeader 
- RESPONSE_HEADER
- ResponseBody 
- RESPONSE_BODY
- DocumentationPart Location Type Api 
- API
- DocumentationPart Location Type Authorizer 
- AUTHORIZER
- DocumentationPart Location Type Model 
- MODEL
- DocumentationPart Location Type Resource 
- RESOURCE
- DocumentationPart Location Type Method 
- METHOD
- DocumentationPart Location Type Path Parameter 
- PATH_PARAMETER
- DocumentationPart Location Type Query Parameter 
- QUERY_PARAMETER
- DocumentationPart Location Type Request Header 
- REQUEST_HEADER
- DocumentationPart Location Type Request Body 
- REQUEST_BODY
- DocumentationPart Location Type Response 
- RESPONSE
- DocumentationPart Location Type Response Header 
- RESPONSE_HEADER
- DocumentationPart Location Type Response Body 
- RESPONSE_BODY
- Api
- API
- Authorizer
- AUTHORIZER
- Model
- MODEL
- Resource
- RESOURCE
- Method
- METHOD
- PathParameter 
- PATH_PARAMETER
- QueryParameter 
- QUERY_PARAMETER
- RequestHeader 
- REQUEST_HEADER
- RequestBody 
- REQUEST_BODY
- Response
- RESPONSE
- ResponseHeader 
- RESPONSE_HEADER
- ResponseBody 
- RESPONSE_BODY
- Api
- API
- Authorizer
- AUTHORIZER
- Model
- MODEL
- Resource
- RESOURCE
- Method
- METHOD
- PathParameter 
- PATH_PARAMETER
- QueryParameter 
- QUERY_PARAMETER
- RequestHeader 
- REQUEST_HEADER
- RequestBody 
- REQUEST_BODY
- Response
- RESPONSE
- ResponseHeader 
- RESPONSE_HEADER
- ResponseBody 
- RESPONSE_BODY
- API
- API
- AUTHORIZER
- AUTHORIZER
- MODEL
- MODEL
- RESOURCE
- RESOURCE
- METHOD
- METHOD
- PATH_PARAMETER
- PATH_PARAMETER
- QUERY_PARAMETER
- QUERY_PARAMETER
- REQUEST_HEADER
- REQUEST_HEADER
- REQUEST_BODY
- REQUEST_BODY
- RESPONSE
- RESPONSE
- RESPONSE_HEADER
- RESPONSE_HEADER
- RESPONSE_BODY
- RESPONSE_BODY
- "API"
- API
- "AUTHORIZER"
- AUTHORIZER
- "MODEL"
- MODEL
- "RESOURCE"
- RESOURCE
- "METHOD"
- METHOD
- "PATH_PARAMETER"
- PATH_PARAMETER
- "QUERY_PARAMETER"
- QUERY_PARAMETER
- "REQUEST_HEADER"
- REQUEST_HEADER
- "REQUEST_BODY"
- REQUEST_BODY
- "RESPONSE"
- RESPONSE
- "RESPONSE_HEADER"
- RESPONSE_HEADER
- "RESPONSE_BODY"
- RESPONSE_BODY
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.