Skip to content

RosKubernetesCluster

This class is a base encapsulation around the ROS resource type ALIYUN::CS::KubernetesCluster, which is used to create a Container Service for Kubernetes (ACK) dedicated cluster.

Initializers

import com.aliyun.ros.cdk.cs.RosKubernetesCluster;
RosKubernetesCluster.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .masterInstanceTypes(IResolvable)
    .masterInstanceTypes(java.util.List<java.lang.String)
    .masterInstanceTypes(IResolvable>)
    .masterVSwitchIds(IResolvable)
    .masterVSwitchIds(java.util.List<java.lang.String)
    .masterVSwitchIds(IResolvable>)
    .name(java.lang.String)
    .name(IResolvable)
    .vpcId(java.lang.String)
    .vpcId(IResolvable)
    .workerVSwitchIds(IResolvable)
    .workerVSwitchIds(java.util.List<java.lang.String)
    .workerVSwitchIds(IResolvable>)
//  .addons(IResolvable)
//  .addons(java.util.List<IResolvable)
//  .addons(AddonsProperty>)
//  .autoRenew(java.lang.Boolean)
//  .autoRenew(IResolvable)
//  .autoRenewPeriod(java.lang.Number)
//  .autoRenewPeriod(IResolvable)
//  .chargeType(java.lang.String)
//  .chargeType(IResolvable)
//  .cloudMonitorFlags(java.lang.Boolean)
//  .cloudMonitorFlags(IResolvable)
//  .containerCidr(java.lang.String)
//  .containerCidr(IResolvable)
//  .cpuPolicy(java.lang.String)
//  .cpuPolicy(IResolvable)
//  .deleteOptions(IResolvable)
//  .deleteOptions(java.util.List<IResolvable)
//  .deleteOptions(DeleteOptionsProperty>)
//  .deletionProtection(java.lang.Boolean)
//  .deletionProtection(IResolvable)
//  .disableRollback(java.lang.Boolean)
//  .disableRollback(IResolvable)
//  .endpointPublicAccess(java.lang.Boolean)
//  .endpointPublicAccess(IResolvable)
//  .formatDisk(java.lang.Boolean)
//  .formatDisk(IResolvable)
//  .isEnterpriseSecurityGroup(java.lang.Boolean)
//  .isEnterpriseSecurityGroup(IResolvable)
//  .keepInstanceName(java.lang.Boolean)
//  .keepInstanceName(IResolvable)
//  .keyPair(java.lang.String)
//  .keyPair(IResolvable)
//  .kubernetesVersion(java.lang.String)
//  .kubernetesVersion(IResolvable)
//  .loadBalancerSpec(java.lang.String)
//  .loadBalancerSpec(IResolvable)
//  .loginPassword(java.lang.String)
//  .loginPassword(IResolvable)
//  .masterCount(java.lang.Number)
//  .masterCount(IResolvable)
//  .masterDataDisk(java.lang.Boolean)
//  .masterDataDisk(IResolvable)
//  .masterDataDisks(IResolvable)
//  .masterDataDisks(java.util.List<IResolvable)
//  .masterDataDisks(MasterDataDisksProperty>)
//  .masterSystemDiskCategory(java.lang.String)
//  .masterSystemDiskCategory(IResolvable)
//  .masterSystemDiskPerformanceLevel(java.lang.String)
//  .masterSystemDiskPerformanceLevel(IResolvable)
//  .masterSystemDiskSize(java.lang.Number)
//  .masterSystemDiskSize(IResolvable)
//  .masterSystemDiskSnapshotPolicyId(java.lang.String)
//  .masterSystemDiskSnapshotPolicyId(IResolvable)
//  .masterZoneIds(IResolvable)
//  .masterZoneIds(java.util.List<java.lang.String)
//  .masterZoneIds(IResolvable>)
//  .nodeCidrMask(java.lang.String)
//  .nodeCidrMask(IResolvable)
//  .nodeNameMode(java.lang.String)
//  .nodeNameMode(IResolvable)
//  .nodePools(IResolvable)
//  .nodePools(java.util.List<IResolvable)
//  .nodePools(NodePoolsProperty>)
//  .nodePortRange(java.lang.String)
//  .nodePortRange(IResolvable)
//  .numOfNodes(java.lang.Number)
//  .numOfNodes(IResolvable)
//  .osType(java.lang.String)
//  .osType(IResolvable)
//  .period(java.lang.Number)
//  .period(IResolvable)
//  .periodUnit(java.lang.String)
//  .periodUnit(IResolvable)
//  .platform(java.lang.String)
//  .platform(IResolvable)
//  .podVswitchIds(IResolvable)
//  .podVswitchIds(java.util.List<java.lang.String)
//  .podVswitchIds(IResolvable>)
//  .proxyMode(java.lang.String)
//  .proxyMode(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .runtime(IResolvable)
//  .runtime(RuntimeProperty)
//  .securityGroupId(java.lang.String)
//  .securityGroupId(IResolvable)
//  .securityHardeningOs(java.lang.Boolean)
//  .securityHardeningOs(IResolvable)
//  .serviceCidr(java.lang.String)
//  .serviceCidr(IResolvable)
//  .snatEntry(java.lang.Boolean)
//  .snatEntry(IResolvable)
//  .socEnabled(java.lang.Boolean)
//  .socEnabled(IResolvable)
//  .sshFlags(java.lang.Boolean)
//  .sshFlags(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .taint(IResolvable)
//  .taint(java.util.List<java.util.Map<java.lang.String, java.lang.Object>>)
//  .timeoutMins(java.lang.Number)
//  .timeoutMins(IResolvable)
//  .timeZone(java.lang.String)
//  .timeZone(IResolvable)
//  .userCa(java.lang.String)
//  .userCa(IResolvable)
//  .userData(java.lang.String)
//  .userData(IResolvable)
//  .workerDataDisk(java.lang.Boolean)
//  .workerDataDisk(IResolvable)
//  .workerDataDisks(IResolvable)
//  .workerDataDisks(java.util.List<IResolvable)
//  .workerDataDisks(WorkerDataDisksProperty>)
//  .workerInstanceTypes(IResolvable)
//  .workerInstanceTypes(java.util.List<java.lang.String)
//  .workerInstanceTypes(IResolvable>)
//  .workerSystemDiskCategory(java.lang.String)
//  .workerSystemDiskCategory(IResolvable)
//  .workerSystemDiskSize(java.lang.Number)
//  .workerSystemDiskSize(IResolvable)
//  .workerSystemDiskSnapshotPolicyId(java.lang.String)
//  .workerSystemDiskSnapshotPolicyId(IResolvable)
//  .workerZoneIds(IResolvable)
//  .workerZoneIds(java.util.List<java.lang.String)
//  .workerZoneIds(IResolvable>)
    .build();
Name Type Description
scope com.aliyun.ros.cdk.core.Construct - scope in which this resource is defined.
id java.lang.String - scoped id of the resource.
enableResourcePropertyConstraint java.lang.Boolean No description.
masterInstanceTypes com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
masterVSwitchIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
name java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerVSwitchIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
addons com.aliyun.ros.cdk.core.IResolvable OR java.util.ListAddonsProperty> No description.
autoRenew java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
autoRenewPeriod java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
chargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
cloudMonitorFlags java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
containerCidr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
cpuPolicy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
deleteOptions com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDeleteOptionsProperty> No description.
deletionProtection java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
disableRollback java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
endpointPublicAccess java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
formatDisk java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
isEnterpriseSecurityGroup java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
keepInstanceName java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
keyPair java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
kubernetesVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
loadBalancerSpec java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
loginPassword java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
masterDataDisk java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
masterDataDisks com.aliyun.ros.cdk.core.IResolvable OR java.util.ListMasterDataDisksProperty> No description.
masterSystemDiskCategory java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterSystemDiskPerformanceLevel java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterSystemDiskSize java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
masterSystemDiskSnapshotPolicyId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterZoneIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
nodeCidrMask java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
nodeNameMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
nodePools com.aliyun.ros.cdk.core.IResolvable OR java.util.ListNodePoolsProperty> No description.
nodePortRange java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
numOfNodes java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
osType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
period java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
periodUnit java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
platform java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
podVswitchIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
proxyMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
runtime com.aliyun.ros.cdk.core.IResolvable OR RuntimeProperty No description.
securityGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
securityHardeningOs java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
serviceCidr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
snatEntry java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
socEnabled java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
sshFlags java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
tags java.util.List<TagsProperty> No description.
taint com.aliyun.ros.cdk.core.IResolvable OR java.util.List> No description.
timeoutMins java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
timeZone java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
userCa java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
userData java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerDataDisk java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
workerDataDisks com.aliyun.ros.cdk.core.IResolvable OR java.util.ListWorkerDataDisksProperty> No description.
workerInstanceTypes com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
workerSystemDiskCategory java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerSystemDiskSize java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
workerSystemDiskSnapshotPolicyId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerZoneIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.

scopeRequired

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

scope in which this resource is defined.


idRequired

  • Type: java.lang.String

scoped id of the resource.


enableResourcePropertyConstraintRequired

  • Type: java.lang.Boolean

masterInstanceTypesRequired

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

masterVSwitchIdsRequired

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

nameRequired

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

vpcIdRequired

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

workerVSwitchIdsRequired

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

addonsOptional

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

autoRenewOptional

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

autoRenewPeriodOptional

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

chargeTypeOptional

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

cloudMonitorFlagsOptional

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

containerCidrOptional

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

cpuPolicyOptional

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

deleteOptionsOptional

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

deletionProtectionOptional

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

disableRollbackOptional

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

endpointPublicAccessOptional

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

formatDiskOptional

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

isEnterpriseSecurityGroupOptional

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

keepInstanceNameOptional

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

keyPairOptional

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

kubernetesVersionOptional

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

loadBalancerSpecOptional

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

loginPasswordOptional

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

masterCountOptional

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

masterDataDiskOptional

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

masterDataDisksOptional

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

masterSystemDiskCategoryOptional

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

masterSystemDiskPerformanceLevelOptional

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

masterSystemDiskSizeOptional

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

masterSystemDiskSnapshotPolicyIdOptional

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

masterZoneIdsOptional

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

nodeCidrMaskOptional

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

nodeNameModeOptional

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

nodePoolsOptional

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

nodePortRangeOptional

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

numOfNodesOptional

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

osTypeOptional

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

periodOptional

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

periodUnitOptional

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

platformOptional

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

podVswitchIdsOptional

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

proxyModeOptional

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

resourceGroupIdOptional

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

runtimeOptional


securityGroupIdOptional

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

securityHardeningOsOptional

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

serviceCidrOptional

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

snatEntryOptional

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

socEnabledOptional

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

sshFlagsOptional

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

tagsOptional


taintOptional

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

timeoutMinsOptional

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

timeZoneOptional

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

userCaOptional

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

userDataOptional

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

workerDataDiskOptional

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

workerDataDisksOptional

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

workerInstanceTypesOptional

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

workerSystemDiskCategoryOptional

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

workerSystemDiskSizeOptional

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

workerSystemDiskSnapshotPolicyIdOptional

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

workerZoneIdsOptional

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

Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
overrideLogicalId Overrides the auto-generated logical ID with a specific ID.
addCondition No description.
addCount No description.
addDeletionOverride Syntactic sugar for addOverride(path, undefined).
addDependsOn Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
addDesc No description.
addMetaData No description.
addOverride Adds an override to the synthesized ROS resource.
addPropertyDeletionOverride Adds an override that deletes the value of a property from the resource definition.
addPropertyOverride Adds an override to a resource property.
addRosDependency No description.
applyRemovalPolicy Sets the deletion policy of the resource based on the removal policy specified.
getAtt Returns a token for an runtime attribute of this resource.

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.


overrideLogicalId

public void overrideLogicalId(java.lang.String newLogicalId)

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired

  • Type: java.lang.String

The new logical ID to use for this stack element.


addCondition

public void addCondition(RosCondition con)

conRequired

  • 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

addDeletionOverride

public void addDeletionOverride(java.lang.String path)

Syntactic sugar for addOverride(path, undefined).

pathRequired

  • Type: java.lang.String

The path of the value to delete.


addDependsOn

public void addDependsOn(RosResource target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

targetRequired

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

addDesc

public void addDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

addMetaData

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

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

addOverride

public void addOverride(java.lang.String path, java.lang.Object value)

Adds an override to the synthesized ROS resource.

To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

For example,

addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute'])
addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE')

would add the overrides

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}

pathRequired

  • Type: java.lang.String

The path of the property, you can use dot notation to override values in complex types.

Any intermdediate keys will be created as needed.


valueRequired

  • Type: java.lang.Object

The value.

Could be primitive or complex.


addPropertyDeletionOverride

public void addPropertyDeletionOverride(java.lang.String propertyPath)

Adds an override that deletes the value of a property from the resource definition.

propertyPathRequired

  • Type: java.lang.String

The path to the property.


addPropertyOverride

public void addPropertyOverride(java.lang.String propertyPath, java.lang.Object value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

propertyPathRequired

  • Type: java.lang.String

The path of the property.


valueRequired

  • Type: java.lang.Object

The value.


addRosDependency

public void addRosDependency(java.lang.String target)

targetRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy()
public void applyRemovalPolicy(RemovalPolicy policy)
public void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)

Sets the deletion policy of the resource based on the removal policy specified.

policyOptional

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

optionsOptional

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

getAtt

public Reference getAtt(java.lang.String attributeName)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

attributeNameRequired

  • Type: java.lang.String

The name of the attribute.


Static Functions

Name Description
isConstruct Return whether the given object is a Construct.
isRosElement Returns true if a construct is a stack element (i.e. part of the synthesized template).
isRosResource Check whether the given construct is a RosResource.

isConstruct

import com.aliyun.ros.cdk.cs.RosKubernetesCluster;
RosKubernetesCluster.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

isRosElement

import com.aliyun.ros.cdk.cs.RosKubernetesCluster;
RosKubernetesCluster.isRosElement(java.lang.Object x)

Returns true if a construct is a stack element (i.e. part of the synthesized template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

xRequired

  • Type: java.lang.Object

isRosResource

import com.aliyun.ros.cdk.cs.RosKubernetesCluster;
RosKubernetesCluster.isRosResource(IConstruct construct)

Check whether the given construct is a RosResource.

constructRequired

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

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
creationStack java.util.List No description.
logicalId java.lang.String The logical ID for this stack element.
stack com.aliyun.ros.cdk.core.Stack The stack in which this element is defined.
ref java.lang.String Return a string that will be resolved to a RosTemplate { Ref } for this element.
rosOptions com.aliyun.ros.cdk.core.IRosResourceOptions Options for this resource, such as condition, update policy etc.
rosResourceType java.lang.String ROS resource type.
attrApiServerSlbId com.aliyun.ros.cdk.core.IResolvable No description.
attrClusterId com.aliyun.ros.cdk.core.IResolvable No description.
attrDefaultUserKubeConfig com.aliyun.ros.cdk.core.IResolvable No description.
attrIngressSlbId com.aliyun.ros.cdk.core.IResolvable No description.
attrNodes com.aliyun.ros.cdk.core.IResolvable No description.
attrPrivateUserKubConfig com.aliyun.ros.cdk.core.IResolvable No description.
attrScalingConfigurationId com.aliyun.ros.cdk.core.IResolvable No description.
attrScalingGroupId com.aliyun.ros.cdk.core.IResolvable No description.
attrScalingRuleId com.aliyun.ros.cdk.core.IResolvable No description.
attrTaskId com.aliyun.ros.cdk.core.IResolvable No description.
attrWorkerRamRoleName com.aliyun.ros.cdk.core.IResolvable No description.
enableResourcePropertyConstraint java.lang.Boolean No description.
masterInstanceTypes com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
masterVSwitchIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
name java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerVSwitchIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
addons com.aliyun.ros.cdk.core.IResolvable OR java.util.ListAddonsProperty> No description.
autoRenew java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
autoRenewPeriod java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
chargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
cloudMonitorFlags java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
containerCidr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
cpuPolicy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
deleteOptions com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDeleteOptionsProperty> No description.
deletionProtection java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
disableRollback java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
endpointPublicAccess java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
formatDisk java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
isEnterpriseSecurityGroup java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
keepInstanceName java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
keyPair java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
kubernetesVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
loadBalancerSpec java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
loginPassword java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
masterDataDisk java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
masterDataDisks com.aliyun.ros.cdk.core.IResolvable OR java.util.ListMasterDataDisksProperty> No description.
masterSystemDiskCategory java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterSystemDiskPerformanceLevel java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterSystemDiskSize java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
masterSystemDiskSnapshotPolicyId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
masterZoneIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
nodeCidrMask java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
nodeNameMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
nodePools com.aliyun.ros.cdk.core.IResolvable OR java.util.ListNodePoolsProperty> No description.
nodePortRange java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
numOfNodes java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
osType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
period java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
periodUnit java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
platform java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
podVswitchIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
proxyMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
runtime com.aliyun.ros.cdk.core.IResolvable OR RuntimeProperty No description.
securityGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
securityHardeningOs java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
serviceCidr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
snatEntry java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
socEnabled java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
sshFlags java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
tags java.util.List<TagsProperty> No description.
taint com.aliyun.ros.cdk.core.IResolvable OR java.util.List> No description.
timeoutMins java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
timeZone java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
userCa java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
userData java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerDataDisk java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable No description.
workerDataDisks com.aliyun.ros.cdk.core.IResolvable OR java.util.ListWorkerDataDisksProperty> No description.
workerInstanceTypes com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.
workerSystemDiskCategory java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerSystemDiskSize java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable No description.
workerSystemDiskSnapshotPolicyId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable No description.
workerZoneIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List No description.

nodeRequired

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

The construct tree node associated with this construct.


creationStackRequired

public java.util.List<java.lang.String> getCreationStack();
  • Type: java.util.List

logicalIdRequired

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

The logical ID for this stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).


stackRequired

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

The stack in which this element is defined.

RosElements must be defined within a stack scope (directly or indirectly).


refRequired

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

Return a string that will be resolved to a RosTemplate { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).


rosOptionsRequired

public IRosResourceOptions getRosOptions();
  • Type: com.aliyun.ros.cdk.core.IRosResourceOptions

Options for this resource, such as condition, update policy etc.


rosResourceTypeRequired

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

ROS resource type.


attrApiServerSlbIdRequired

public IResolvable getAttrApiServerSlbId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrClusterIdRequired

public IResolvable getAttrClusterId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrDefaultUserKubeConfigRequired

public IResolvable getAttrDefaultUserKubeConfig();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrIngressSlbIdRequired

public IResolvable getAttrIngressSlbId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrNodesRequired

public IResolvable getAttrNodes();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrPrivateUserKubConfigRequired

public IResolvable getAttrPrivateUserKubConfig();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrScalingConfigurationIdRequired

public IResolvable getAttrScalingConfigurationId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrScalingGroupIdRequired

public IResolvable getAttrScalingGroupId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrScalingRuleIdRequired

public IResolvable getAttrScalingRuleId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrTaskIdRequired

public IResolvable getAttrTaskId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

attrWorkerRamRoleNameRequired

public IResolvable getAttrWorkerRamRoleName();
  • Type: com.aliyun.ros.cdk.core.IResolvable

enableResourcePropertyConstraintRequired

public java.lang.Boolean getEnableResourcePropertyConstraint();
  • Type: java.lang.Boolean

masterInstanceTypesRequired

public java.lang.Object getMasterInstanceTypes();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

masterVSwitchIdsRequired

public java.lang.Object getMasterVSwitchIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

nameRequired

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

vpcIdRequired

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

workerVSwitchIdsRequired

public java.lang.Object getWorkerVSwitchIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

addonsOptional

public java.lang.Object getAddons();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListAddonsProperty>

autoRenewOptional

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

autoRenewPeriodOptional

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

chargeTypeOptional

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

cloudMonitorFlagsOptional

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

containerCidrOptional

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

cpuPolicyOptional

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

deleteOptionsOptional

public java.lang.Object getDeleteOptions();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListDeleteOptionsProperty>

deletionProtectionOptional

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

disableRollbackOptional

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

endpointPublicAccessOptional

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

formatDiskOptional

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

isEnterpriseSecurityGroupOptional

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

keepInstanceNameOptional

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

keyPairOptional

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

kubernetesVersionOptional

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

loadBalancerSpecOptional

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

loginPasswordOptional

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

masterCountOptional

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

masterDataDiskOptional

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

masterDataDisksOptional

public java.lang.Object getMasterDataDisks();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListMasterDataDisksProperty>

masterSystemDiskCategoryOptional

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

masterSystemDiskPerformanceLevelOptional

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

masterSystemDiskSizeOptional

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

masterSystemDiskSnapshotPolicyIdOptional

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

masterZoneIdsOptional

public java.lang.Object getMasterZoneIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

nodeCidrMaskOptional

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

nodeNameModeOptional

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

nodePoolsOptional

public java.lang.Object getNodePools();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListNodePoolsProperty>

nodePortRangeOptional

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

numOfNodesOptional

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

osTypeOptional

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

periodOptional

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

periodUnitOptional

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

platformOptional

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

podVswitchIdsOptional

public java.lang.Object getPodVswitchIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

proxyModeOptional

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

resourceGroupIdOptional

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

runtimeOptional

public java.lang.Object getRuntime();

securityGroupIdOptional

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

securityHardeningOsOptional

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

serviceCidrOptional

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

snatEntryOptional

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

socEnabledOptional

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

sshFlagsOptional

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

tagsOptional

public java.util.List<TagsProperty> getTags();

taintOptional

public java.lang.Object getTaint();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List>

timeoutMinsOptional

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

timeZoneOptional

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

userCaOptional

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

userDataOptional

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

workerDataDiskOptional

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

workerDataDisksOptional

public java.lang.Object getWorkerDataDisks();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListWorkerDataDisksProperty>

workerInstanceTypesOptional

public java.lang.Object getWorkerInstanceTypes();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

workerSystemDiskCategoryOptional

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

workerSystemDiskSizeOptional

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

workerSystemDiskSnapshotPolicyIdOptional

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

workerZoneIdsOptional

public java.lang.Object getWorkerZoneIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Constants

Name Type Description
ROS_RESOURCE_TYPE_NAME java.lang.String The resource type name for this resource class.

ROS_RESOURCE_TYPE_NAMERequired

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

The resource type name for this resource class.