ClusterUserKubeconfigProps
Properties for defining a ClusterUserKubeconfig
.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusteruserkubeconfig
Initializer
import com.aliyun.ros.cdk.cs.datasource.ClusterUserKubeconfigProps;
ClusterUserKubeconfigProps.builder()
.clusterId(java.lang.String)
.clusterId(IResolvable)
// .privateIpAddress(java.lang.Boolean)
// .privateIpAddress(IResolvable)
// .refreshOptions(java.lang.String)
// .refreshOptions(IResolvable)
// .temporaryDurationMinutes(java.lang.Number)
// .temporaryDurationMinutes(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
clusterId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterId: The ID of the ACK cluster. |
privateIpAddress |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property privateIpAddress: Specifies whether to obtain the credential that is used to connect to the cluster over the internal network. |
refreshOptions |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
temporaryDurationMinutes |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property temporaryDurationMinutes: The validity period of a temporary kubeconfig file. |
clusterId
Required
public java.lang.Object getClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterId: The ID of the ACK cluster.
privateIpAddress
Optional
public java.lang.Object getPrivateIpAddress();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property privateIpAddress: Specifies whether to obtain the credential that is used to connect to the cluster over the internal network.
Valid values: true: obtains the credential that is used to connect to the cluster over the internal network. false: obtains the credential that is used to connect to the cluster over the Internet. Default value: false.
refreshOptions
Optional
public java.lang.Object getRefreshOptions();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
temporaryDurationMinutes
Optional
public java.lang.Object getTemporaryDurationMinutes();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property temporaryDurationMinutes: The validity period of a temporary kubeconfig file.
Unit: minutes. Valid values: 15 to 4320. Note If you do not specify this parameter, the system automatically specifies a validity period, which is indicated by the expiration field in the response.