CfnDocumentationPartPropsMixin
- class aws_cdk.mixins_preview.aws_apigateway.mixins.CfnDocumentationPartPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::ApiGateway::DocumentationPartresource creates a documentation part for an API.For more information, see Representation of API Documentation in API Gateway in the API Gateway Developer Guide .
- See:
- CloudformationResource:
AWS::ApiGateway::DocumentationPart
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_apigateway import mixins as apigateway_mixins cfn_documentation_part_props_mixin = apigateway_mixins.CfnDocumentationPartPropsMixin(apigateway_mixins.CfnDocumentationPartMixinProps( location=apigateway_mixins.CfnDocumentationPartPropsMixin.LocationProperty( method="method", name="name", path="path", status_code="statusCode", type="type" ), properties="properties", rest_api_id="restApiId" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ApiGateway::DocumentationPart.- Parameters:
props (
Union[CfnDocumentationPartMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['location', 'properties', 'restApiId']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
LocationProperty
- class CfnDocumentationPartPropsMixin.LocationProperty(*, method=None, name=None, path=None, status_code=None, type=None)
Bases:
objectThe
Locationproperty specifies the location of the Amazon API Gateway API entity that the documentation applies to.Locationis a property of the AWS::ApiGateway::DocumentationPart resource. .. epigraph:For more information about each property, including constraints and valid values, see `DocumentationPart <https://docs.aws.amazon.com/apigateway/latest/api/API_DocumentationPartLocation.html>`_ in the *Amazon API Gateway REST API Reference* .
- Parameters:
method (
Optional[str]) – The HTTP verb of a method. It is a valid field for the API entity types ofMETHOD,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 (
Optional[str]) – The name of the targeted API entity. It is a valid and required field for the API entity types ofAUTHORIZER,MODEL,PATH_PARAMETER,QUERY_PARAMETER,REQUEST_HEADER,REQUEST_BODYandRESPONSE_HEADER. It is an invalid field for any other entity type.path (
Optional[str]) – The URL path of the target. It is a valid field for the API entity types ofRESOURCE,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 (
Optional[str]) – The HTTP status code of a response. It is a valid field for the API entity types ofRESPONSE,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 (
Optional[str]) – The type of API entity to which the documentation content applies. Valid values areAPI,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.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_apigateway import mixins as apigateway_mixins location_property = apigateway_mixins.CfnDocumentationPartPropsMixin.LocationProperty( method="method", name="name", path="path", status_code="statusCode", type="type" )
Attributes
- 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.
- 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.
- 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.
- status_code
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
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.