Skip to main content

documentation_parts

Creates, updates, deletes or gets a documentation_part resource or lists documentation_parts in a region

Overview

Namedocumentation_parts
TypeResource
DescriptionThe ``AWS::ApiGateway::DocumentationPart`` resource creates a documentation part for an API. For more information, see [Representation of API Documentation in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api-content-representation.html) in the *API Gateway Developer Guide*.
Idawscc.apigateway.documentation_parts

Fields

NameDatatypeDescription
documentation_part_idstring
locationobjectThe &#96;&#96;Location&#96;&#96; property specifies the location of the Amazon API Gateway API entity that the documentation applies to. &#96;&#96;Location&#96;&#96; is a property of the &#91;AWS::ApiGateway::DocumentationPart&#93;(https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html) resource.<br />For more information about each property, including constraints and valid values, see &#91;DocumentationPart&#93;(https://docs.aws.amazon.com/apigateway/latest/api/API&#95;DocumentationPartLocation.html) in the &#42;Amazon API Gateway REST API Reference&#42;.
propertiesstring
rest_api_idstring
regionstringAWS region.

For more information, see AWS::ApiGateway::DocumentationPart.

Methods

NameResourceAccessible byRequired Params
create_resourcedocumentation_partsINSERTLocation, Properties, RestApiId, region
delete_resourcedocumentation_partsDELETEIdentifier, region
update_resourcedocumentation_partsUPDATEIdentifier, PatchDocument, region
list_resourcesdocumentation_parts_list_onlySELECTregion
get_resourcedocumentation_partsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual documentation_part.

SELECT
region,
documentation_part_id,
location,
properties,
rest_api_id
FROM awscc.apigateway.documentation_parts
WHERE
region = 'us-east-1' AND
Identifier = '{{ documentation_part_id }}|{{ rest_api_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new documentation_part resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.apigateway.documentation_parts (
Location,
Properties,
RestApiId,
region
)
SELECT
'{{ location }}',
'{{ properties }}',
'{{ rest_api_id }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a documentation_part resource, using stack-deploy.

/*+ update */
UPDATE awscc.apigateway.documentation_parts
SET PatchDocument = string('{{ {
"Properties": properties
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ documentation_part_id }}|{{ rest_api_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.apigateway.documentation_parts
WHERE
Identifier = '{{ documentation_part_id }}|{{ rest_api_id }}' AND
region = 'us-east-1';

Permissions

To operate on the documentation_parts resource, the following permissions are required:

apigateway:GET,
apigateway:POST