Import Api
| apigatewayv2_import_api | R Documentation |
Imports an API¶
Description¶
Imports an API.
Usage¶
Arguments¶
BasepathSpecifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
Body[required] The OpenAPI definition. Supported only for HTTP APIs.
FailOnWarningsSpecifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
Value¶
A list with the following syntax:
list(
ApiEndpoint = "string",
ApiGatewayManaged = TRUE|FALSE,
ApiId = "string",
ApiKeySelectionExpression = "string",
CorsConfiguration = list(
AllowCredentials = TRUE|FALSE,
AllowHeaders = list(
"string"
),
AllowMethods = list(
"string"
),
AllowOrigins = list(
"string"
),
ExposeHeaders = list(
"string"
),
MaxAge = 123
),
CreatedDate = as.POSIXct(
"2015-01-01"
),
Description = "string",
DisableSchemaValidation = TRUE|FALSE,
DisableExecuteApiEndpoint = TRUE|FALSE,
ImportInfo = list(
"string"
),
Name = "string",
ProtocolType = "WEBSOCKET"|"HTTP",
RouteSelectionExpression = "string",
Tags = list(
"string"
),
Version = "string",
Warnings = list(
"string"
)
)