Skip to content

ClusterUserKubeconfigProps

Properties for defining a ClusterUserKubeconfig.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusteruserkubeconfig

Initializer

from ros_cdk_cs import datasource
datasource.ClusterUserKubeconfigProps(
  cluster_id: typing.Union[str, IResolvable],
  private_ip_address: typing.Union[bool, IResolvable] = None,
  refresh_options: typing.Union[str, IResolvable] = None,
  temporary_duration_minutes: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
cluster_id typing.Union[str, ros_cdk_core.IResolvable] Property clusterId: The ID of the ACK cluster.
private_ip_address typing.Union[bool, ros_cdk_core.IResolvable] Property privateIpAddress: Specifies whether to obtain the credential that is used to connect to the cluster over the internal network.
refresh_options typing.Union[str, ros_cdk_core.IResolvable] Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
temporary_duration_minutes typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property temporaryDurationMinutes: The validity period of a temporary kubeconfig file.

cluster_idRequired

cluster_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterId: The ID of the ACK cluster.


private_ip_addressOptional

private_ip_address: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, 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.


refresh_optionsOptional

refresh_options: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.

temporary_duration_minutesOptional

temporary_duration_minutes: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.