Class AutoscalingPolicy
Describes an autoscaling policy for Dataproc cluster autoscaler.
Inherited Members
Namespace: Pulumi.Gcp.Dataproc
Assembly: Pulumi.Gcp.dll
Syntax
public class AutoscalingPolicy : CustomResource
Constructors
View SourceAutoscalingPolicy(String, AutoscalingPolicyArgs, CustomResourceOptions)
Create a AutoscalingPolicy resource with the given unique name, arguments, and options.
Declaration
public AutoscalingPolicy(string name, AutoscalingPolicyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AutoscalingPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBasicAlgorithm
Basic algorithm for autoscaling. Structure is documented below.
Declaration
public Output<AutoscalingPolicyBasicAlgorithm> BasicAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| Output<AutoscalingPolicyBasicAlgorithm> |
Location
The location where the autoscaling poicy should reside.
The default value is global.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The "resource name" of the autoscaling policy.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PolicyId
The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
Declaration
public Output<string> PolicyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecondaryWorkerConfig
Describes how the autoscaler will operate for secondary workers. Structure is documented below.
Declaration
public Output<AutoscalingPolicySecondaryWorkerConfig> SecondaryWorkerConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<AutoscalingPolicySecondaryWorkerConfig> |
WorkerConfig
Describes how the autoscaler will operate for primary workers. Structure is documented below.
Declaration
public Output<AutoscalingPolicyWorkerConfig> WorkerConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<AutoscalingPolicyWorkerConfig> |
Methods
View SourceGet(String, Input<String>, AutoscalingPolicyState, CustomResourceOptions)
Get an existing AutoscalingPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AutoscalingPolicy Get(string name, Input<string> id, AutoscalingPolicyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AutoscalingPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AutoscalingPolicy |