alicloud.cs.KubernetesAutoscaler
Explore with Pulumi AI
Create KubernetesAutoscaler Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesAutoscaler(name: string, args: KubernetesAutoscalerArgs, opts?: CustomResourceOptions);
@overload
def KubernetesAutoscaler(resource_name: str,
args: KubernetesAutoscalerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesAutoscaler(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cool_down_duration: Optional[str] = None,
defer_scale_in_duration: Optional[str] = None,
utilization: Optional[str] = None,
nodepools: Optional[Sequence[KubernetesAutoscalerNodepoolArgs]] = None,
use_ecs_ram_role_token: Optional[bool] = None)
func NewKubernetesAutoscaler(ctx *Context, name string, args KubernetesAutoscalerArgs, opts ...ResourceOption) (*KubernetesAutoscaler, error)
public KubernetesAutoscaler(string name, KubernetesAutoscalerArgs args, CustomResourceOptions? opts = null)
public KubernetesAutoscaler(String name, KubernetesAutoscalerArgs args)
public KubernetesAutoscaler(String name, KubernetesAutoscalerArgs args, CustomResourceOptions options)
type: alicloud:cs:KubernetesAutoscaler
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args KubernetesAutoscalerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args KubernetesAutoscalerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KubernetesAutoscalerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesAutoscalerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesAutoscalerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var kubernetesAutoscalerResource = new AliCloud.CS.KubernetesAutoscaler("kubernetesAutoscalerResource", new()
{
ClusterId = "string",
CoolDownDuration = "string",
DeferScaleInDuration = "string",
Utilization = "string",
Nodepools = new[]
{
new AliCloud.CS.Inputs.KubernetesAutoscalerNodepoolArgs
{
Id = "string",
Labels = "string",
Taints = "string",
},
},
UseEcsRamRoleToken = false,
});
example, err := cs.NewKubernetesAutoscaler(ctx, "kubernetesAutoscalerResource", &cs.KubernetesAutoscalerArgs{
ClusterId: pulumi.String("string"),
CoolDownDuration: pulumi.String("string"),
DeferScaleInDuration: pulumi.String("string"),
Utilization: pulumi.String("string"),
Nodepools: cs.KubernetesAutoscalerNodepoolArray{
&cs.KubernetesAutoscalerNodepoolArgs{
Id: pulumi.String("string"),
Labels: pulumi.String("string"),
Taints: pulumi.String("string"),
},
},
UseEcsRamRoleToken: pulumi.Bool(false),
})
var kubernetesAutoscalerResource = new KubernetesAutoscaler("kubernetesAutoscalerResource", KubernetesAutoscalerArgs.builder()
.clusterId("string")
.coolDownDuration("string")
.deferScaleInDuration("string")
.utilization("string")
.nodepools(KubernetesAutoscalerNodepoolArgs.builder()
.id("string")
.labels("string")
.taints("string")
.build())
.useEcsRamRoleToken(false)
.build());
kubernetes_autoscaler_resource = alicloud.cs.KubernetesAutoscaler("kubernetesAutoscalerResource",
cluster_id="string",
cool_down_duration="string",
defer_scale_in_duration="string",
utilization="string",
nodepools=[{
"id": "string",
"labels": "string",
"taints": "string",
}],
use_ecs_ram_role_token=False)
const kubernetesAutoscalerResource = new alicloud.cs.KubernetesAutoscaler("kubernetesAutoscalerResource", {
clusterId: "string",
coolDownDuration: "string",
deferScaleInDuration: "string",
utilization: "string",
nodepools: [{
id: "string",
labels: "string",
taints: "string",
}],
useEcsRamRoleToken: false,
});
type: alicloud:cs:KubernetesAutoscaler
properties:
clusterId: string
coolDownDuration: string
deferScaleInDuration: string
nodepools:
- id: string
labels: string
taints: string
useEcsRamRoleToken: false
utilization: string
KubernetesAutoscaler Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The KubernetesAutoscaler resource accepts the following input properties:
- Cluster
Id string - The id of kubernetes cluster.
- Cool
Down stringDuration - The cool_down_duration option of cluster-autoscaler.
- Defer
Scale stringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- Utilization string
- The utilization option of cluster-autoscaler.
- Nodepools
List<Pulumi.
Ali Cloud. CS. Inputs. Kubernetes Autoscaler Nodepool> - The list of the node pools. See
nodepools
below. - Use
Ecs boolRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- Cluster
Id string - The id of kubernetes cluster.
- Cool
Down stringDuration - The cool_down_duration option of cluster-autoscaler.
- Defer
Scale stringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- Utilization string
- The utilization option of cluster-autoscaler.
- Nodepools
[]Kubernetes
Autoscaler Nodepool Args - The list of the node pools. See
nodepools
below. - Use
Ecs boolRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- cluster
Id String - The id of kubernetes cluster.
- cool
Down StringDuration - The cool_down_duration option of cluster-autoscaler.
- defer
Scale StringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- utilization String
- The utilization option of cluster-autoscaler.
- nodepools
List<Kubernetes
Autoscaler Nodepool> - The list of the node pools. See
nodepools
below. - use
Ecs BooleanRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- cluster
Id string - The id of kubernetes cluster.
- cool
Down stringDuration - The cool_down_duration option of cluster-autoscaler.
- defer
Scale stringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- utilization string
- The utilization option of cluster-autoscaler.
- nodepools
Kubernetes
Autoscaler Nodepool[] - The list of the node pools. See
nodepools
below. - use
Ecs booleanRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- cluster_
id str - The id of kubernetes cluster.
- cool_
down_ strduration - The cool_down_duration option of cluster-autoscaler.
- defer_
scale_ strin_ duration - The defer_scale_in_duration option of cluster-autoscaler.
- utilization str
- The utilization option of cluster-autoscaler.
- nodepools
Sequence[Kubernetes
Autoscaler Nodepool Args] - The list of the node pools. See
nodepools
below. - use_
ecs_ boolram_ role_ token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- cluster
Id String - The id of kubernetes cluster.
- cool
Down StringDuration - The cool_down_duration option of cluster-autoscaler.
- defer
Scale StringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- utilization String
- The utilization option of cluster-autoscaler.
- nodepools List<Property Map>
- The list of the node pools. See
nodepools
below. - use
Ecs BooleanRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesAutoscaler resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing KubernetesAutoscaler Resource
Get an existing KubernetesAutoscaler resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: KubernetesAutoscalerState, opts?: CustomResourceOptions): KubernetesAutoscaler
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cool_down_duration: Optional[str] = None,
defer_scale_in_duration: Optional[str] = None,
nodepools: Optional[Sequence[KubernetesAutoscalerNodepoolArgs]] = None,
use_ecs_ram_role_token: Optional[bool] = None,
utilization: Optional[str] = None) -> KubernetesAutoscaler
func GetKubernetesAutoscaler(ctx *Context, name string, id IDInput, state *KubernetesAutoscalerState, opts ...ResourceOption) (*KubernetesAutoscaler, error)
public static KubernetesAutoscaler Get(string name, Input<string> id, KubernetesAutoscalerState? state, CustomResourceOptions? opts = null)
public static KubernetesAutoscaler get(String name, Output<String> id, KubernetesAutoscalerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - The id of kubernetes cluster.
- Cool
Down stringDuration - The cool_down_duration option of cluster-autoscaler.
- Defer
Scale stringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- Nodepools
List<Pulumi.
Ali Cloud. CS. Inputs. Kubernetes Autoscaler Nodepool> - The list of the node pools. See
nodepools
below. - Use
Ecs boolRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- Utilization string
- The utilization option of cluster-autoscaler.
- Cluster
Id string - The id of kubernetes cluster.
- Cool
Down stringDuration - The cool_down_duration option of cluster-autoscaler.
- Defer
Scale stringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- Nodepools
[]Kubernetes
Autoscaler Nodepool Args - The list of the node pools. See
nodepools
below. - Use
Ecs boolRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- Utilization string
- The utilization option of cluster-autoscaler.
- cluster
Id String - The id of kubernetes cluster.
- cool
Down StringDuration - The cool_down_duration option of cluster-autoscaler.
- defer
Scale StringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- nodepools
List<Kubernetes
Autoscaler Nodepool> - The list of the node pools. See
nodepools
below. - use
Ecs BooleanRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- utilization String
- The utilization option of cluster-autoscaler.
- cluster
Id string - The id of kubernetes cluster.
- cool
Down stringDuration - The cool_down_duration option of cluster-autoscaler.
- defer
Scale stringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- nodepools
Kubernetes
Autoscaler Nodepool[] - The list of the node pools. See
nodepools
below. - use
Ecs booleanRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- utilization string
- The utilization option of cluster-autoscaler.
- cluster_
id str - The id of kubernetes cluster.
- cool_
down_ strduration - The cool_down_duration option of cluster-autoscaler.
- defer_
scale_ strin_ duration - The defer_scale_in_duration option of cluster-autoscaler.
- nodepools
Sequence[Kubernetes
Autoscaler Nodepool Args] - The list of the node pools. See
nodepools
below. - use_
ecs_ boolram_ role_ token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- utilization str
- The utilization option of cluster-autoscaler.
- cluster
Id String - The id of kubernetes cluster.
- cool
Down StringDuration - The cool_down_duration option of cluster-autoscaler.
- defer
Scale StringIn Duration - The defer_scale_in_duration option of cluster-autoscaler.
- nodepools List<Property Map>
- The list of the node pools. See
nodepools
below. - use
Ecs BooleanRam Role Token - Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
- utilization String
- The utilization option of cluster-autoscaler.
Supporting Types
KubernetesAutoscalerNodepool, KubernetesAutoscalerNodepoolArgs
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.