Skip to content

ServiceMesh

This class encapsulates and extends the ROS resource type ALIYUN::ASM::ServiceMesh, which is used to create an Alibaba Cloud Service Mesh (ASM) instance.

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)
//  .apiServerPublicEip(java.lang.Boolean)
//  .apiServerPublicEip(IResolvable)
//  .auditProject(java.lang.String)
//  .auditProject(IResolvable)
//  .customizedZipkin(java.lang.Boolean)
//  .customizedZipkin(IResolvable)
//  .enableAudit(java.lang.Boolean)
//  .enableAudit(IResolvable)
//  .includeIpRanges(java.lang.String)
//  .includeIpRanges(IResolvable)
//  .istioVersion(java.lang.String)
//  .istioVersion(IResolvable)
//  .localityLoadBalancing(java.lang.Boolean)
//  .localityLoadBalancing(IResolvable)
//  .name(java.lang.String)
//  .name(IResolvable)
//  .opa(IResolvable)
//  .opa(OPAProperty)
//  .outboundTrafficPolicy(java.lang.String)
//  .outboundTrafficPolicy(IResolvable)
//  .pilotPublicEip(java.lang.Boolean)
//  .pilotPublicEip(IResolvable)
//  .proxy(IResolvable)
//  .proxy(ProxyProperty)
//  .telemetry(java.lang.Boolean)
//  .telemetry(IResolvable)
//  .traceSampling(java.lang.Number)
//  .traceSampling(IResolvable)
//  .tracing(java.lang.Boolean)
//  .tracing(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 OR com.aliyun.ros.cdk.core.IResolvable Property vSwitches: The ID of the vSwitch, eg: ["vsw-xzegf5dndkbf4m6eg****"].
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.
customizedZipkin java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property customizedZipkin: Specifies whether to use a user-created Zipkin system.
enableAudit java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property enableAudit: Specifies whether to enable the mesh audit feature.
includeIpRanges java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property includeIpRanges: The Classless Inter-Domain Routing (CIDR) block in the ASM instance that are denied to access external services.
istioVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property istioVersion: The Istio version of the ASM instance.
localityLoadBalancing java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property localityLoadBalancing: Specifies whether to route traffic to the nearest instance.
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.
outboundTrafficPolicy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance.
pilotPublicEip java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property pilotPublicEip: Specifies whether to expose Istio Pilot to the Internet.
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.

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****"].


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}.


customizedZipkinOptional

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

Property customizedZipkin: Specifies whether to use a user-created Zipkin system.


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.


includeIpRangesOptional

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

Property includeIpRanges: The Classless Inter-Domain Routing (CIDR) block in the ASM instance that are denied to access external services.


istioVersionOptional

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

Property istioVersion: The Istio version of the ASM instance.


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.


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.


outboundTrafficPolicyOptional

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

Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance.


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.


proxyOptional

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 Application Real-Time Monitoring Service (ARMS).


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.


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.
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

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.asm.ServiceMesh;
ServiceMesh.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.
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 com.aliyun.ros.cdk.core.IResolvable Attribute ServiceMeshId: The ID of the ASM instance.

nodeRequired

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

The construct tree node associated with this construct.


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 IResolvable getAttrServiceMeshId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ServiceMeshId: The ID of the ASM instance.


Structs