Documentation ¶
Index ¶
- func ClusterApplicationResources_IsConstruct(x interface{}) *bool
- func ClusterNodePools_IsConstruct(x interface{}) *bool
- func ClusterUserKubeconfig_IsConstruct(x interface{}) *bool
- func KubernetesCluster_IsConstruct(x interface{}) *bool
- func KubernetesClusters_IsConstruct(x interface{}) *bool
- func NewClusterApplicationResources_Override(c ClusterApplicationResources, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewClusterNodePools_Override(c ClusterNodePools, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewClusterUserKubeconfig_Override(c ClusterUserKubeconfig, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewKubernetesCluster_Override(k KubernetesCluster, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewKubernetesClusters_Override(k KubernetesClusters, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosClusterApplicationResources_Override(r RosClusterApplicationResources, scope alicloudroscdkcore.Construct, ...)
- func NewRosClusterNodePools_Override(r RosClusterNodePools, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosClusterUserKubeconfig_Override(r RosClusterUserKubeconfig, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosKubernetesCluster_Override(r RosKubernetesCluster, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosKubernetesClusters_Override(r RosKubernetesClusters, scope alicloudroscdkcore.Construct, id *string, ...)
- func RosClusterApplicationResources_IsConstruct(x interface{}) *bool
- func RosClusterApplicationResources_IsRosElement(x interface{}) *bool
- func RosClusterApplicationResources_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosClusterApplicationResources_ROS_RESOURCE_TYPE_NAME() *string
- func RosClusterNodePools_IsConstruct(x interface{}) *bool
- func RosClusterNodePools_IsRosElement(x interface{}) *bool
- func RosClusterNodePools_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosClusterNodePools_ROS_RESOURCE_TYPE_NAME() *string
- func RosClusterUserKubeconfig_IsConstruct(x interface{}) *bool
- func RosClusterUserKubeconfig_IsRosElement(x interface{}) *bool
- func RosClusterUserKubeconfig_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosClusterUserKubeconfig_ROS_RESOURCE_TYPE_NAME() *string
- func RosKubernetesCluster_IsConstruct(x interface{}) *bool
- func RosKubernetesCluster_IsRosElement(x interface{}) *bool
- func RosKubernetesCluster_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosKubernetesCluster_ROS_RESOURCE_TYPE_NAME() *string
- func RosKubernetesClusters_IsConstruct(x interface{}) *bool
- func RosKubernetesClusters_IsRosElement(x interface{}) *bool
- func RosKubernetesClusters_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosKubernetesClusters_ROS_RESOURCE_TYPE_NAME() *string
- type ClusterApplicationResources
- type ClusterApplicationResourcesProps
- type ClusterNodePools
- type ClusterNodePoolsProps
- type ClusterUserKubeconfig
- type ClusterUserKubeconfigProps
- type IClusterApplicationResources
- type IClusterNodePools
- type IClusterUserKubeconfig
- type IKubernetesCluster
- type IKubernetesClusters
- type KubernetesCluster
- type KubernetesClusterProps
- type KubernetesClusters
- type KubernetesClustersProps
- type RosClusterApplicationResources
- type RosClusterApplicationResourcesProps
- type RosClusterNodePools
- type RosClusterNodePoolsProps
- type RosClusterUserKubeconfig
- type RosClusterUserKubeconfigProps
- type RosKubernetesCluster
- type RosKubernetesClusterProps
- type RosKubernetesClusters
- type RosKubernetesClustersProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterApplicationResources_IsConstruct ¶
func ClusterApplicationResources_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func ClusterNodePools_IsConstruct ¶
func ClusterNodePools_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func ClusterUserKubeconfig_IsConstruct ¶
func ClusterUserKubeconfig_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func KubernetesCluster_IsConstruct ¶
func KubernetesCluster_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func KubernetesClusters_IsConstruct ¶
func KubernetesClusters_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func NewClusterApplicationResources_Override ¶
func NewClusterApplicationResources_Override(c ClusterApplicationResources, scope alicloudroscdkcore.Construct, id *string, props *ClusterApplicationResourcesProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewClusterNodePools_Override ¶
func NewClusterNodePools_Override(c ClusterNodePools, scope alicloudroscdkcore.Construct, id *string, props *ClusterNodePoolsProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewClusterUserKubeconfig_Override ¶
func NewClusterUserKubeconfig_Override(c ClusterUserKubeconfig, scope alicloudroscdkcore.Construct, id *string, props *ClusterUserKubeconfigProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewKubernetesCluster_Override ¶
func NewKubernetesCluster_Override(k KubernetesCluster, scope alicloudroscdkcore.Construct, id *string, props *KubernetesClusterProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewKubernetesClusters_Override ¶
func NewKubernetesClusters_Override(k KubernetesClusters, scope alicloudroscdkcore.Construct, id *string, props *KubernetesClustersProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewRosClusterApplicationResources_Override ¶
func NewRosClusterApplicationResources_Override(r RosClusterApplicationResources, scope alicloudroscdkcore.Construct, id *string, props *RosClusterApplicationResourcesProps, enableResourcePropertyConstraint *bool)
func NewRosClusterNodePools_Override ¶
func NewRosClusterNodePools_Override(r RosClusterNodePools, scope alicloudroscdkcore.Construct, id *string, props *RosClusterNodePoolsProps, enableResourcePropertyConstraint *bool)
func NewRosClusterUserKubeconfig_Override ¶
func NewRosClusterUserKubeconfig_Override(r RosClusterUserKubeconfig, scope alicloudroscdkcore.Construct, id *string, props *RosClusterUserKubeconfigProps, enableResourcePropertyConstraint *bool)
func NewRosKubernetesCluster_Override ¶
func NewRosKubernetesCluster_Override(r RosKubernetesCluster, scope alicloudroscdkcore.Construct, id *string, props *RosKubernetesClusterProps, enableResourcePropertyConstraint *bool)
func NewRosKubernetesClusters_Override ¶
func NewRosKubernetesClusters_Override(r RosKubernetesClusters, scope alicloudroscdkcore.Construct, id *string, props *RosKubernetesClustersProps, enableResourcePropertyConstraint *bool)
func RosClusterApplicationResources_IsConstruct ¶
func RosClusterApplicationResources_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosClusterApplicationResources_IsRosElement ¶
func RosClusterApplicationResources_IsRosElement(x interface{}) *bool
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.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosClusterApplicationResources_IsRosResource ¶
func RosClusterApplicationResources_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosClusterApplicationResources_ROS_RESOURCE_TYPE_NAME ¶
func RosClusterApplicationResources_ROS_RESOURCE_TYPE_NAME() *string
func RosClusterNodePools_IsConstruct ¶
func RosClusterNodePools_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosClusterNodePools_IsRosElement ¶
func RosClusterNodePools_IsRosElement(x interface{}) *bool
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.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosClusterNodePools_IsRosResource ¶
func RosClusterNodePools_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosClusterNodePools_ROS_RESOURCE_TYPE_NAME ¶
func RosClusterNodePools_ROS_RESOURCE_TYPE_NAME() *string
func RosClusterUserKubeconfig_IsConstruct ¶
func RosClusterUserKubeconfig_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosClusterUserKubeconfig_IsRosElement ¶
func RosClusterUserKubeconfig_IsRosElement(x interface{}) *bool
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.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosClusterUserKubeconfig_IsRosResource ¶
func RosClusterUserKubeconfig_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosClusterUserKubeconfig_ROS_RESOURCE_TYPE_NAME ¶
func RosClusterUserKubeconfig_ROS_RESOURCE_TYPE_NAME() *string
func RosKubernetesCluster_IsConstruct ¶
func RosKubernetesCluster_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosKubernetesCluster_IsRosElement ¶
func RosKubernetesCluster_IsRosElement(x interface{}) *bool
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.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosKubernetesCluster_IsRosResource ¶
func RosKubernetesCluster_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosKubernetesCluster_ROS_RESOURCE_TYPE_NAME ¶
func RosKubernetesCluster_ROS_RESOURCE_TYPE_NAME() *string
func RosKubernetesClusters_IsConstruct ¶
func RosKubernetesClusters_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosKubernetesClusters_IsRosElement ¶
func RosKubernetesClusters_IsRosElement(x interface{}) *bool
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.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosKubernetesClusters_IsRosResource ¶
func RosKubernetesClusters_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosKubernetesClusters_ROS_RESOURCE_TYPE_NAME ¶
func RosKubernetesClusters_ROS_RESOURCE_TYPE_NAME() *string
Types ¶
type ClusterApplicationResources ¶
type ClusterApplicationResources interface { alicloudroscdkcore.Resource IClusterApplicationResources // Attribute Response: Query result of kubernetes resource(s). AttrResponse() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *ClusterApplicationResourcesProps Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `DATASOURCE::CS::ClusterApplicationResources`, which is used to query the information about resources of a specified type in a Container Service for Kubernetes (ACK) cluster.
func NewClusterApplicationResources ¶
func NewClusterApplicationResources(scope alicloudroscdkcore.Construct, id *string, props *ClusterApplicationResourcesProps, enableResourcePropertyConstraint *bool) ClusterApplicationResources
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type ClusterApplicationResourcesProps ¶
type ClusterApplicationResourcesProps struct { // Property clusterId: The ID of the kubernetes cluster. ClusterId interface{} `field:"required" json:"clusterId" yaml:"clusterId"` // Property kind: The kind of kubernetes resources to query. Kind interface{} `field:"required" json:"kind" yaml:"kind"` // Property apiVersion: The api version of kubernetes resource to query. ApiVersion interface{} `field:"optional" json:"apiVersion" yaml:"apiVersion"` // Property firstMatch: Only the first matching result in jsonpath's filtered results is returned. // // Default False. FirstMatch interface{} `field:"optional" json:"firstMatch" yaml:"firstMatch"` // Property jsonPath: Json path expression to filter the output. JsonPath interface{} `field:"optional" json:"jsonPath" yaml:"jsonPath"` // Property name: The name of the kubernetes resource to query. Name interface{} `field:"optional" json:"name" yaml:"name"` // Property namespace: The namespace of kubernetes containing the resource. // // Default value is default. Namespace interface{} `field:"optional" json:"namespace" yaml:"namespace"` // 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. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `ClusterApplicationResources`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusterapplicationresources
type ClusterNodePools ¶
type ClusterNodePools interface { alicloudroscdkcore.Resource IClusterNodePools // Attribute NodePoolIds: The list of node_pool IDs. AttrNodePoolIds() interface{} // Attribute NodePools: The list of node_pools. AttrNodePools() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *ClusterNodePoolsProps Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `DATASOURCE::CS::ClusterNodePools`, which is used to query the information about all node pools in a Container Service for Kubernetes (ACK) cluster.
func NewClusterNodePools ¶
func NewClusterNodePools(scope alicloudroscdkcore.Construct, id *string, props *ClusterNodePoolsProps, enableResourcePropertyConstraint *bool) ClusterNodePools
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type ClusterNodePoolsProps ¶
type ClusterNodePoolsProps struct { // Property clusterId: Cluster ID. ClusterId interface{} `field:"required" json:"clusterId" yaml:"clusterId"` // 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. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `ClusterNodePools`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusternodepools
type ClusterUserKubeconfig ¶
type ClusterUserKubeconfig interface { alicloudroscdkcore.Resource IClusterUserKubeconfig // Attribute ClusterId: The ID of the ACK cluster. AttrClusterId() interface{} // Attribute Config: The content of the kubeconfig file. AttrConfig() interface{} // Attribute Expiration: The expiration time of the kubeconfig file. // // The value is the UTC time displayed in RFC3339 format. AttrExpiration() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *ClusterUserKubeconfigProps Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `DATASOURCE::CS::ClusterUserKubeconfig`, which is used to query the kubeconfig file of a Container Service for Kubernetes (ACK) cluster by cluster ID.
func NewClusterUserKubeconfig ¶
func NewClusterUserKubeconfig(scope alicloudroscdkcore.Construct, id *string, props *ClusterUserKubeconfigProps, enableResourcePropertyConstraint *bool) ClusterUserKubeconfig
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type ClusterUserKubeconfigProps ¶
type ClusterUserKubeconfigProps struct { // Property clusterId: The ID of the ACK cluster. ClusterId interface{} `field:"required" json:"clusterId" yaml:"clusterId"` // 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. PrivateIpAddress interface{} `field:"optional" json:"privateIpAddress" yaml:"privateIpAddress"` // 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. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` // 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. TemporaryDurationMinutes interface{} `field:"optional" json:"temporaryDurationMinutes" yaml:"temporaryDurationMinutes"` }
Properties for defining a `ClusterUserKubeconfig`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusteruserkubeconfig
type IClusterApplicationResources ¶ added in v1.6.0
type IClusterApplicationResources interface { alicloudroscdkcore.IResource // Attribute Response: Query result of kubernetes resource(s). AttrResponse() interface{} Props() *ClusterApplicationResourcesProps }
Represents a `ClusterApplicationResources`.
type IClusterNodePools ¶ added in v1.6.0
type IClusterNodePools interface { alicloudroscdkcore.IResource // Attribute NodePoolIds: The list of node_pool IDs. AttrNodePoolIds() interface{} // Attribute NodePools: The list of node_pools. AttrNodePools() interface{} Props() *ClusterNodePoolsProps }
Represents a `ClusterNodePools`.
type IClusterUserKubeconfig ¶ added in v1.6.0
type IClusterUserKubeconfig interface { alicloudroscdkcore.IResource // Attribute ClusterId: The ID of the ACK cluster. AttrClusterId() interface{} // Attribute Config: The content of the kubeconfig file. AttrConfig() interface{} // Attribute Expiration: The expiration time of the kubeconfig file. // // The value is the UTC time displayed in RFC3339 format. AttrExpiration() interface{} Props() *ClusterUserKubeconfigProps }
Represents a `ClusterUserKubeconfig`.
type IKubernetesCluster ¶ added in v1.6.0
type IKubernetesCluster interface { alicloudroscdkcore.IResource // Attribute ClusterId: Cluster instance ID. AttrClusterId() interface{} // Attribute ClusterSpec: The type of the managed Kubernetes cluster. // // This parameter is returned for a managed Kubernetes cluster. Valid values: // - ack.pro.small: professional managed Kubernetes cluster. // - ack.standard: standard managed Kubernetes cluster. AttrClusterSpec() interface{} // Attribute ClusterType: The type of the cluster. // // Valid values: // - Kubernetes: dedicated Kubernetes cluster // - ManagedKubernetes: managed Kubernetes cluster // - Ask: ASK cluster // - ExternalKubernetes: registered external Kubernetes cluster. AttrClusterType() interface{} // Attribute Created: The time when the cluster was created. AttrCreated() interface{} // Attribute CurrentVersion: The current Kubernetes version of the cluster. // // For more information about the Kubernetes versions supported by ACK, see Release notes for Kubernetes versions. AttrCurrentVersion() interface{} // Attribute DeletionProtection: Indicates whether deletion protection is enabled. // // If deletion protection is enabled, the cluster cannot be deleted in the ACK console or by calling the API. Valid values: // - true: Deletion protection is enabled. You cannot delete the cluster in the ACK console or by calling the API. // - false: Deletion protection is not enabled. You can delete the cluster in the ACK console or by calling the API. AttrDeletionProtection() interface{} // Attribute DockerVersion: The Docker version that is used by the cluster. AttrDockerVersion() interface{} // Attribute ExternalLoadbalancerId: The ID of the Server Load Balancer (SLB) instance that is used for the Ingress of the cluster. AttrExternalLoadbalancerId() interface{} // Attribute InitVersion: The Kubernetes version that is initially used by the cluster. AttrInitVersion() interface{} // Attribute MaintenanceWindow: The maintenance window of the cluster. // // This feature is available in only professional managed Kubernetes clusters. AttrMaintenanceWindow() interface{} // Attribute MasterUrl: The address of the cluster. // // It includes an internal endpoint and a public endpoint. AttrMasterUrl() interface{} // Attribute MetaData: The metadata of the cluster. AttrMetaData() interface{} // Attribute Name: The name of the cluster. // // The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). It cannot start with a hyphen (-). AttrName() interface{} // Attribute NetworkMode: The network mode of the cluster. // // Valid values: // - classic: the classic network // - vpc: virtual private cloud (VPC) // - overlay: overlay network // - calico: network powered by Calico // Default value: vpc. AttrNetworkMode() interface{} // Attribute NextVersion: The Kubernetes version to which the cluster can be upgraded. AttrNextVersion() interface{} // Attribute Parameters: A collection of cluster ROS parameters. AttrParameters() interface{} // Attribute PrivateZone: Indicates whether Alibaba Cloud DNS PrivateZone is enabled. // // - true: indicates that Alibaba Cloud DNS PrivateZone is enabled.- false: indicates that Alibaba Cloud DNS PrivateZone is not enabled. AttrPrivateZone() interface{} // Attribute Profile: Indicates the scenario in which the cluster is used. // // Valid values: // - Default: indicates that the cluster is used in non-edge computing scenarios. // - Edge: indicates that the ACK cluster is used in edge computing scenarios. AttrProfile() interface{} // Attribute RegionId: The ID of the region where the cluster is deployed. AttrRegionId() interface{} // Attribute ResourceGroupId: The ID of the resource group to which the cluster belongs. AttrResourceGroupId() interface{} // Attribute SecurityGroupId: The ID of the security group to which the instances of the cluster belong. AttrSecurityGroupId() interface{} // Attribute ServiceCidr: The cluster service cidr. AttrServiceCidr() interface{} // Attribute Size: The number of nodes in the cluster. // // Master nodes and worker nodes are included. AttrSize() interface{} // Attribute State: The state of the cluster. // // Valid values: // - initial: The cluster is being created. // - failed: The cluster failed to be created. // - running: The cluster is running. // - updating: The cluster is being upgraded. // - updating_failed: The cluster failed to be upgraded. // - scaling: The cluster is being scaled. // - waiting: The registered cluster is waiting for connecting. // - disconnected: The registeredcluster is disconnected. // - stopped: The cluster is stopped. // - deleting: The cluster is being deleted. // - deleted: The cluster is deleted. // - delete_failed: The cluster failed to be deleted. AttrState() interface{} // Attribute SubnetCidr: The pod CIDR block. // // It must be a valid and private CIDR block, and must be one of the following CIDR blocks or their subnets: // - 10.0.0.0/8 // - 172.16-31.0.0/12-16 // - 192.168.0.0/16 // The pod CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. For more information about the network segmentation of ACK clusters, see Plan CIDR blocks for ACK clusters in a VPC. AttrSubnetCidr() interface{} // Attribute Tags: The labels of the cluster. AttrTags() interface{} // Attribute Updated: The time when the cluster was updated. AttrUpdated() interface{} // Attribute VpcId: The ID of the VPC where the cluster is deployed. // // This parameter is required when you create an ACK cluster. AttrVpcId() interface{} // Attribute VSwitchId: The IDs of the vSwitches. // // You can select one to three vSwitches when you create an ACK cluster. vSwitches in different zones are recommended to ensure high availability. AttrVSwitchId() interface{} // Attribute VSwitchIds: The list of cluster control plane VSwitch ID. AttrVSwitchIds() interface{} // Attribute WorkerRamRoleName: The name of the worker RAM role. // // The RAM role is assigned to the worker nodes of the cluster and allows the worker nodes to manage Elastic Compute Service (ECS) instances. AttrWorkerRamRoleName() interface{} // Attribute ZoneId: The ID of the zone where the cluster is deployed. AttrZoneId() interface{} Props() *KubernetesClusterProps }
Represents a `KubernetesCluster`.
type IKubernetesClusters ¶ added in v1.6.0
type IKubernetesClusters interface { alicloudroscdkcore.IResource // Attribute ClusterIds: The list of cluster IDs. AttrClusterIds() interface{} // Attribute Clusters: The list of clusters. AttrClusters() interface{} Props() *KubernetesClustersProps }
Represents a `KubernetesClusters`.
type KubernetesCluster ¶
type KubernetesCluster interface { alicloudroscdkcore.Resource IKubernetesCluster // Attribute ClusterId: Cluster instance ID. AttrClusterId() interface{} // Attribute ClusterSpec: The type of the managed Kubernetes cluster. // // This parameter is returned for a managed Kubernetes cluster. Valid values: // - ack.pro.small: professional managed Kubernetes cluster. // - ack.standard: standard managed Kubernetes cluster. AttrClusterSpec() interface{} // Attribute ClusterType: The type of the cluster. // // Valid values: // - Kubernetes: dedicated Kubernetes cluster // - ManagedKubernetes: managed Kubernetes cluster // - Ask: ASK cluster // - ExternalKubernetes: registered external Kubernetes cluster. AttrClusterType() interface{} // Attribute Created: The time when the cluster was created. AttrCreated() interface{} // Attribute CurrentVersion: The current Kubernetes version of the cluster. // // For more information about the Kubernetes versions supported by ACK, see Release notes for Kubernetes versions. AttrCurrentVersion() interface{} // Attribute DeletionProtection: Indicates whether deletion protection is enabled. // // If deletion protection is enabled, the cluster cannot be deleted in the ACK console or by calling the API. Valid values: // - true: Deletion protection is enabled. You cannot delete the cluster in the ACK console or by calling the API. // - false: Deletion protection is not enabled. You can delete the cluster in the ACK console or by calling the API. AttrDeletionProtection() interface{} // Attribute DockerVersion: The Docker version that is used by the cluster. AttrDockerVersion() interface{} // Attribute ExternalLoadbalancerId: The ID of the Server Load Balancer (SLB) instance that is used for the Ingress of the cluster. AttrExternalLoadbalancerId() interface{} // Attribute InitVersion: The Kubernetes version that is initially used by the cluster. AttrInitVersion() interface{} // Attribute MaintenanceWindow: The maintenance window of the cluster. // // This feature is available in only professional managed Kubernetes clusters. AttrMaintenanceWindow() interface{} // Attribute MasterUrl: The address of the cluster. // // It includes an internal endpoint and a public endpoint. AttrMasterUrl() interface{} // Attribute MetaData: The metadata of the cluster. AttrMetaData() interface{} // Attribute Name: The name of the cluster. // // The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). It cannot start with a hyphen (-). AttrName() interface{} // Attribute NetworkMode: The network mode of the cluster. // // Valid values: // - classic: the classic network // - vpc: virtual private cloud (VPC) // - overlay: overlay network // - calico: network powered by Calico // Default value: vpc. AttrNetworkMode() interface{} // Attribute NextVersion: The Kubernetes version to which the cluster can be upgraded. AttrNextVersion() interface{} // Attribute Parameters: A collection of cluster ROS parameters. AttrParameters() interface{} // Attribute PrivateZone: Indicates whether Alibaba Cloud DNS PrivateZone is enabled. // // - true: indicates that Alibaba Cloud DNS PrivateZone is enabled.- false: indicates that Alibaba Cloud DNS PrivateZone is not enabled. AttrPrivateZone() interface{} // Attribute Profile: Indicates the scenario in which the cluster is used. // // Valid values: // - Default: indicates that the cluster is used in non-edge computing scenarios. // - Edge: indicates that the ACK cluster is used in edge computing scenarios. AttrProfile() interface{} // Attribute RegionId: The ID of the region where the cluster is deployed. AttrRegionId() interface{} // Attribute ResourceGroupId: The ID of the resource group to which the cluster belongs. AttrResourceGroupId() interface{} // Attribute SecurityGroupId: The ID of the security group to which the instances of the cluster belong. AttrSecurityGroupId() interface{} // Attribute ServiceCidr: The cluster service cidr. AttrServiceCidr() interface{} // Attribute Size: The number of nodes in the cluster. // // Master nodes and worker nodes are included. AttrSize() interface{} // Attribute State: The state of the cluster. // // Valid values: // - initial: The cluster is being created. // - failed: The cluster failed to be created. // - running: The cluster is running. // - updating: The cluster is being upgraded. // - updating_failed: The cluster failed to be upgraded. // - scaling: The cluster is being scaled. // - waiting: The registered cluster is waiting for connecting. // - disconnected: The registeredcluster is disconnected. // - stopped: The cluster is stopped. // - deleting: The cluster is being deleted. // - deleted: The cluster is deleted. // - delete_failed: The cluster failed to be deleted. AttrState() interface{} // Attribute SubnetCidr: The pod CIDR block. // // It must be a valid and private CIDR block, and must be one of the following CIDR blocks or their subnets: // - 10.0.0.0/8 // - 172.16-31.0.0/12-16 // - 192.168.0.0/16 // The pod CIDR block cannot overlap with that of the VPC or those of the ACK clusters that are deployed in the VPC. For more information about the network segmentation of ACK clusters, see Plan CIDR blocks for ACK clusters in a VPC. AttrSubnetCidr() interface{} // Attribute Tags: The labels of the cluster. AttrTags() interface{} // Attribute Updated: The time when the cluster was updated. AttrUpdated() interface{} // Attribute VpcId: The ID of the VPC where the cluster is deployed. // // This parameter is required when you create an ACK cluster. AttrVpcId() interface{} // Attribute VSwitchId: The IDs of the vSwitches. // // You can select one to three vSwitches when you create an ACK cluster. vSwitches in different zones are recommended to ensure high availability. AttrVSwitchId() interface{} // Attribute VSwitchIds: The list of cluster control plane VSwitch ID. AttrVSwitchIds() interface{} // Attribute WorkerRamRoleName: The name of the worker RAM role. // // The RAM role is assigned to the worker nodes of the cluster and allows the worker nodes to manage Elastic Compute Service (ECS) instances. AttrWorkerRamRoleName() interface{} // Attribute ZoneId: The ID of the zone where the cluster is deployed. AttrZoneId() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *KubernetesClusterProps Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `DATASOURCE::CS::KubernetesCluster`, which is used to query the information about a Container Service for Kubernetes (ACK) cluster.
func NewKubernetesCluster ¶
func NewKubernetesCluster(scope alicloudroscdkcore.Construct, id *string, props *KubernetesClusterProps, enableResourcePropertyConstraint *bool) KubernetesCluster
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type KubernetesClusterProps ¶
type KubernetesClusterProps struct { // Property clusterId: Cluster instance ID. ClusterId interface{} `field:"optional" json:"clusterId" yaml:"clusterId"` // 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. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `KubernetesCluster`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-kubernetescluster
type KubernetesClusters ¶
type KubernetesClusters interface { alicloudroscdkcore.Resource IKubernetesClusters // Attribute ClusterIds: The list of cluster IDs. AttrClusterIds() interface{} // Attribute Clusters: The list of clusters. AttrClusters() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *KubernetesClustersProps Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `DATASOURCE::CS::KubernetesClusters`, which is used to query Container Service for Kubernetes (ACK) clusters.
func NewKubernetesClusters ¶
func NewKubernetesClusters(scope alicloudroscdkcore.Construct, id *string, props *KubernetesClustersProps, enableResourcePropertyConstraint *bool) KubernetesClusters
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type KubernetesClustersProps ¶
type KubernetesClustersProps struct { // Property clusterSpec: The specification of the cluster. // // If you set the cluster type to ManagedKubernetes, you can use cluster specifications to distinguish clusters. Valid values: // ack.pro.small: professional managed Kubernetes cluster // ack.standard: standard managed Kubernetes cluster // By default, this parameter is empty. This indicates that the parameter is not used to filter clusters. ClusterSpec interface{} `field:"optional" json:"clusterSpec" yaml:"clusterSpec"` // Property clusterType: The type of the cluster. // // Valid values: // Kubernetes: dedicated Kubernetes cluster // ManagedKubernetes: managed Kubernetes cluster, serverless Kubernetes (ASK) cluster, or edge Kubernetes cluster // Ask: ASK cluster // ExternalKubernetes: registered external cluster // When you query an ASK cluster, the value specified when the cluster was created is returned. ClusterType interface{} `field:"optional" json:"clusterType" yaml:"clusterType"` // Property name: The name of the cluster.The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). It cannot start with a hyphen (-). Name interface{} `field:"optional" json:"name" yaml:"name"` // Property profile: The identifier of the cluster. // // If you set the cluster type to ManagedKubernetes, you can use cluster identifiers to distinguish clusters. Valid values: // Default: managed Kubernetes cluster // Serverless: ASK cluster // Edge: edge Kubernetes cluster // By default, this parameter is empty. This indicates that the parameter is not used to filter clusters. Profile interface{} `field:"optional" json:"profile" yaml:"profile"` // 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. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `KubernetesClusters`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-kubernetesclusters
type RosClusterApplicationResources ¶
type RosClusterApplicationResources interface { alicloudroscdkcore.RosResource ApiVersion() interface{} SetApiVersion(val interface{}) AttrResponse() alicloudroscdkcore.IResolvable ClusterId() interface{} SetClusterId(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) FirstMatch() interface{} SetFirstMatch(val interface{}) JsonPath() interface{} SetJsonPath(val interface{}) Kind() interface{} SetKind(val interface{}) // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string Name() interface{} SetName(val interface{}) Namespace() interface{} SetNamespace(val interface{}) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // 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 })`. Ref() *string RefreshOptions() interface{} SetRefreshOptions(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // 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. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // 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, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `DATASOURCE::CS::ClusterApplicationResources`, which is used to query the information about resources of a specified type in a Container Service for Kubernetes (ACK) cluster.
func NewRosClusterApplicationResources ¶
func NewRosClusterApplicationResources(scope alicloudroscdkcore.Construct, id *string, props *RosClusterApplicationResourcesProps, enableResourcePropertyConstraint *bool) RosClusterApplicationResources
type RosClusterApplicationResourcesProps ¶
type RosClusterApplicationResourcesProps struct { ClusterId interface{} `field:"required" json:"clusterId" yaml:"clusterId"` Kind interface{} `field:"required" json:"kind" yaml:"kind"` ApiVersion interface{} `field:"optional" json:"apiVersion" yaml:"apiVersion"` FirstMatch interface{} `field:"optional" json:"firstMatch" yaml:"firstMatch"` JsonPath interface{} `field:"optional" json:"jsonPath" yaml:"jsonPath"` Name interface{} `field:"optional" json:"name" yaml:"name"` Namespace interface{} `field:"optional" json:"namespace" yaml:"namespace"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosClusterApplicationResources`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusterapplicationresources
type RosClusterNodePools ¶
type RosClusterNodePools interface { alicloudroscdkcore.RosResource AttrNodePoolIds() alicloudroscdkcore.IResolvable AttrNodePools() alicloudroscdkcore.IResolvable ClusterId() interface{} SetClusterId(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // 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 })`. Ref() *string RefreshOptions() interface{} SetRefreshOptions(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // 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. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // 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, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `DATASOURCE::CS::ClusterNodePools`, which is used to query the information about all node pools in a Container Service for Kubernetes (ACK) cluster.
func NewRosClusterNodePools ¶
func NewRosClusterNodePools(scope alicloudroscdkcore.Construct, id *string, props *RosClusterNodePoolsProps, enableResourcePropertyConstraint *bool) RosClusterNodePools
type RosClusterNodePoolsProps ¶
type RosClusterNodePoolsProps struct { ClusterId interface{} `field:"required" json:"clusterId" yaml:"clusterId"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosClusterNodePools`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusternodepools
type RosClusterUserKubeconfig ¶
type RosClusterUserKubeconfig interface { alicloudroscdkcore.RosResource AttrClusterId() alicloudroscdkcore.IResolvable AttrConfig() alicloudroscdkcore.IResolvable AttrExpiration() alicloudroscdkcore.IResolvable ClusterId() interface{} SetClusterId(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode PrivateIpAddress() interface{} SetPrivateIpAddress(val interface{}) // 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 })`. Ref() *string RefreshOptions() interface{} SetRefreshOptions(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack TemporaryDurationMinutes() interface{} SetTemporaryDurationMinutes(val interface{}) // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // 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. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // 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, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `DATASOURCE::CS::ClusterUserKubeconfig`, which is used to query the kubeconfig file of a Container Service for Kubernetes (ACK) cluster by cluster ID.
func NewRosClusterUserKubeconfig ¶
func NewRosClusterUserKubeconfig(scope alicloudroscdkcore.Construct, id *string, props *RosClusterUserKubeconfigProps, enableResourcePropertyConstraint *bool) RosClusterUserKubeconfig
type RosClusterUserKubeconfigProps ¶
type RosClusterUserKubeconfigProps struct { ClusterId interface{} `field:"required" json:"clusterId" yaml:"clusterId"` PrivateIpAddress interface{} `field:"optional" json:"privateIpAddress" yaml:"privateIpAddress"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` TemporaryDurationMinutes interface{} `field:"optional" json:"temporaryDurationMinutes" yaml:"temporaryDurationMinutes"` }
Properties for defining a `RosClusterUserKubeconfig`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-clusteruserkubeconfig
type RosKubernetesCluster ¶
type RosKubernetesCluster interface { alicloudroscdkcore.RosResource AttrClusterId() alicloudroscdkcore.IResolvable AttrClusterSpec() alicloudroscdkcore.IResolvable AttrClusterType() alicloudroscdkcore.IResolvable AttrCreated() alicloudroscdkcore.IResolvable AttrCurrentVersion() alicloudroscdkcore.IResolvable AttrDeletionProtection() alicloudroscdkcore.IResolvable AttrDockerVersion() alicloudroscdkcore.IResolvable AttrExternalLoadbalancerId() alicloudroscdkcore.IResolvable AttrInitVersion() alicloudroscdkcore.IResolvable AttrMaintenanceWindow() alicloudroscdkcore.IResolvable AttrMasterUrl() alicloudroscdkcore.IResolvable AttrMetaData() alicloudroscdkcore.IResolvable AttrName() alicloudroscdkcore.IResolvable AttrNetworkMode() alicloudroscdkcore.IResolvable AttrNextVersion() alicloudroscdkcore.IResolvable AttrParameters() alicloudroscdkcore.IResolvable AttrPrivateZone() alicloudroscdkcore.IResolvable AttrProfile() alicloudroscdkcore.IResolvable AttrRegionId() alicloudroscdkcore.IResolvable AttrResourceGroupId() alicloudroscdkcore.IResolvable AttrSecurityGroupId() alicloudroscdkcore.IResolvable AttrServiceCidr() alicloudroscdkcore.IResolvable AttrSize() alicloudroscdkcore.IResolvable AttrState() alicloudroscdkcore.IResolvable AttrSubnetCidr() alicloudroscdkcore.IResolvable AttrTags() alicloudroscdkcore.IResolvable AttrUpdated() alicloudroscdkcore.IResolvable AttrVpcId() alicloudroscdkcore.IResolvable AttrVSwitchId() alicloudroscdkcore.IResolvable AttrVSwitchIds() alicloudroscdkcore.IResolvable AttrWorkerRamRoleName() alicloudroscdkcore.IResolvable AttrZoneId() alicloudroscdkcore.IResolvable ClusterId() interface{} SetClusterId(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // 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 })`. Ref() *string RefreshOptions() interface{} SetRefreshOptions(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // 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. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // 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, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `DATASOURCE::CS::KubernetesCluster`, which is used to query the information about a Container Service for Kubernetes (ACK) cluster.
func NewRosKubernetesCluster ¶
func NewRosKubernetesCluster(scope alicloudroscdkcore.Construct, id *string, props *RosKubernetesClusterProps, enableResourcePropertyConstraint *bool) RosKubernetesCluster
type RosKubernetesClusterProps ¶
type RosKubernetesClusterProps struct { ClusterId interface{} `field:"optional" json:"clusterId" yaml:"clusterId"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosKubernetesCluster`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-kubernetescluster
type RosKubernetesClusters ¶
type RosKubernetesClusters interface { alicloudroscdkcore.RosResource AttrClusterIds() alicloudroscdkcore.IResolvable AttrClusters() alicloudroscdkcore.IResolvable ClusterSpec() interface{} SetClusterSpec(val interface{}) ClusterType() interface{} SetClusterType(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string Name() interface{} SetName(val interface{}) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode Profile() interface{} SetProfile(val interface{}) // 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 })`. Ref() *string RefreshOptions() interface{} SetRefreshOptions(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // 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. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // 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, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `DATASOURCE::CS::KubernetesClusters`, which is used to query Container Service for Kubernetes (ACK) clusters.
func NewRosKubernetesClusters ¶
func NewRosKubernetesClusters(scope alicloudroscdkcore.Construct, id *string, props *RosKubernetesClustersProps, enableResourcePropertyConstraint *bool) RosKubernetesClusters
type RosKubernetesClustersProps ¶
type RosKubernetesClustersProps struct { ClusterSpec interface{} `field:"optional" json:"clusterSpec" yaml:"clusterSpec"` ClusterType interface{} `field:"optional" json:"clusterType" yaml:"clusterType"` Name interface{} `field:"optional" json:"name" yaml:"name"` Profile interface{} `field:"optional" json:"profile" yaml:"profile"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosKubernetesClusters`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-cs-kubernetesclusters
Source Files ¶
- ClusterApplicationResources.go
- ClusterApplicationResourcesProps.go
- ClusterApplicationResources__checks.go
- ClusterNodePools.go
- ClusterNodePoolsProps.go
- ClusterNodePools__checks.go
- ClusterUserKubeconfig.go
- ClusterUserKubeconfigProps.go
- ClusterUserKubeconfig__checks.go
- IClusterApplicationResources.go
- IClusterNodePools.go
- IClusterUserKubeconfig.go
- IKubernetesCluster.go
- IKubernetesClusters.go
- KubernetesCluster.go
- KubernetesClusterProps.go
- KubernetesCluster__checks.go
- KubernetesClusters.go
- KubernetesClustersProps.go
- KubernetesClusters__checks.go
- RosClusterApplicationResources.go
- RosClusterApplicationResourcesProps.go
- RosClusterApplicationResources__checks.go
- RosClusterNodePools.go
- RosClusterNodePoolsProps.go
- RosClusterNodePools__checks.go
- RosClusterUserKubeconfig.go
- RosClusterUserKubeconfigProps.go
- RosClusterUserKubeconfig__checks.go
- RosKubernetesCluster.go
- RosKubernetesClusterProps.go
- RosKubernetesCluster__checks.go
- RosKubernetesClusters.go
- RosKubernetesClustersProps.go
- RosKubernetesClusters__checks.go
- main.go