Skip to content

HttpApiProps

Properties for defining a HttpApi.

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

Initializer

import { HttpApiProps } from '@alicloud/ros-cdk-apig'
const httpApiProps: HttpApiProps = { ... }

Properties

Name Type Description
httpApiName string | @alicloud/ros-cdk-core.IResolvable Property httpApiName: The name of the HTTP API.
agentProtocols @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property agentProtocols: The agent protocols of the HTTP API.
aiProtocols @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property aiProtocols: The AI protocols of the HTTP API.
authConfig @alicloud/ros-cdk-core.IResolvable | AuthConfigProperty Property authConfig: The authentication configuration.
basePath string | @alicloud/ros-cdk-core.IResolvable Property basePath: The base path of the HTTP API.
belongGatewayId string | @alicloud/ros-cdk-core.IResolvable Property belongGatewayId: The gateway ID that the HTTP API belongs to.
builtinRouteNames @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property builtinRouteNames: The builtin route names.
deployConfigs @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | DeployConfigsProperty[] Property deployConfigs: The deploy configurations of the HTTP API.
description string | @alicloud/ros-cdk-core.IResolvable Property description: The description of the HTTP API.
enableAuth boolean | @alicloud/ros-cdk-core.IResolvable Property enableAuth: Whether to enable authentication.
firstByteTimeout number | @alicloud/ros-cdk-core.IResolvable Property firstByteTimeout: The first byte timeout.
ingressConfig @alicloud/ros-cdk-core.IResolvable | IngressConfigProperty Property ingressConfig: The ingress configuration of the HTTP API.
modelCategory string | @alicloud/ros-cdk-core.IResolvable Property modelCategory: The model category.
onlyChangeConfig boolean | @alicloud/ros-cdk-core.IResolvable Property onlyChangeConfig: Whether to only change config without triggering redeployment.
protocols @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property protocols: The protocols supported by the HTTP API.
removeBasePathOnForward boolean | @alicloud/ros-cdk-core.IResolvable Property removeBasePathOnForward: Whether to remove the base path on forward.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group.
strategy string | @alicloud/ros-cdk-core.IResolvable Property strategy: The strategy of the HTTP API.
type string | @alicloud/ros-cdk-core.IResolvable Property type: The type of the HTTP API.
versionConfig @alicloud/ros-cdk-core.IResolvable | VersionConfigProperty Property versionConfig: The version configuration of the HTTP API.

httpApiNameRequired

public readonly httpApiName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property httpApiName: The name of the HTTP API.


agentProtocolsOptional

public readonly agentProtocols: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property agentProtocols: The agent protocols of the HTTP API.


aiProtocolsOptional

public readonly aiProtocols: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property aiProtocols: The AI protocols of the HTTP API.


authConfigOptional

public readonly authConfig: IResolvable | AuthConfigProperty;

Property authConfig: The authentication configuration.


basePathOptional

public readonly basePath: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property basePath: The base path of the HTTP API.


belongGatewayIdOptional

public readonly belongGatewayId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


builtinRouteNamesOptional

public readonly builtinRouteNames: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property builtinRouteNames: The builtin route names.


deployConfigsOptional

public readonly deployConfigs: IResolvable | IResolvable | DeployConfigsProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | DeployConfigsProperty[]

Property deployConfigs: The deploy configurations of the HTTP API.


descriptionOptional

public readonly description: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property description: The description of the HTTP API.


enableAuthOptional

public readonly enableAuth: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property enableAuth: Whether to enable authentication.


firstByteTimeoutOptional

public readonly firstByteTimeout: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property firstByteTimeout: The first byte timeout.


ingressConfigOptional

public readonly ingressConfig: IResolvable | IngressConfigProperty;

Property ingressConfig: The ingress configuration of the HTTP API.


modelCategoryOptional

public readonly modelCategory: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property modelCategory: The model category.


onlyChangeConfigOptional

public readonly onlyChangeConfig: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

True means only modify configuration without triggering redeployment.


protocolsOptional

public readonly protocols: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property protocols: The protocols supported by the HTTP API.


removeBasePathOnForwardOptional

public readonly removeBasePathOnForward: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The ID of the resource group.


strategyOptional

public readonly strategy: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property strategy: The strategy of the HTTP API.


typeOptional

public readonly type: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property type: The type of the HTTP API.


versionConfigOptional

public readonly versionConfig: IResolvable | VersionConfigProperty;

Property versionConfig: The version configuration of the HTTP API.