GetApiResult

data class GetApiResult(val apiEndpoint: String? = null, val apiId: String? = null, val apiKeySelectionExpression: String? = null, val corsConfiguration: ApiCors? = null, val description: String? = null, val disableExecuteApiEndpoint: Boolean? = null, val ipAddressType: String? = null, val name: String? = null, val routeSelectionExpression: String? = null, val tags: Map<String, String>? = null, val version: String? = null)

Constructors

Link copied to clipboard
constructor(apiEndpoint: String? = null, apiId: String? = null, apiKeySelectionExpression: String? = null, corsConfiguration: ApiCors? = null, description: String? = null, disableExecuteApiEndpoint: Boolean? = null, ipAddressType: String? = null, name: String? = null, routeSelectionExpression: String? = null, tags: Map<String, String>? = null, version: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val apiEndpoint: String? = null

The default endpoint for an API. For example: https://abcdef.execute-api.us-west-2.amazonaws.com .

Link copied to clipboard
val apiId: String? = null

The API identifier.

Link copied to clipboard

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

Link copied to clipboard

A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.

Link copied to clipboard
val description: String? = null

The description of the API.

Link copied to clipboard

Specifies whether clients can invoke your API by using the default `execute-api` endpoint. By 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.

Link copied to clipboard
val ipAddressType: String? = null

The IP address types that can invoke the API. Use ipv4 to allow only IPv4 addresses to invoke your API, or use dualstack to allow both IPv4 and IPv6 addresses to invoke your API. Don’t use IP address type for an HTTP API based on an OpenAPI specification. Instead, specify the IP address type in the OpenAPI specification.

Link copied to clipboard
val name: String? = null

The name of the API. Required unless you specify an OpenAPI definition for `Body` or `S3BodyLocation`.

Link copied to clipboard

The route selection expression for the API. For HTTP APIs, the `routeSelectionExpression` must be `${request.method} ${request.path}`. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

Link copied to clipboard
val tags: Map<String, String>? = null

The collection of tags. Each tag element is associated with a given resource.

Link copied to clipboard
val version: String? = null

A version identifier for the API.