Show / Hide Table of Contents

Class AutoscalingPolicy

Describes an autoscaling policy for Dataproc cluster autoscaler.

Inheritance
System.Object
Resource
CustomResource
AutoscalingPolicy
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Dataproc
Assembly: Pulumi.Gcp.dll
Syntax
public class AutoscalingPolicy : CustomResource

Constructors

View Source

AutoscalingPolicy(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 Source

BasicAlgorithm

Basic algorithm for autoscaling. Structure is documented below.

Declaration
public Output<AutoscalingPolicyBasicAlgorithm> BasicAlgorithm { get; }
Property Value
Type Description
Output<AutoscalingPolicyBasicAlgorithm>
View Source

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>
View Source

Name

The "resource name" of the autoscaling policy.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.