Documentation ¶
Index ¶
- func DataprocAutoscalingPolicy_IsConstruct(x interface{}) *bool
- func DataprocAutoscalingPolicy_IsTerraformElement(x interface{}) *bool
- func DataprocAutoscalingPolicy_IsTerraformResource(x interface{}) *bool
- func DataprocAutoscalingPolicy_TfResourceType() *string
- func NewDataprocAutoscalingPolicyBasicAlgorithmOutputReference_Override(d DataprocAutoscalingPolicyBasicAlgorithmOutputReference, ...)
- func NewDataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference_Override(d DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference, ...)
- func NewDataprocAutoscalingPolicySecondaryWorkerConfigOutputReference_Override(d DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference, ...)
- func NewDataprocAutoscalingPolicyTimeoutsOutputReference_Override(d DataprocAutoscalingPolicyTimeoutsOutputReference, ...)
- func NewDataprocAutoscalingPolicyWorkerConfigOutputReference_Override(d DataprocAutoscalingPolicyWorkerConfigOutputReference, ...)
- func NewDataprocAutoscalingPolicy_Override(d DataprocAutoscalingPolicy, scope constructs.Construct, id *string, ...)
- type DataprocAutoscalingPolicy
- type DataprocAutoscalingPolicyBasicAlgorithm
- type DataprocAutoscalingPolicyBasicAlgorithmOutputReference
- type DataprocAutoscalingPolicyBasicAlgorithmYarnConfig
- type DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference
- type DataprocAutoscalingPolicyConfig
- type DataprocAutoscalingPolicySecondaryWorkerConfig
- type DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference
- type DataprocAutoscalingPolicyTimeouts
- type DataprocAutoscalingPolicyTimeoutsOutputReference
- type DataprocAutoscalingPolicyWorkerConfig
- type DataprocAutoscalingPolicyWorkerConfigOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataprocAutoscalingPolicy_IsConstruct ¶
func DataprocAutoscalingPolicy_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func DataprocAutoscalingPolicy_IsTerraformElement ¶
func DataprocAutoscalingPolicy_IsTerraformElement(x interface{}) *bool
Experimental.
func DataprocAutoscalingPolicy_IsTerraformResource ¶
func DataprocAutoscalingPolicy_IsTerraformResource(x interface{}) *bool
Experimental.
func DataprocAutoscalingPolicy_TfResourceType ¶
func DataprocAutoscalingPolicy_TfResourceType() *string
func NewDataprocAutoscalingPolicyBasicAlgorithmOutputReference_Override ¶
func NewDataprocAutoscalingPolicyBasicAlgorithmOutputReference_Override(d DataprocAutoscalingPolicyBasicAlgorithmOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewDataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference_Override ¶
func NewDataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference_Override(d DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewDataprocAutoscalingPolicySecondaryWorkerConfigOutputReference_Override ¶
func NewDataprocAutoscalingPolicySecondaryWorkerConfigOutputReference_Override(d DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewDataprocAutoscalingPolicyTimeoutsOutputReference_Override ¶
func NewDataprocAutoscalingPolicyTimeoutsOutputReference_Override(d DataprocAutoscalingPolicyTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewDataprocAutoscalingPolicyWorkerConfigOutputReference_Override ¶
func NewDataprocAutoscalingPolicyWorkerConfigOutputReference_Override(d DataprocAutoscalingPolicyWorkerConfigOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewDataprocAutoscalingPolicy_Override ¶
func NewDataprocAutoscalingPolicy_Override(d DataprocAutoscalingPolicy, scope constructs.Construct, id *string, config *DataprocAutoscalingPolicyConfig)
Create a new {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy google_dataproc_autoscaling_policy} Resource.
Types ¶
type DataprocAutoscalingPolicy ¶
type DataprocAutoscalingPolicy interface { cdktf.TerraformResource BasicAlgorithm() DataprocAutoscalingPolicyBasicAlgorithmOutputReference BasicAlgorithmInput() *DataprocAutoscalingPolicyBasicAlgorithm // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Location() *string SetLocation(val *string) LocationInput() *string Name() *string // The tree node. Node() constructs.Node PolicyId() *string SetPolicyId(val *string) PolicyIdInput() *string Project() *string SetProject(val *string) ProjectInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} SecondaryWorkerConfig() DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference SecondaryWorkerConfigInput() *DataprocAutoscalingPolicySecondaryWorkerConfig // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Timeouts() DataprocAutoscalingPolicyTimeoutsOutputReference TimeoutsInput() interface{} WorkerConfig() DataprocAutoscalingPolicyWorkerConfigOutputReference WorkerConfigInput() *DataprocAutoscalingPolicyWorkerConfig // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutBasicAlgorithm(value *DataprocAutoscalingPolicyBasicAlgorithm) PutSecondaryWorkerConfig(value *DataprocAutoscalingPolicySecondaryWorkerConfig) PutTimeouts(value *DataprocAutoscalingPolicyTimeouts) PutWorkerConfig(value *DataprocAutoscalingPolicyWorkerConfig) ResetBasicAlgorithm() ResetId() ResetLocation() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetProject() ResetSecondaryWorkerConfig() ResetTimeouts() ResetWorkerConfig() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy google_dataproc_autoscaling_policy}.
func NewDataprocAutoscalingPolicy ¶
func NewDataprocAutoscalingPolicy(scope constructs.Construct, id *string, config *DataprocAutoscalingPolicyConfig) DataprocAutoscalingPolicy
Create a new {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy google_dataproc_autoscaling_policy} Resource.
type DataprocAutoscalingPolicyBasicAlgorithm ¶
type DataprocAutoscalingPolicyBasicAlgorithm struct { // yarn_config block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#yarn_config DataprocAutoscalingPolicy#yarn_config} YarnConfig *DataprocAutoscalingPolicyBasicAlgorithmYarnConfig `field:"required" json:"yarnConfig" yaml:"yarnConfig"` // Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. // // Bounds: [2m, 1d]. Default: 2m. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#cooldown_period DataprocAutoscalingPolicy#cooldown_period} CooldownPeriod *string `field:"optional" json:"cooldownPeriod" yaml:"cooldownPeriod"` }
type DataprocAutoscalingPolicyBasicAlgorithmOutputReference ¶
type DataprocAutoscalingPolicyBasicAlgorithmOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) CooldownPeriod() *string SetCooldownPeriod(val *string) CooldownPeriodInput() *string // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *DataprocAutoscalingPolicyBasicAlgorithm SetInternalValue(val *DataprocAutoscalingPolicyBasicAlgorithm) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) YarnConfig() DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference YarnConfigInput() *DataprocAutoscalingPolicyBasicAlgorithmYarnConfig // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutYarnConfig(value *DataprocAutoscalingPolicyBasicAlgorithmYarnConfig) ResetCooldownPeriod() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewDataprocAutoscalingPolicyBasicAlgorithmOutputReference ¶
func NewDataprocAutoscalingPolicyBasicAlgorithmOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) DataprocAutoscalingPolicyBasicAlgorithmOutputReference
type DataprocAutoscalingPolicyBasicAlgorithmYarnConfig ¶
type DataprocAutoscalingPolicyBasicAlgorithmYarnConfig struct { // Timeout for YARN graceful decommissioning of Node Managers. // // Specifies the // duration to wait for jobs to complete before forcefully removing workers // (and potentially interrupting jobs). Only applicable to downscaling operations. // // Bounds: [0s, 1d]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#graceful_decommission_timeout DataprocAutoscalingPolicy#graceful_decommission_timeout} GracefulDecommissionTimeout *string `field:"required" json:"gracefulDecommissionTimeout" yaml:"gracefulDecommissionTimeout"` // Fraction of average pending memory in the last cooldown period for which to remove workers. // // A scale-down factor of 1 will result in scaling down so that there // is no available memory remaining after the update (more aggressive scaling). // A scale-down factor of 0 disables removing workers, which can be beneficial for // autoscaling a single job. // // Bounds: [0.0, 1.0]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#scale_down_factor DataprocAutoscalingPolicy#scale_down_factor} ScaleDownFactor *float64 `field:"required" json:"scaleDownFactor" yaml:"scaleDownFactor"` // Fraction of average pending memory in the last cooldown period for which to add workers. // // A scale-up factor of 1.0 will result in scaling up so that there // is no pending memory remaining after the update (more aggressive scaling). // A scale-up factor closer to 0 will result in a smaller magnitude of scaling up // (less aggressive scaling). // // Bounds: [0.0, 1.0]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#scale_up_factor DataprocAutoscalingPolicy#scale_up_factor} ScaleUpFactor *float64 `field:"required" json:"scaleUpFactor" yaml:"scaleUpFactor"` // Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. // // For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must // recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 // means the autoscaler will scale down on any recommended change. // // Bounds: [0.0, 1.0]. Default: 0.0. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#scale_down_min_worker_fraction DataprocAutoscalingPolicy#scale_down_min_worker_fraction} ScaleDownMinWorkerFraction *float64 `field:"optional" json:"scaleDownMinWorkerFraction" yaml:"scaleDownMinWorkerFraction"` // Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. // // For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler // must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of // 0 means the autoscaler will scale up on any recommended change. // // Bounds: [0.0, 1.0]. Default: 0.0. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#scale_up_min_worker_fraction DataprocAutoscalingPolicy#scale_up_min_worker_fraction} ScaleUpMinWorkerFraction *float64 `field:"optional" json:"scaleUpMinWorkerFraction" yaml:"scaleUpMinWorkerFraction"` }
type DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference ¶
type DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string GracefulDecommissionTimeout() *string SetGracefulDecommissionTimeout(val *string) GracefulDecommissionTimeoutInput() *string InternalValue() *DataprocAutoscalingPolicyBasicAlgorithmYarnConfig SetInternalValue(val *DataprocAutoscalingPolicyBasicAlgorithmYarnConfig) ScaleDownFactor() *float64 SetScaleDownFactor(val *float64) ScaleDownFactorInput() *float64 ScaleDownMinWorkerFraction() *float64 SetScaleDownMinWorkerFraction(val *float64) ScaleDownMinWorkerFractionInput() *float64 ScaleUpFactor() *float64 SetScaleUpFactor(val *float64) ScaleUpFactorInput() *float64 ScaleUpMinWorkerFraction() *float64 SetScaleUpMinWorkerFraction(val *float64) ScaleUpMinWorkerFractionInput() *float64 // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetScaleDownMinWorkerFraction() ResetScaleUpMinWorkerFraction() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewDataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference ¶
func NewDataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference
type DataprocAutoscalingPolicyConfig ¶
type DataprocAutoscalingPolicyConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // 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. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#policy_id DataprocAutoscalingPolicy#policy_id} PolicyId *string `field:"required" json:"policyId" yaml:"policyId"` // basic_algorithm block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#basic_algorithm DataprocAutoscalingPolicy#basic_algorithm} BasicAlgorithm *DataprocAutoscalingPolicyBasicAlgorithm `field:"optional" json:"basicAlgorithm" yaml:"basicAlgorithm"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#id DataprocAutoscalingPolicy#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // The location where the autoscaling policy should reside. The default value is 'global'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#location DataprocAutoscalingPolicy#location} Location *string `field:"optional" json:"location" yaml:"location"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#project DataprocAutoscalingPolicy#project}. Project *string `field:"optional" json:"project" yaml:"project"` // secondary_worker_config block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#secondary_worker_config DataprocAutoscalingPolicy#secondary_worker_config} SecondaryWorkerConfig *DataprocAutoscalingPolicySecondaryWorkerConfig `field:"optional" json:"secondaryWorkerConfig" yaml:"secondaryWorkerConfig"` // timeouts block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#timeouts DataprocAutoscalingPolicy#timeouts} Timeouts *DataprocAutoscalingPolicyTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"` // worker_config block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#worker_config DataprocAutoscalingPolicy#worker_config} WorkerConfig *DataprocAutoscalingPolicyWorkerConfig `field:"optional" json:"workerConfig" yaml:"workerConfig"` }
type DataprocAutoscalingPolicySecondaryWorkerConfig ¶
type DataprocAutoscalingPolicySecondaryWorkerConfig struct { // Maximum number of instances for this group. // // Note that by default, clusters will not use // secondary workers. Required for secondary workers if the minimum secondary instances is set. // Bounds: [minInstances, ). Defaults to 0. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#max_instances DataprocAutoscalingPolicy#max_instances} MaxInstances *float64 `field:"optional" json:"maxInstances" yaml:"maxInstances"` // Minimum number of instances for this group. Bounds: [0, maxInstances]. Defaults to 0. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#min_instances DataprocAutoscalingPolicy#min_instances} MinInstances *float64 `field:"optional" json:"minInstances" yaml:"minInstances"` // Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. // // For example, if primary workers have weight 2, // and secondary workers have weight 1, the cluster will have approximately 2 primary workers // for each secondary worker. // // The cluster may not reach the specified balance if constrained by min/max bounds or other // autoscaling settings. For example, if maxInstances for secondary workers is 0, then only // primary workers will be added. The cluster can also be out of balance when created. // // If weight is not set on any instance group, the cluster will default to equal weight for // all groups: the cluster will attempt to maintain an equal number of workers in each group // within the configured size bounds for each group. If weight is set for one group only, // the cluster will default to zero weight on the unset group. For example if weight is set // only on primary workers, the cluster will use primary workers only and no secondary workers. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#weight DataprocAutoscalingPolicy#weight} Weight *float64 `field:"optional" json:"weight" yaml:"weight"` }
type DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference ¶
type DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *DataprocAutoscalingPolicySecondaryWorkerConfig SetInternalValue(val *DataprocAutoscalingPolicySecondaryWorkerConfig) MaxInstances() *float64 SetMaxInstances(val *float64) MaxInstancesInput() *float64 MinInstances() *float64 SetMinInstances(val *float64) MinInstancesInput() *float64 // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Weight() *float64 SetWeight(val *float64) WeightInput() *float64 // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetMaxInstances() ResetMinInstances() ResetWeight() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewDataprocAutoscalingPolicySecondaryWorkerConfigOutputReference ¶
func NewDataprocAutoscalingPolicySecondaryWorkerConfigOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference
type DataprocAutoscalingPolicyTimeouts ¶
type DataprocAutoscalingPolicyTimeouts struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#create DataprocAutoscalingPolicy#create}. Create *string `field:"optional" json:"create" yaml:"create"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#delete DataprocAutoscalingPolicy#delete}. Delete *string `field:"optional" json:"delete" yaml:"delete"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#update DataprocAutoscalingPolicy#update}. Update *string `field:"optional" json:"update" yaml:"update"` }
type DataprocAutoscalingPolicyTimeoutsOutputReference ¶
type DataprocAutoscalingPolicyTimeoutsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) Create() *string SetCreate(val *string) CreateInput() *string // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Delete() *string SetDelete(val *string) DeleteInput() *string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Update() *string SetUpdate(val *string) UpdateInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetCreate() ResetDelete() ResetUpdate() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewDataprocAutoscalingPolicyTimeoutsOutputReference ¶
func NewDataprocAutoscalingPolicyTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) DataprocAutoscalingPolicyTimeoutsOutputReference
type DataprocAutoscalingPolicyWorkerConfig ¶
type DataprocAutoscalingPolicyWorkerConfig struct { // Maximum number of instances for this group. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#max_instances DataprocAutoscalingPolicy#max_instances} MaxInstances *float64 `field:"required" json:"maxInstances" yaml:"maxInstances"` // Minimum number of instances for this group. Bounds: [2, maxInstances]. Defaults to 2. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#min_instances DataprocAutoscalingPolicy#min_instances} MinInstances *float64 `field:"optional" json:"minInstances" yaml:"minInstances"` // Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. // // For example, if primary workers have weight 2, // and secondary workers have weight 1, the cluster will have approximately 2 primary workers // for each secondary worker. // // The cluster may not reach the specified balance if constrained by min/max bounds or other // autoscaling settings. For example, if maxInstances for secondary workers is 0, then only // primary workers will be added. The cluster can also be out of balance when created. // // If weight is not set on any instance group, the cluster will default to equal weight for // all groups: the cluster will attempt to maintain an equal number of workers in each group // within the configured size bounds for each group. If weight is set for one group only, // the cluster will default to zero weight on the unset group. For example if weight is set // only on primary workers, the cluster will use primary workers only and no secondary workers. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/4.79.0/docs/resources/dataproc_autoscaling_policy#weight DataprocAutoscalingPolicy#weight} Weight *float64 `field:"optional" json:"weight" yaml:"weight"` }
type DataprocAutoscalingPolicyWorkerConfigOutputReference ¶
type DataprocAutoscalingPolicyWorkerConfigOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *DataprocAutoscalingPolicyWorkerConfig SetInternalValue(val *DataprocAutoscalingPolicyWorkerConfig) MaxInstances() *float64 SetMaxInstances(val *float64) MaxInstancesInput() *float64 MinInstances() *float64 SetMinInstances(val *float64) MinInstancesInput() *float64 // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Weight() *float64 SetWeight(val *float64) WeightInput() *float64 // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetMinInstances() ResetWeight() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewDataprocAutoscalingPolicyWorkerConfigOutputReference ¶
func NewDataprocAutoscalingPolicyWorkerConfigOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) DataprocAutoscalingPolicyWorkerConfigOutputReference
Source Files ¶
- DataprocAutoscalingPolicy.go
- DataprocAutoscalingPolicyBasicAlgorithm.go
- DataprocAutoscalingPolicyBasicAlgorithmOutputReference.go
- DataprocAutoscalingPolicyBasicAlgorithmOutputReference__checks.go
- DataprocAutoscalingPolicyBasicAlgorithmYarnConfig.go
- DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference.go
- DataprocAutoscalingPolicyBasicAlgorithmYarnConfigOutputReference__checks.go
- DataprocAutoscalingPolicyConfig.go
- DataprocAutoscalingPolicySecondaryWorkerConfig.go
- DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference.go
- DataprocAutoscalingPolicySecondaryWorkerConfigOutputReference__checks.go
- DataprocAutoscalingPolicyTimeouts.go
- DataprocAutoscalingPolicyTimeoutsOutputReference.go
- DataprocAutoscalingPolicyTimeoutsOutputReference__checks.go
- DataprocAutoscalingPolicyWorkerConfig.go
- DataprocAutoscalingPolicyWorkerConfigOutputReference.go
- DataprocAutoscalingPolicyWorkerConfigOutputReference__checks.go
- DataprocAutoscalingPolicy__checks.go
- main.go