# CfnDocumentationPartProps

Struct · External

Properties for defining a `CfnDocumentationPart`.

Used as props by: [CfnDocumentationPart](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.CfnDocumentationPart.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnDocumentationPartProps: apigateway.CfnDocumentationPartProps = {
  location: {
    method: 'method',
    name: 'name',
    path: 'path',
    statusCode: 'statusCode',
    type: 'type',
  },
  properties: 'properties',
  restApiId: 'restApiId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigateway as apigateway

cfn_documentation_part_props = apigateway.CfnDocumentationPartProps(
    location=apigateway.CfnDocumentationPart.LocationProperty(
        method="method",
        name="name",
        path="path",
        status_code="statusCode",
        type="type"
    ),
    properties="properties",
    rest_api_id="restApiId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;

CfnDocumentationPartProps cfnDocumentationPartProps = CfnDocumentationPartProps.builder()
        .location(LocationProperty.builder()
                .method("method")
                .name("name")
                .path("path")
                .statusCode("statusCode")
                .type("type")
                .build())
        .properties("properties")
        .restApiId("restApiId")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;

var cfnDocumentationPartProps = new CfnDocumentationPartProps {
    Location = new LocationProperty {
        Method = "method",
        Name = "name",
        Path = "path",
        StatusCode = "statusCode",
        Type = "type"
    },
    Properties = "properties",
    RestApiId = "restApiId"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDocumentationPartProps := &CfnDocumentationPartProps{
	Location: &LocationProperty{
		Method: jsii.String("method"),
		Name: jsii.String("name"),
		Path: jsii.String("path"),
		StatusCode: jsii.String("statusCode"),
		Type: jsii.String("type"),
	},
	Properties: jsii.String("properties"),
	RestApiId: jsii.String("restApiId"),
}
```

## Properties

- `location`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDocumentationPart.LocationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.CfnDocumentationPart.LocationProperty.html) (required) — The location of the targeted API entity of the to-be-created documentation part.

- `properties`: string (required) — 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.

- `restApiId`: string | [IRestApiRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_apigateway.IRestApiRef.html) (required) — The string identifier of the associated RestApi.
