Skip to content

ServiceProps

Properties for defining a Service.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkapig"
&alicloudroscdkapig.ServiceProps {
    GatewayId: interface{},
    Addresses: interface{},
    AiServiceConfig: interface{},
    GroupName: interface{},
    Namespace: interface{},
    Qualifier: interface{},
    ResourceGroupId: interface{},
    ServiceName: interface{},
    SourceType: interface{},
}

Properties

Name Type Description
GatewayId interface{} Property gatewayId: The ID of the Cloud Native API Gateway.
Addresses interface{} Property addresses: Service Address List.
AiServiceConfig interface{} Property aiServiceConfig: AI service configuration when SourceType equals AI.
GroupName interface{} Property groupName: The service group name.
Namespace interface{} Property namespace: The namespace of the service: - SourceType is K8S, indicating the namespace of the K8S service.
Qualifier interface{} Property qualifier: The function version or alias.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group.
ServiceName interface{} Property serviceName: The name of the service, need to fill in manually when SourceType is VIP\/DNS\/AI.
SourceType interface{} Property sourceType: The type of the service source, optional value is K8S\/MSE_NACOS\/FC3\/SAE_K8S_SERVICE\/VIP\/DNS\/AI.

GatewayIdRequired

GatewayId interface{}
  • Type: interface{}

Property gatewayId: The ID of the Cloud Native API Gateway.


AddressesOptional

Addresses interface{}
  • Type: interface{}

Property addresses: Service Address List.


AiServiceConfigOptional

AiServiceConfig interface{}
  • Type: interface{}

Property aiServiceConfig: AI service configuration when SourceType equals AI.


GroupNameOptional

GroupName interface{}
  • Type: interface{}

Property groupName: The service group name.

Required when SourceType is MSE_NACOS.


NamespaceOptional

Namespace interface{}
  • Type: interface{}

Property namespace: The namespace of the service: - SourceType is K8S, indicating the namespace of the K8S service.

When-SourceType is set to MSE_NACOS, it indicates the namespace in Nacos. When the SourceType is K8S and MSE_NACOS, it needs to be specified.


QualifierOptional

Qualifier interface{}
  • Type: interface{}

Property qualifier: The function version or alias.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group.


ServiceNameOptional

ServiceName interface{}
  • Type: interface{}

Property serviceName: The name of the service, need to fill in manually when SourceType is VIP\/DNS\/AI.


SourceTypeOptional

SourceType interface{}
  • Type: interface{}

Property sourceType: The type of the service source, optional value is K8S\/MSE_NACOS\/FC3\/SAE_K8S_SERVICE\/VIP\/DNS\/AI.