ServiceMesh
- Implements: IServiceMesh
This class encapsulates and extends the ROS resource type ALIYUN::ASM::ServiceMesh.
Initializers
import com.aliyun.ros.cdk.asm.ServiceMesh;
ServiceMesh.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.vpcId(java.lang.String)
.vpcId(IResolvable)
.vSwitches(java.util.List<java.lang.Object>)
.vSwitches(IResolvable)
// .accessLogEnabled(java.lang.Boolean)
// .accessLogEnabled(IResolvable)
// .accessLogFile(java.lang.String)
// .accessLogFile(IResolvable)
// .accessLogFormat(java.lang.String)
// .accessLogFormat(IResolvable)
// .accessLogProject(java.lang.String)
// .accessLogProject(IResolvable)
// .accessLogServiceEnabled(java.lang.Boolean)
// .accessLogServiceEnabled(IResolvable)
// .accessLogServiceHost(java.lang.String)
// .accessLogServiceHost(IResolvable)
// .accessLogServicePort(java.lang.Number)
// .accessLogServicePort(IResolvable)
// .apiServerLoadBalancerSpec(java.lang.String)
// .apiServerLoadBalancerSpec(IResolvable)
// .apiServerPublicEip(java.lang.Boolean)
// .apiServerPublicEip(IResolvable)
// .auditProject(java.lang.String)
// .auditProject(IResolvable)
// .autoRenew(java.lang.Boolean)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.Number)
// .autoRenewPeriod(IResolvable)
// .certChain(java.lang.String)
// .certChain(IResolvable)
// .chargeType(java.lang.String)
// .chargeType(IResolvable)
// .clusterSpec(java.lang.String)
// .clusterSpec(IResolvable)
// .configSourceEnabled(java.lang.Boolean)
// .configSourceEnabled(IResolvable)
// .configSourceNacosId(java.lang.String)
// .configSourceNacosId(IResolvable)
// .controlPlaneLogEnabled(java.lang.Boolean)
// .controlPlaneLogEnabled(IResolvable)
// .controlPlaneLogProject(java.lang.String)
// .controlPlaneLogProject(IResolvable)
// .crAggregationEnabled(java.lang.Boolean)
// .crAggregationEnabled(IResolvable)
// .customizedPrometheus(java.lang.Boolean)
// .customizedPrometheus(IResolvable)
// .customizedZipkin(java.lang.Boolean)
// .customizedZipkin(IResolvable)
// .dnsProxyingEnabled(java.lang.Boolean)
// .dnsProxyingEnabled(IResolvable)
// .dubboFilterEnabled(java.lang.Boolean)
// .dubboFilterEnabled(IResolvable)
// .edition(java.lang.String)
// .edition(IResolvable)
// .enableAcmg(java.lang.Boolean)
// .enableAcmg(IResolvable)
// .enableAmbient(java.lang.Boolean)
// .enableAmbient(IResolvable)
// .enableAudit(java.lang.Boolean)
// .enableAudit(IResolvable)
// .enableCrHistory(java.lang.Boolean)
// .enableCrHistory(IResolvable)
// .enableSdsServer(java.lang.Boolean)
// .enableSdsServer(IResolvable)
// .excludeInboundPorts(java.lang.String)
// .excludeInboundPorts(IResolvable)
// .excludeIpRanges(java.lang.String)
// .excludeIpRanges(IResolvable)
// .excludeOutboundPorts(java.lang.String)
// .excludeOutboundPorts(IResolvable)
// .existingCaCert(java.lang.String)
// .existingCaCert(IResolvable)
// .existingCaKey(java.lang.String)
// .existingCaKey(IResolvable)
// .existingCaType(java.lang.String)
// .existingCaType(IResolvable)
// .existingRootCaCert(java.lang.String)
// .existingRootCaCert(IResolvable)
// .existingRootCaKey(java.lang.String)
// .existingRootCaKey(IResolvable)
// .filterGatewayClusterConfig(java.lang.Boolean)
// .filterGatewayClusterConfig(IResolvable)
// .gatewayApiEnabled(java.lang.Boolean)
// .gatewayApiEnabled(IResolvable)
// .guestCluster(java.lang.String)
// .guestCluster(IResolvable)
// .includeIpRanges(java.lang.String)
// .includeIpRanges(IResolvable)
// .istioVersion(java.lang.String)
// .istioVersion(IResolvable)
// .kialiEnabled(java.lang.Boolean)
// .kialiEnabled(IResolvable)
// .localityLbConf(java.lang.String)
// .localityLbConf(IResolvable)
// .localityLoadBalancing(java.lang.Boolean)
// .localityLoadBalancing(IResolvable)
// .mseEnabled(java.lang.Boolean)
// .mseEnabled(IResolvable)
// .multiBufferEnabled(java.lang.Boolean)
// .multiBufferEnabled(IResolvable)
// .multiBufferPollDelay(java.lang.String)
// .multiBufferPollDelay(IResolvable)
// .mysqlFilterEnabled(java.lang.Boolean)
// .mysqlFilterEnabled(IResolvable)
// .name(java.lang.String)
// .name(IResolvable)
// .opa(IResolvable)
// .opa(OPAProperty)
// .opaEnabled(java.lang.Boolean)
// .opaEnabled(IResolvable)
// .outboundTrafficPolicy(java.lang.String)
// .outboundTrafficPolicy(IResolvable)
// .period(java.lang.Number)
// .period(IResolvable)
// .pilotLoadBalancerSpec(java.lang.String)
// .pilotLoadBalancerSpec(IResolvable)
// .pilotPublicEip(java.lang.Boolean)
// .pilotPublicEip(IResolvable)
// .playgroundScene(java.lang.String)
// .playgroundScene(IResolvable)
// .prometheusUrl(java.lang.String)
// .prometheusUrl(IResolvable)
// .proxy(IResolvable)
// .proxy(ProxyProperty)
// .telemetry(java.lang.Boolean)
// .telemetry(IResolvable)
// .traceSampling(java.lang.Number)
// .traceSampling(IResolvable)
// .tracing(java.lang.Boolean)
// .tracing(IResolvable)
// .useExistingCa(java.lang.Boolean)
// .useExistingCa(IResolvable)
// .webAssemblyFilterEnabled(java.lang.Boolean)
// .webAssemblyFilterEnabled(IResolvable)
.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. |
vpcId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpcId: The ID of the virtual private cloud (VPC). |
vSwitches | java.util.List | Property vSwitches: The ID of the vSwitch, eg: ["vsw-xzegf5dndkbf4m6eg****"]. |
accessLogEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property accessLogEnabled: Specifies whether to enable access log. |
accessLogFile | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property accessLogFile: Enable and disable access logs. |
accessLogFormat | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property accessLogFormat: The custom format of access logs. |
accessLogProject | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property accessLogProject: The Log Service project for access logs. |
accessLogServiceEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property accessLogServiceEnabled: Whether Envoy's gRPC logging service (ALS) is enabled. |
accessLogServiceHost | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property accessLogServiceHost: Address where Envoy's gRPC logging service (ALS) is enabled. |
accessLogServicePort | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property accessLogServicePort: Port on which Envoy's gRPC logging service (ALS) is enabled. |
apiServerLoadBalancerSpec | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property apiServerLoadBalancerSpec: CLB specification for the APIServer binding. |
apiServerPublicEip | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property apiServerPublicEip: Specifies whether to expose the API server to the Internet. |
auditProject | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property auditProject: The name of the Log Service project that is used for mesh audit. |
autoRenew | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenew: If CLB is annual and monthly, whether it will be automatically renewed. |
autoRenewPeriod | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenewPeriod: This parameter is valid only if you set ChargeType to PrePay. |
certChain | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property certChain: The certificate chain from CaCert to RootCert contains at least two certificates. |
chargeType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property chargeType: CLB payment type. |
clusterSpec | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property clusterSpec: Service grid instance specification, value: - standard: The standard version. |
configSourceEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property configSourceEnabled: Whether to enable an external service registry. |
configSourceNacosId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property configSourceNacosId: The Nacos ID for config source. |
controlPlaneLogEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property controlPlaneLogEnabled: Specifies whether to enable control plane log collection. |
controlPlaneLogProject | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property controlPlaneLogProject: The Log Service project for control plane logs. |
crAggregationEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property crAggregationEnabled: Whether to enable Kubernetes API for data plane cluster to access Istio resources (ASM instance v1.9.7.93 or later). Value: - true: Enable data plane cluster Kubernetes API to access Istio resources. - false: Data plane cluster Kubernetes API is not enabled to access Istio resources. Default value: false. |
customizedPrometheus | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property customizedPrometheus: Specifies whether to use a self-managed Prometheus system. |
customizedZipkin | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property customizedZipkin: Specifies whether to use a self-managed Zipkin system. |
dnsProxyingEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property dnsProxyingEnabled: Specifies whether to enable DNS proxy. |
dubboFilterEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property dubboFilterEnabled: Specifies whether to enable the Dubbo filter. |
edition | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property edition: The edition of the ASM instance. |
enableAcmg | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableAcmg: Specifies whether to enable ACMG. |
enableAmbient | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableAmbient: Specifies whether to enable ambient mode. |
enableAudit | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableAudit: Specifies whether to enable the mesh audit feature. |
enableCrHistory | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableCrHistory: Specifies whether to enable the history version management feature for Istio resources in ASM. |
enableSdsServer | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableSdsServer: Specifies whether to enable the Secret Discovery Service (SDS). |
excludeInboundPorts | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property excludeInboundPorts: The inbound ports to exclude from traffic management. |
excludeIpRanges | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property excludeIpRanges: The IP ranges to exclude from traffic management. |
excludeOutboundPorts | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property excludeOutboundPorts: The outbound ports to exclude from traffic management. |
existingCaCert | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property existingCaCert: The existing CA certificate. |
existingCaKey | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property existingCaKey: The existing CA key. |
existingCaType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property existingCaType: The type of the existing certificate: - 1: A self-signed certificate of Istiod. |
existingRootCaCert | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property existingRootCaCert: The existing root CA certificate. |
existingRootCaKey | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property existingRootCaKey: The existing root CA key. |
filterGatewayClusterConfig | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property filterGatewayClusterConfig: Specifies whether to enable gateway configuration filtering. |
gatewayApiEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property gatewayApiEnabled: Specifies whether to enable the Gateway API. |
guestCluster | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property guestCluster: When you create a Service Mesh instance, you can add a cluster to the instance. |
includeIpRanges | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property includeIpRanges: The IP address ranges that are allowed to access the proxy. |
istioVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property istioVersion: The Istio version of the ASM instance. |
kialiEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property kialiEnabled: Specifies whether to enable the mesh topology feature. |
localityLbConf | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property localityLbConf: The locality load balancing configuration. |
localityLoadBalancing | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property localityLoadBalancing: Specifies whether to route traffic to the nearest instance. |
mseEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property mseEnabled: Specifies whether to enable Microservices Engine (MSE). |
multiBufferEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property multiBufferEnabled: Specifies whether to enable TLS performance optimization that is based on MultiBuffer. |
multiBufferPollDelay | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property multiBufferPollDelay: The synchronization period of the MultiBuffer enabling status. |
mysqlFilterEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property mysqlFilterEnabled: Specifies whether to enable the MySQL filter. |
name | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property name: The name of the ASM instance. |
opa | com.aliyun.ros.cdk.core.IResolvable OR OPAProperty | Property opa: OPA settings. |
opaEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property opaEnabled: Specifies whether to enable OPA. |
outboundTrafficPolicy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance. |
period | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property period: This parameter is valid only if you set ChargeType to PrePay. |
pilotLoadBalancerSpec | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property pilotLoadBalancerSpec: The specification of the SLB instance that is bound to Istio Pilot of the control plane. |
pilotPublicEip | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property pilotPublicEip: Specifies whether to expose Istio Pilot to the Internet. |
playgroundScene | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property playgroundScene: The playground scenario. |
prometheusUrl | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property prometheusUrl: The URL for Prometheus. |
proxy | com.aliyun.ros.cdk.core.IResolvable OR ProxyProperty | Property proxy: Proxy settings. |
telemetry | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property telemetry: Specifies whether to enable Prometheus monitoring. |
traceSampling | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property traceSampling: The sampling percentage of tracing. |
tracing | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property tracing: Specifies whether to enable the tracing feature. |
useExistingCa | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property useExistingCa: Specifies whether to use an existing CA. |
webAssemblyFilterEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property webAssemblyFilterEnabled: Specifies whether to enable the WebAssembly filter. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
vpcIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the virtual private cloud (VPC).
vSwitchesRequired
- Type: java.util.List
OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitches: The ID of the vSwitch, eg: ["vsw-xzegf5dndkbf4m6eg****"].
accessLogEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property accessLogEnabled: Specifies whether to enable access log.
Valid values:
true: Enables access log.false: Disables access log. Default value:false.
accessLogFileOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accessLogFile: Enable and disable access logs.
Value:
- "" : Turn off access logs.
- /dev/stdout: Enables access logging
accessLogFormatOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accessLogFormat: The custom format of access logs.
This parameter is available only if you enable access log. The value must be a JSON string that contains the following keys: authority_for, bytes_received, bytes_sent, downstream_local_address, downstream_remote_address, duration, istio_policy_status, method, path, protocol, requested_server_name, response_code, response_flags, route_name, start_time, trace_id, upstream_cluster, upstream_host, upstream_local_address, upstream_service_time, upstream_transport_failure_reason, user_agent, and x_forwarded_for.
accessLogProjectOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accessLogProject: The Log Service project for access logs.
accessLogServiceEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property accessLogServiceEnabled: Whether Envoy's gRPC logging service (ALS) is enabled.
Value:
- true: Enables Envoy's gRPC logging service.
- false: Envoy's gRPC logging service is not enabled. Default value: false
accessLogServiceHostOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accessLogServiceHost: Address where Envoy's gRPC logging service (ALS) is enabled.
accessLogServicePortOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property accessLogServicePort: Port on which Envoy's gRPC logging service (ALS) is enabled.
apiServerLoadBalancerSpecOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property apiServerLoadBalancerSpec: CLB specification for the APIServer binding.
Value: Compact type I (slb.s1.small), Standard type I (slb.s2.small), Standard Type II (slb.s2.medium), high-order type I (slb.s3.small), high-order type II (slb.s3.medium), Super type I (slb.s3.large).
apiServerPublicEipOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property apiServerPublicEip: Specifies whether to expose the API server to the Internet.
Valid values: true and false. Default value: false. If you do not set this parameter, the API server of clusters added to the ASM instance cannot be accessed from the Internet.
auditProjectOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property auditProject: The name of the Log Service project that is used for mesh audit.
Default value: mesh-log-{meshId}.
autoRenewOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: If CLB is annual and monthly, whether it will be automatically renewed.
Value:
- true: Automatic renewal.
- false: No automatic renewal.
autoRenewPeriodOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriod: This parameter is valid only if you set ChargeType to PrePay.
The auto-renewal period. If the subscription duration is less than one year, the value of this parameter indicates the number of months for which you want to renew the instance. If the subscription duration is more than one year, the value of this parameter indicates the number of years for which you want to renew the instance.
certChainOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property certChain: The certificate chain from CaCert to RootCert contains at least two certificates.
chargeTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property chargeType: CLB payment type.
Value:
- PayOnDemand: pay-as-you-go type
- PrePay: Annual and monthly.
clusterSpecOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterSpec: Service grid instance specification, value: - standard: The standard version.
- enterprise: Enterprise Edition
- ultimate: ultimate.
configSourceEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property configSourceEnabled: Whether to enable an external service registry.
Value:
- true: Enables the external service registry.
- false: The external service registry is not enabled. Default value: false
configSourceNacosIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property configSourceNacosId: The Nacos ID for config source.
controlPlaneLogEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property controlPlaneLogEnabled: Specifies whether to enable control plane log collection.
Valid values:
true: Enables control plane log collection.false: Disables control plane log collection. Default value:false.
controlPlaneLogProjectOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property controlPlaneLogProject: The Log Service project for control plane logs.
crAggregationEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property crAggregationEnabled: Whether to enable Kubernetes API for data plane cluster to access Istio resources (ASM instance v1.9.7.93 or later). Value: - true: Enable data plane cluster Kubernetes API to access Istio resources. - false: Data plane cluster Kubernetes API is not enabled to access Istio resources. Default value: false.
customizedPrometheusOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property customizedPrometheus: Specifies whether to use a self-managed Prometheus system.
Valid values:
true: Uses a self-managed Prometheus system.false: Does not use a self-managed Prometheus system. Default value:false.
customizedZipkinOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property customizedZipkin: Specifies whether to use a self-managed Zipkin system.
Valid values:
true: Uses a self-managed Zipkin system.false: Uses Tracing Analysis. Default value:false.
dnsProxyingEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property dnsProxyingEnabled: Specifies whether to enable DNS proxy.
Valid values:
true: Enables DNS proxy.false: Disables DNS proxy. Default value:false.
dubboFilterEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property dubboFilterEnabled: Specifies whether to enable the Dubbo filter.
Valid values:
true: Enables the Dubbo filter.false: Disables the Dubbo filter. Default value:false.
editionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property edition: The edition of the ASM instance.
enableAcmgOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableAcmg: Specifies whether to enable ACMG.
enableAmbientOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableAmbient: Specifies whether to enable ambient mode.
enableAuditOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableAudit: Specifies whether to enable the mesh audit feature.
To enable this feature, make sure that you have activated Alibaba Cloud Log Service. Valid values: true and false. Default value: false.
enableCrHistoryOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableCrHistory: Specifies whether to enable the history version management feature for Istio resources in ASM.
Valid values:
true: Enables the history version management feature.false: Disables the history version management feature. Default value:false.
enableSdsServerOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableSdsServer: Specifies whether to enable the Secret Discovery Service (SDS).
Valid values:
true: Enables SDS.false: Disables SDS. Default value:false.
excludeInboundPortsOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property excludeInboundPorts: The inbound ports to exclude from traffic management.
excludeIpRangesOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property excludeIpRanges: The IP ranges to exclude from traffic management.
excludeOutboundPortsOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property excludeOutboundPorts: The outbound ports to exclude from traffic management.
existingCaCertOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property existingCaCert: The existing CA certificate.
existingCaKeyOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property existingCaKey: The existing CA key.
existingCaTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property existingCaType: The type of the existing certificate: - 1: A self-signed certificate of Istiod.
This corresponds to the istio-ca-secret secret in the istio-system namespace. If you use this type, you must also provide the ExistingCaCert and ExsitingCaKey parameters.
- 2: An external certificate of Istiod. For more information, see plugin ca cert. This generally corresponds to the cacerts secret in the istio-system namespace. If you use this type, you must also provide the
ExisingRootCaCertandExisingRootCaKeyparameters.
existingRootCaCertOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property existingRootCaCert: The existing root CA certificate.
existingRootCaKeyOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property existingRootCaKey: The existing root CA key.
filterGatewayClusterConfigOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property filterGatewayClusterConfig: Specifies whether to enable gateway configuration filtering.
Valid values:
true: Enables gateway configuration filtering.false: Disables gateway configuration filtering. Default value:false.
gatewayApiEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property gatewayApiEnabled: Specifies whether to enable the Gateway API.
Valid values:
true: Enables the Gateway API.false: Disables the Gateway API. Default value:false.
guestClusterOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property guestCluster: When you create a Service Mesh instance, you can add a cluster to the instance.
If you do not specify this parameter, no cluster is added. The cluster must be in the same VPC and vSwitch as the Service Mesh instance, and must have the same domain name.
includeIpRangesOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property includeIpRanges: The IP address ranges that are allowed to access the proxy.
istioVersionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property istioVersion: The Istio version of the ASM instance.
kialiEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property kialiEnabled: Specifies whether to enable the mesh topology feature.
To enable this feature, you must first enable Prometheus monitoring. If Prometheus monitoring is disabled, this feature is forcibly disabled. Valid values:
true: Enables the mesh topology feature.false: Disables the mesh topology feature. Default value:false.
localityLbConfOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property localityLbConf: The locality load balancing configuration.
localityLoadBalancingOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property localityLoadBalancing: Specifies whether to route traffic to the nearest instance.
Valid values: true and false. Default value: false.
mseEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property mseEnabled: Specifies whether to enable Microservices Engine (MSE).
Valid values:
true: Enables MSE.false: Disables MSE. Default value:false.
multiBufferEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property multiBufferEnabled: Specifies whether to enable TLS performance optimization that is based on MultiBuffer.
Valid values:
true: Enables the feature.false: Disables the feature. Default value:true.
multiBufferPollDelayOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property multiBufferPollDelay: The synchronization period of the MultiBuffer enabling status.
Default value: 30s.
mysqlFilterEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property mysqlFilterEnabled: Specifies whether to enable the MySQL filter.
Valid values:
true: Enables the MySQL filter.false: Disables the MySQL filter. Default value:false.
nameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the ASM instance.
opaOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR OPAProperty
Property opa: OPA settings.
opaEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property opaEnabled: Specifies whether to enable OPA.
Valid values:
true: Enables OPA.false: Disables OPA. Default value:false.
outboundTrafficPolicyOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance.
periodOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: This parameter is valid only if you set ChargeType to PrePay.
The subscription duration of the SLB instance. Unit: months. If you want to purchase the instance for one year, enter 12.
pilotLoadBalancerSpecOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property pilotLoadBalancerSpec: The specification of the SLB instance that is bound to Istio Pilot of the control plane.
Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, and slb.s3.large.
pilotPublicEipOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property pilotPublicEip: Specifies whether to expose Istio Pilot to the Internet.
Valid values: true and false. Default value: false. If you do not set this parameter, only clusters in the same VPC as the ASM instance can access Istio Pilot of the instance.
playgroundSceneOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property playgroundScene: The playground scenario.
If you specify this parameter, an ASM playground instance is created. Valid value:
- ewmaLb: the exponentially weighted moving average (EWMA) load balancing scenario
prometheusUrlOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property prometheusUrl: The URL for Prometheus.
proxyOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR ProxyProperty
Property proxy: Proxy settings.
telemetryOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property telemetry: Specifies whether to enable Prometheus monitoring.
We recommend that you use Managed Service for Prometheus. Valid values:
true: Enables Prometheus monitoring.false: Disables Prometheus monitoring. Default value:false.
traceSamplingOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property traceSampling: The sampling percentage of tracing.
tracingOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property tracing: Specifies whether to enable the tracing feature.
To enable this feature, make sure that you have activated Alibaba Cloud Tracing Analysis. Valid values: true and false. Default value: false.
useExistingCaOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property useExistingCa: Specifies whether to use an existing CA.
webAssemblyFilterEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property webAssemblyFilterEnabled: Specifies whether to enable the WebAssembly filter.
Valid values:
true: Enables the WebAssembly filter.false: Disables the WebAssembly filter. Default value:false.
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.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- 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)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.asm.ServiceMesh;
ServiceMesh.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- 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. |
attrServiceMeshId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ServiceMeshId: The ID of the ASM instance. |
props | ServiceMeshProps | 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
attrServiceMeshIdRequired
public java.lang.Object getAttrServiceMeshId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceMeshId: The ID of the ASM instance.
propsRequired
public ServiceMeshProps getProps();
- Type: ServiceMeshProps