Skip to content

HttpApi

This class encapsulates and extends the ROS resource type ALIYUN::APIG::HttpApi.

Initializers

import com.aliyun.ros.cdk.apig.HttpApi;
HttpApi.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .httpApiName(java.lang.String)
    .httpApiName(IResolvable)
//  .agentProtocols(IResolvable)
//  .agentProtocols(java.util.List<java.lang.String)
//  .agentProtocols(IResolvable>)
//  .aiProtocols(IResolvable)
//  .aiProtocols(java.util.List<java.lang.String)
//  .aiProtocols(IResolvable>)
//  .authConfig(IResolvable)
//  .authConfig(AuthConfigProperty)
//  .basePath(java.lang.String)
//  .basePath(IResolvable)
//  .belongGatewayId(java.lang.String)
//  .belongGatewayId(IResolvable)
//  .builtinRouteNames(IResolvable)
//  .builtinRouteNames(java.util.List<java.lang.String)
//  .builtinRouteNames(IResolvable>)
//  .deployConfigs(IResolvable)
//  .deployConfigs(java.util.List<IResolvable)
//  .deployConfigs(DeployConfigsProperty>)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .enableAuth(java.lang.Boolean)
//  .enableAuth(IResolvable)
//  .firstByteTimeout(java.lang.Number)
//  .firstByteTimeout(IResolvable)
//  .ingressConfig(IResolvable)
//  .ingressConfig(IngressConfigProperty)
//  .modelCategory(java.lang.String)
//  .modelCategory(IResolvable)
//  .onlyChangeConfig(java.lang.Boolean)
//  .onlyChangeConfig(IResolvable)
//  .protocols(IResolvable)
//  .protocols(java.util.List<java.lang.String)
//  .protocols(IResolvable>)
//  .removeBasePathOnForward(java.lang.Boolean)
//  .removeBasePathOnForward(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .strategy(java.lang.String)
//  .strategy(IResolvable)
//  .type(java.lang.String)
//  .type(IResolvable)
//  .versionConfig(IResolvable)
//  .versionConfig(VersionConfigProperty)
    .build();
Name Type Description
scope com.aliyun.ros.cdk.core.Construct No description.
id java.lang.String No description.
enableResourcePropertyConstraint java.lang.Boolean No description.
httpApiName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property httpApiName: The name of the HTTP API.
agentProtocols com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property agentProtocols: The agent protocols of the HTTP API.
aiProtocols com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property aiProtocols: The AI protocols of the HTTP API.
authConfig com.aliyun.ros.cdk.core.IResolvable OR AuthConfigProperty Property authConfig: The authentication configuration.
basePath java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property basePath: The base path of the HTTP API.
belongGatewayId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property belongGatewayId: The gateway ID that the HTTP API belongs to.
builtinRouteNames com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property builtinRouteNames: The builtin route names.
deployConfigs com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDeployConfigsProperty> Property deployConfigs: The deploy configurations of the HTTP API.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of the HTTP API.
enableAuth java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property enableAuth: Whether to enable authentication.
firstByteTimeout java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property firstByteTimeout: The first byte timeout.
ingressConfig com.aliyun.ros.cdk.core.IResolvable OR IngressConfigProperty Property ingressConfig: The ingress configuration of the HTTP API.
modelCategory java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property modelCategory: The model category.
onlyChangeConfig java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property onlyChangeConfig: Whether to only change config without triggering redeployment.
protocols com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property protocols: The protocols supported by the HTTP API.
removeBasePathOnForward java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property removeBasePathOnForward: Whether to remove the base path on forward.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group.
strategy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property strategy: The strategy of the HTTP API.
type java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property type: The type of the HTTP API.
versionConfig com.aliyun.ros.cdk.core.IResolvable OR VersionConfigProperty Property versionConfig: The version configuration of the HTTP API.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

httpApiNameRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property httpApiName: The name of the HTTP API.


agentProtocolsOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property agentProtocols: The agent protocols of the HTTP API.


aiProtocolsOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property aiProtocols: The AI protocols of the HTTP API.


authConfigOptional

Property authConfig: The authentication configuration.


basePathOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property basePath: The base path of the HTTP API.


belongGatewayIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


builtinRouteNamesOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property builtinRouteNames: The builtin route names.


deployConfigsOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDeployConfigsProperty>

Property deployConfigs: The deploy configurations of the HTTP API.


descriptionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: The description of the HTTP API.


enableAuthOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property enableAuth: Whether to enable authentication.


firstByteTimeoutOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property firstByteTimeout: The first byte timeout.


ingressConfigOptional

Property ingressConfig: The ingress configuration of the HTTP API.


modelCategoryOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property modelCategory: The model category.


onlyChangeConfigOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

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

True means only modify configuration without triggering redeployment.


protocolsOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property protocols: The protocols supported by the HTTP API.


removeBasePathOnForwardOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

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


resourceGroupIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: The ID of the resource group.


strategyOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property strategy: The strategy of the HTTP API.


typeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property type: The type of the HTTP API.


versionConfigOptional

Property versionConfig: The version configuration of the HTTP API.


Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc No description.
getAtt No description.
setMetadata No description.

toString

public java.lang.String toString()

Returns a string representation of this construct.

synthesize

public void synthesize(ISynthesisSession session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

fetchCondition

public RosCondition fetchCondition()

fetchDependency

public java.util.List<java.lang.String> fetchDependency()

fetchResourceDesc

public java.lang.String fetchResourceDesc()

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.apig.HttpApi;
HttpApi.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
ref java.lang.String No description.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
resource com.aliyun.ros.cdk.core.RosResource No description.
attrHttpApiId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HttpApiId: The ID of the HTTP API.
props HttpApiProps No description.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.ros.cdk.core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrHttpApiIdRequired

public java.lang.Object getAttrHttpApiId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute HttpApiId: The ID of the HTTP API.


propsRequired

public HttpApiProps getProps();