@Stability(value=Stable) @Internal public static final class CfnRestApiProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnRestApiProps
CfnRestApiPropssoftware.amazon.jsii.JsiiObject.InitializationModeCfnRestApiProps.Builder, CfnRestApiProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnRestApiProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnRestApiProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getApiKeySourceType()
The source of the API key for metering requests according to a usage plan.
|
List<String> |
getBinaryMediaTypes()
The list of binary media types that are supported by the `RestApi` resource.
|
Object |
getBody()
An OpenAPI specification that defines a set of RESTful APIs in JSON format.
|
Object |
getBodyS3Location()
The Amazon Simple Storage Service (Amazon S3) location that points to an OpenAPI file, which defines a set of RESTful APIs in JSON or YAML format.
|
String |
getCloneFrom()
The ID of the `RestApi` resource that you want to clone.
|
String |
getDescription()
A description of the `RestApi` resource.
|
Object |
getDisableExecuteApiEndpoint()
Specifies whether clients can invoke your API by using the default `execute-api` endpoint.
|
Object |
getEndpointConfiguration()
A list of the endpoint types of the API.
|
Object |
getFailOnWarnings()
Indicates whether to roll back the resource if a warning occurs while API Gateway is creating the `RestApi` resource.
|
Number |
getMinimumCompressionSize()
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API.
|
String |
getMode()
This property applies only when you use OpenAPI to define your REST API.
|
String |
getName()
A name for the `RestApi` resource.
|
Object |
getParameters()
Custom header parameters for the request.
|
Object |
getPolicy()
A policy document that contains the permissions for the `RestApi` resource.
|
List<CfnTag> |
getTags()
An array of arbitrary tags (key-value pairs) to associate with the API.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnRestApiProps.Builder builder)
CfnRestApiProps.Builder.public final String getApiKeySourceType()
CfnRestApiProps
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a Lambda authorizer.getApiKeySourceType in interface CfnRestApiPropspublic final List<String> getBinaryMediaTypes()
CfnRestApiProps
Use ~1 instead of / in the media types, for example image~1png or application~1octet-stream . By default, RestApi supports only UTF-8-encoded text payloads. Duplicates are not allowed. For more information, see Enable Support for Binary Payloads in API Gateway in the API Gateway Developer Guide .
getBinaryMediaTypes in interface CfnRestApiPropspublic final Object getBody()
CfnRestApiPropsFor YAML templates, you can also provide the specification in YAML format.
getBody in interface CfnRestApiPropspublic final Object getBodyS3Location()
CfnRestApiPropsgetBodyS3Location in interface CfnRestApiPropspublic final String getCloneFrom()
CfnRestApiPropsgetCloneFrom in interface CfnRestApiPropspublic final String getDescription()
CfnRestApiPropsgetDescription in interface CfnRestApiPropspublic final Object getDisableExecuteApiEndpoint()
CfnRestApiPropsBy default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
getDisableExecuteApiEndpoint in interface CfnRestApiPropspublic final Object getEndpointConfiguration()
CfnRestApiProps
Use this property when creating an API. When importing an existing API, specify the endpoint configuration types using the Parameters property.
getEndpointConfiguration in interface CfnRestApiPropspublic final Object getFailOnWarnings()
CfnRestApiPropsgetFailOnWarnings in interface CfnRestApiPropspublic final Number getMinimumCompressionSize()
CfnRestApiPropsWhen compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
getMinimumCompressionSize in interface CfnRestApiPropspublic final String getMode()
CfnRestApiProps
The Mode determines how API Gateway handles resource updates.
Valid values are overwrite or merge .
For overwrite , the new API definition replaces the existing one. The existing API identifier remains unchanged.
For merge , the new API definition takes precedence, but any container types such as endpoint configurations and binary media types are merged with the existing API. Use merge to define top-level RestApi properties in addition to using OpenAPI. Generally, it's preferred to use API Gateway's OpenAPI extensions to model these properties.
If you don't specify this property, a default value is chosen. For REST APIs created before March 29, 2021, the default is overwrite . Otherwise, the default value is merge .
getMode in interface CfnRestApiPropspublic final String getName()
CfnRestApiPropsgetName in interface CfnRestApiPropspublic final Object getParameters()
CfnRestApiPropsgetParameters in interface CfnRestApiPropspublic final Object getPolicy()
CfnRestApiProps
To set the ARN for the policy, use the !Join intrinsic function with "" as delimiter and values of "execute-api:/" and "*" .
getPolicy in interface CfnRestApiPropspublic final List<CfnTag> getTags()
CfnRestApiPropsgetTags in interface CfnRestApiProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.