ServiceMesh
This class encapsulates and extends the ROS resource type ALIYUN::ASM::ServiceMesh
, which is used to create a 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 |
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. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
vpcId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the virtual private cloud (VPC).
vSwitches
Required
- Type: java.util.List
OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitches: The ID of the vSwitch, eg: ["vsw-xzegf5dndkbf4m6eg****"].
apiServerPublicEip
Optional
- 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.
auditProject
Optional
- 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}.
customizedZipkin
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property customizedZipkin: Specifies whether to use a user-created Zipkin system.
enableAudit
Optional
- 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.
includeIpRanges
Optional
- 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.
istioVersion
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property istioVersion: The Istio version of the ASM instance.
localityLoadBalancing
Optional
- 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.
name
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the ASM instance.
opa
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR OPAProperty
Property opa: OPA settings.
outboundTrafficPolicy
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance.
pilotPublicEip
Optional
- 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.
proxy
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR ProxyProperty
Property proxy: Proxy settings.
telemetry
Optional
- 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).
traceSampling
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property traceSampling: The sampling percentage of tracing.
tracing
Optional
- 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.
- 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
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. |
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. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrServiceMeshId
Required
public IResolvable getAttrServiceMeshId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceMeshId: The ID of the ASM instance.