Skip to content

Commit 1754d12

Browse files
committed
modify binaryMediaTypes property position in SpecRestApiProps
1 parent f37a525 commit 1754d12

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,14 @@ export interface SpecRestApiProps extends RestApiBaseProps {
300300
*/
301301
readonly apiDefinition: ApiDefinition;
302302

303+
/**
304+
* The list of binary media mime-types that are supported by the RestApi
305+
* resource, such as "image/png" or "application/octet-stream"
306+
*
307+
* @default - RestApi supports only UTF-8-encoded text payloads.
308+
*/
309+
readonly binaryMediaTypes?: string[];
310+
303311
/**
304312
* A Size(in bytes, kibibytes, mebibytes etc) that is used to enable compression (with non-negative
305313
* between 0 and 10485760 (10M) bytes, inclusive) or disable compression
@@ -332,12 +340,6 @@ export interface SpecRestApiProps extends RestApiBaseProps {
332340
* @default - `merge` for REST APIs created after March 29, 2021, otherwise `overwrite`
333341
*/
334342
readonly mode?: RestApiMode;
335-
/**
336-
* The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
337-
*
338-
* @default - RestApi supports only UTF-8-encoded text payloads.
339-
*/
340-
readonly binaryMediaTypes?: string[];
341343
}
342344

343345
/**

0 commit comments

Comments
 (0)