Skip to content

HttpApiProps

Properties for defining a HttpApi.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apig-httpapi

Initializer

import ros_cdk_apig
ros_cdk_apig.HttpApiProps(
  http_api_name: typing.Union[str, IResolvable],
  agent_protocols: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  ai_protocols: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  auth_config: typing.Union[IResolvable, AuthConfigProperty] = None,
  base_path: typing.Union[str, IResolvable] = None,
  belong_gateway_id: typing.Union[str, IResolvable] = None,
  builtin_route_names: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  deploy_configs: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, DeployConfigsProperty]]] = None,
  description: typing.Union[str, IResolvable] = None,
  enable_auth: typing.Union[bool, IResolvable] = None,
  first_byte_timeout: typing.Union[typing.Union[int, float], IResolvable] = None,
  ingress_config: typing.Union[IResolvable, IngressConfigProperty] = None,
  model_category: typing.Union[str, IResolvable] = None,
  only_change_config: typing.Union[bool, IResolvable] = None,
  protocols: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  remove_base_path_on_forward: typing.Union[bool, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  strategy: typing.Union[str, IResolvable] = None,
  type: typing.Union[str, IResolvable] = None,
  version_config: typing.Union[IResolvable, VersionConfigProperty] = None
)

Properties

Name Type Description
http_api_name typing.Union[str, ros_cdk_core.IResolvable] Property httpApiName: The name of the HTTP API.
agent_protocols typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property agentProtocols: The agent protocols of the HTTP API.
ai_protocols typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property aiProtocols: The AI protocols of the HTTP API.
auth_config typing.Union[ros_cdk_core.IResolvable, AuthConfigProperty] Property authConfig: The authentication configuration.
base_path typing.Union[str, ros_cdk_core.IResolvable] Property basePath: The base path of the HTTP API.
belong_gateway_id typing.Union[str, ros_cdk_core.IResolvable] Property belongGatewayId: The gateway ID that the HTTP API belongs to.
builtin_route_names typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property builtinRouteNames: The builtin route names.
deploy_configs typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DeployConfigsProperty]]] Property deployConfigs: The deploy configurations of the HTTP API.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the HTTP API.
enable_auth typing.Union[bool, ros_cdk_core.IResolvable] Property enableAuth: Whether to enable authentication.
first_byte_timeout typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property firstByteTimeout: The first byte timeout.
ingress_config typing.Union[ros_cdk_core.IResolvable, IngressConfigProperty] Property ingressConfig: The ingress configuration of the HTTP API.
model_category typing.Union[str, ros_cdk_core.IResolvable] Property modelCategory: The model category.
only_change_config typing.Union[bool, ros_cdk_core.IResolvable] Property onlyChangeConfig: Whether to only change config without triggering redeployment.
protocols typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property protocols: The protocols supported by the HTTP API.
remove_base_path_on_forward typing.Union[bool, ros_cdk_core.IResolvable] Property removeBasePathOnForward: Whether to remove the base path on forward.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group.
strategy typing.Union[str, ros_cdk_core.IResolvable] Property strategy: The strategy of the HTTP API.
type typing.Union[str, ros_cdk_core.IResolvable] Property type: The type of the HTTP API.
version_config typing.Union[ros_cdk_core.IResolvable, VersionConfigProperty] Property versionConfig: The version configuration of the HTTP API.

http_api_nameRequired

http_api_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property httpApiName: The name of the HTTP API.


agent_protocolsOptional

agent_protocols: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property agentProtocols: The agent protocols of the HTTP API.


ai_protocolsOptional

ai_protocols: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property aiProtocols: The AI protocols of the HTTP API.


auth_configOptional

auth_config: typing.Union[IResolvable, AuthConfigProperty]

Property authConfig: The authentication configuration.


base_pathOptional

base_path: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property basePath: The base path of the HTTP API.


belong_gateway_idOptional

belong_gateway_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property belongGatewayId: The gateway ID that the HTTP API belongs to.


builtin_route_namesOptional

builtin_route_names: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property builtinRouteNames: The builtin route names.


deploy_configsOptional

deploy_configs: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, DeployConfigsProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DeployConfigsProperty]]]

Property deployConfigs: The deploy configurations of the HTTP API.


descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: The description of the HTTP API.


enable_authOptional

enable_auth: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableAuth: Whether to enable authentication.


first_byte_timeoutOptional

first_byte_timeout: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property firstByteTimeout: The first byte timeout.


ingress_configOptional

ingress_config: typing.Union[IResolvable, IngressConfigProperty]

Property ingressConfig: The ingress configuration of the HTTP API.


model_categoryOptional

model_category: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property modelCategory: The model category.


only_change_configOptional

only_change_config: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property onlyChangeConfig: Whether to only change config without triggering redeployment.

True means only modify configuration without triggering redeployment.


protocolsOptional

protocols: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property protocols: The protocols supported by the HTTP API.


remove_base_path_on_forwardOptional

remove_base_path_on_forward: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property removeBasePathOnForward: Whether to remove the base path on forward.


resource_group_idOptional

resource_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property resourceGroupId: The ID of the resource group.


strategyOptional

strategy: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property strategy: The strategy of the HTTP API.


typeOptional

type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property type: The type of the HTTP API.


version_configOptional

version_config: typing.Union[IResolvable, VersionConfigProperty]

Property versionConfig: The version configuration of the HTTP API.