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.List |
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.List |
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.List |
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.List |
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.List |
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. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
scope in which this resource is defined.
id
Required
- Type: java.lang.String
scoped id of the resource.
enableResourcePropertyConstraint
Required
- Type: java.lang.Boolean
masterInstanceTypes
Required
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
masterVSwitchIds
Required
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
name
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
vpcId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerVSwitchIds
Required
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
addons
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
AddonsProperty>
autoRenew
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
autoRenewPeriod
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
chargeType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
cloudMonitorFlags
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
containerCidr
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
cpuPolicy
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
deleteOptions
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
DeleteOptionsProperty>
deletionProtection
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
disableRollback
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
endpointPublicAccess
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
formatDisk
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
isEnterpriseSecurityGroup
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
keepInstanceName
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
keyPair
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
kubernetesVersion
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
loadBalancerSpec
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
loginPassword
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterCount
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
masterDataDisk
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
masterDataDisks
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
MasterDataDisksProperty>
masterSystemDiskCategory
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterSystemDiskPerformanceLevel
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterSystemDiskSize
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
masterSystemDiskSnapshotPolicyId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterZoneIds
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
nodeCidrMask
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
nodeNameMode
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
nodePools
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
NodePoolsProperty>
nodePortRange
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
numOfNodes
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
osType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
period
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
periodUnit
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
platform
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
podVswitchIds
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
proxyMode
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
resourceGroupId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
runtime
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR RuntimeProperty
securityGroupId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
securityHardeningOs
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
serviceCidr
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
snatEntry
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
socEnabled
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
sshFlags
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
tags
Optional
- Type: java.util.List<TagsProperty>
taint
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
>
timeoutMins
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
timeZone
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
userCa
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
userData
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerDataDisk
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
workerDataDisks
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
WorkerDataDisksProperty>
workerInstanceTypes
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
workerSystemDiskCategory
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerSystemDiskSize
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
workerSystemDiskSnapshotPolicyId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerZoneIds
Optional
- 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.
- 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.
- Type: java.lang.String
The new logical ID to use for this stack element.
addCondition
public void addCondition(RosCondition con)
- 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
addDeletionOverride
public void addDeletionOverride(java.lang.String path)
Syntactic sugar for addOverride(path, undefined)
.
- 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.
- Type: com.aliyun.ros.cdk.core.RosResource
addDesc
public void addDesc(java.lang.String desc)
- Type: java.lang.String
addMetaData
public void addMetaData(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- 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"
...
},
]
...
}
- 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.
- 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.
- 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)
.
- Type: java.lang.String
The path of the property.
- Type: java.lang.Object
The value.
addRosDependency
public void addRosDependency(java.lang.String target)
- 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.
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
- 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.
- 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.
- 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.
- Type: java.lang.Object
isRosResource
import com.aliyun.ros.cdk.cs.RosKubernetesCluster;
RosKubernetesCluster.isRosResource(IConstruct construct)
Check whether the given construct is a RosResource.
- 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.List |
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.List |
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.List |
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.List |
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.List |
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. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
creationStack
Required
public java.util.List<java.lang.String> getCreationStack();
- Type: java.util.List
logicalId
Required
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)
.
stack
Required
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).
ref
Required
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 })
.
rosOptions
Required
public IRosResourceOptions getRosOptions();
- Type: com.aliyun.ros.cdk.core.IRosResourceOptions
Options for this resource, such as condition, update policy etc.
rosResourceType
Required
public java.lang.String getRosResourceType();
- Type: java.lang.String
ROS resource type.
attrApiServerSlbId
Required
public IResolvable getAttrApiServerSlbId();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrClusterId
Required
public IResolvable getAttrClusterId();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrDefaultUserKubeConfig
Required
public IResolvable getAttrDefaultUserKubeConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrIngressSlbId
Required
public IResolvable getAttrIngressSlbId();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrNodes
Required
public IResolvable getAttrNodes();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrPrivateUserKubConfig
Required
public IResolvable getAttrPrivateUserKubConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrScalingConfigurationId
Required
public IResolvable getAttrScalingConfigurationId();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrScalingGroupId
Required
public IResolvable getAttrScalingGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrScalingRuleId
Required
public IResolvable getAttrScalingRuleId();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrTaskId
Required
public IResolvable getAttrTaskId();
- Type: com.aliyun.ros.cdk.core.IResolvable
attrWorkerRamRoleName
Required
public IResolvable getAttrWorkerRamRoleName();
- Type: com.aliyun.ros.cdk.core.IResolvable
enableResourcePropertyConstraint
Required
public java.lang.Boolean getEnableResourcePropertyConstraint();
- Type: java.lang.Boolean
masterInstanceTypes
Required
public java.lang.Object getMasterInstanceTypes();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
masterVSwitchIds
Required
public java.lang.Object getMasterVSwitchIds();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
name
Required
public java.lang.Object getName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
vpcId
Required
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerVSwitchIds
Required
public java.lang.Object getWorkerVSwitchIds();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
addons
Optional
public java.lang.Object getAddons();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
AddonsProperty>
autoRenew
Optional
public java.lang.Object getAutoRenew();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
autoRenewPeriod
Optional
public java.lang.Object getAutoRenewPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
chargeType
Optional
public java.lang.Object getChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
cloudMonitorFlags
Optional
public java.lang.Object getCloudMonitorFlags();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
containerCidr
Optional
public java.lang.Object getContainerCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
cpuPolicy
Optional
public java.lang.Object getCpuPolicy();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
deleteOptions
Optional
public java.lang.Object getDeleteOptions();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
DeleteOptionsProperty>
deletionProtection
Optional
public java.lang.Object getDeletionProtection();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
disableRollback
Optional
public java.lang.Object getDisableRollback();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
endpointPublicAccess
Optional
public java.lang.Object getEndpointPublicAccess();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
formatDisk
Optional
public java.lang.Object getFormatDisk();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
isEnterpriseSecurityGroup
Optional
public java.lang.Object getIsEnterpriseSecurityGroup();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
keepInstanceName
Optional
public java.lang.Object getKeepInstanceName();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
keyPair
Optional
public java.lang.Object getKeyPair();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
kubernetesVersion
Optional
public java.lang.Object getKubernetesVersion();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
loadBalancerSpec
Optional
public java.lang.Object getLoadBalancerSpec();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
loginPassword
Optional
public java.lang.Object getLoginPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterCount
Optional
public java.lang.Object getMasterCount();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
masterDataDisk
Optional
public java.lang.Object getMasterDataDisk();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
masterDataDisks
Optional
public java.lang.Object getMasterDataDisks();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
MasterDataDisksProperty>
masterSystemDiskCategory
Optional
public java.lang.Object getMasterSystemDiskCategory();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterSystemDiskPerformanceLevel
Optional
public java.lang.Object getMasterSystemDiskPerformanceLevel();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterSystemDiskSize
Optional
public java.lang.Object getMasterSystemDiskSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
masterSystemDiskSnapshotPolicyId
Optional
public java.lang.Object getMasterSystemDiskSnapshotPolicyId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
masterZoneIds
Optional
public java.lang.Object getMasterZoneIds();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
nodeCidrMask
Optional
public java.lang.Object getNodeCidrMask();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
nodeNameMode
Optional
public java.lang.Object getNodeNameMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
nodePools
Optional
public java.lang.Object getNodePools();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
NodePoolsProperty>
nodePortRange
Optional
public java.lang.Object getNodePortRange();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
numOfNodes
Optional
public java.lang.Object getNumOfNodes();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
osType
Optional
public java.lang.Object getOsType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
period
Optional
public java.lang.Object getPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
periodUnit
Optional
public java.lang.Object getPeriodUnit();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
platform
Optional
public java.lang.Object getPlatform();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
podVswitchIds
Optional
public java.lang.Object getPodVswitchIds();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
proxyMode
Optional
public java.lang.Object getProxyMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
runtime
Optional
public java.lang.Object getRuntime();
- Type: com.aliyun.ros.cdk.core.IResolvable OR RuntimeProperty
securityGroupId
Optional
public java.lang.Object getSecurityGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
securityHardeningOs
Optional
public java.lang.Object getSecurityHardeningOs();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
serviceCidr
Optional
public java.lang.Object getServiceCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
snatEntry
Optional
public java.lang.Object getSnatEntry();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
socEnabled
Optional
public java.lang.Object getSocEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
sshFlags
Optional
public java.lang.Object getSshFlags();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
taint
Optional
public java.lang.Object getTaint();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
>
timeoutMins
Optional
public java.lang.Object getTimeoutMins();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
timeZone
Optional
public java.lang.Object getTimeZone();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
userCa
Optional
public java.lang.Object getUserCa();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
userData
Optional
public java.lang.Object getUserData();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerDataDisk
Optional
public java.lang.Object getWorkerDataDisk();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
workerDataDisks
Optional
public java.lang.Object getWorkerDataDisks();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
WorkerDataDisksProperty>
workerInstanceTypes
Optional
public java.lang.Object getWorkerInstanceTypes();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
workerSystemDiskCategory
Optional
public java.lang.Object getWorkerSystemDiskCategory();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerSystemDiskSize
Optional
public java.lang.Object getWorkerSystemDiskSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
workerSystemDiskSnapshotPolicyId
Optional
public java.lang.Object getWorkerSystemDiskSnapshotPolicyId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
workerZoneIds
Optional
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_NAME
Required
public java.lang.String getRosResourceTypeName();
- Type: java.lang.String
The resource type name for this resource class.