Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler google_compute_region_autoscaler}.
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscaler(
scope: Construct,
id: str,
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection] = None,
count: typing.Union[typing.Union[int, float], TerraformCount] = None,
depends_on: typing.List[ITerraformDependable] = None,
for_each: ITerraformIterator = None,
lifecycle: TerraformResourceLifecycle = None,
provider: TerraformProvider = None,
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]] = None,
autoscaling_policy: ComputeRegionAutoscalerAutoscalingPolicy,
name: str,
target: str,
description: str = None,
id: str = None,
project: str = None,
region: str = None,
timeouts: ComputeRegionAutoscalerTimeouts = None
)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
The scope in which to define this construct. |
id |
str |
The scoped construct ID. |
connection |
typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection] |
No description. |
count |
typing.Union[typing.Union[int, float], cdktf.TerraformCount] |
No description. |
depends_on |
typing.List[cdktf.ITerraformDependable] |
No description. |
for_each |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]] |
No description. |
autoscaling_policy |
ComputeRegionAutoscalerAutoscalingPolicy |
autoscaling_policy block. |
name |
str |
Name of the resource. |
target |
str |
URL of the managed instance group that this autoscaler will scale. |
description |
str |
An optional description of this resource. |
id |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#id ComputeRegionAutoscaler#id}. |
project |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#project ComputeRegionAutoscaler#project}. |
region |
str |
URL of the region where the instance group resides. |
timeouts |
ComputeRegionAutoscalerTimeouts |
timeouts block. |
- Type: constructs.Construct
The scope in which to define this construct.
- Type: str
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
- Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]
- Type: typing.List[cdktf.ITerraformDependable]
- Type: cdktf.ITerraformIterator
- Type: cdktf.TerraformResourceLifecycle
- Type: cdktf.TerraformProvider
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
autoscaling_policy block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#autoscaling_policy ComputeRegionAutoscaler#autoscaling_policy}
- Type: str
Name of the resource.
The name must be 1-63 characters long and match the regular expression 'a-z?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#name ComputeRegionAutoscaler#name}
- Type: str
URL of the managed instance group that this autoscaler will scale.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}
- Type: str
An optional description of this resource.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#description ComputeRegionAutoscaler#description}
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#id ComputeRegionAutoscaler#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.
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#project ComputeRegionAutoscaler#project}.
- Type: str
URL of the region where the instance group resides.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#region ComputeRegionAutoscaler#region}
timeouts block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#timeouts ComputeRegionAutoscaler#timeouts}
Name | Description |
---|---|
to_string |
Returns a string representation of this construct. |
add_override |
No description. |
override_logical_id |
Overrides the auto-generated logical ID with a specific ID. |
reset_override_logical_id |
Resets a previously passed logical Id to use the auto-generated logical id again. |
to_hcl_terraform |
No description. |
to_metadata |
No description. |
to_terraform |
Adds this resource to the terraform JSON output. |
add_move_target |
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
has_resource_move |
No description. |
import_from |
No description. |
interpolation_for_attribute |
No description. |
move_from_id |
Move the resource corresponding to "id" to this resource. |
move_to |
Moves this resource to the target resource given by moveTarget. |
move_to_id |
Moves this resource to the resource corresponding to "id". |
put_autoscaling_policy |
No description. |
put_timeouts |
No description. |
reset_description |
No description. |
reset_id |
No description. |
reset_project |
No description. |
reset_region |
No description. |
reset_timeouts |
No description. |
def to_string() -> str
Returns a string representation of this construct.
def add_override(
path: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
def override_logical_id(
new_logical_id: str
) -> None
Overrides the auto-generated logical ID with a specific ID.
- Type: str
The new logical ID to use for this stack element.
def reset_override_logical_id() -> None
Resets a previously passed logical Id to use the auto-generated logical id again.
def to_hcl_terraform() -> typing.Any
def to_metadata() -> typing.Any
def to_terraform() -> typing.Any
Adds this resource to the terraform JSON output.
def add_move_target(
move_target: str
) -> None
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
- Type: str
The string move target that will correspond to this resource.
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def has_resource_move() -> typing.Union[TerraformResourceMoveByTarget, TerraformResourceMoveById]
def import_from(
id: str,
provider: TerraformProvider = None
) -> None
- Type: str
- Type: cdktf.TerraformProvider
def interpolation_for_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def move_from_id(
id: str
) -> None
Move the resource corresponding to "id" to this resource.
Note that the resource being moved from must be marked as moved using it's instance function.
- Type: str
Full id of resource being moved from, e.g. "aws_s3_bucket.example".
def move_to(
move_target: str,
index: typing.Union[str, typing.Union[int, float]] = None
) -> None
Moves this resource to the target resource given by moveTarget.
- Type: str
The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.
- Type: typing.Union[str, typing.Union[int, float]]
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.
def move_to_id(
id: str
) -> None
Moves this resource to the resource corresponding to "id".
- Type: str
Full id of resource to move to, e.g. "aws_s3_bucket.example".
def put_autoscaling_policy(
max_replicas: typing.Union[int, float],
min_replicas: typing.Union[int, float],
cooldown_period: typing.Union[int, float] = None,
cpu_utilization: ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization = None,
load_balancing_utilization: ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization = None,
metric: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]] = None,
mode: str = None,
scale_in_control: ComputeRegionAutoscalerAutoscalingPolicyScaleInControl = None,
scaling_schedules: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]] = None
) -> None
- Type: typing.Union[int, float]
The maximum number of instances that the autoscaler can scale up to.
This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#max_replicas ComputeRegionAutoscaler#max_replicas}
- Type: typing.Union[int, float]
The minimum number of replicas that the autoscaler can scale down to.
This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#min_replicas ComputeRegionAutoscaler#min_replicas}
- Type: typing.Union[int, float]
The number of seconds that the autoscaler should wait before it starts collecting information from a new instance.
This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.
Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#cooldown_period ComputeRegionAutoscaler#cooldown_period}
cpu_utilization block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#cpu_utilization ComputeRegionAutoscaler#cpu_utilization}
load_balancing_utilization block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#load_balancing_utilization ComputeRegionAutoscaler#load_balancing_utilization}
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
metric block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#metric ComputeRegionAutoscaler#metric}
- Type: str
Defines operating mode for this policy.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#mode ComputeRegionAutoscaler#mode}
scale_in_control block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#scale_in_control ComputeRegionAutoscaler#scale_in_control}
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
scaling_schedules block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#scaling_schedules ComputeRegionAutoscaler#scaling_schedules}
def put_timeouts(
create: str = None,
delete: str = None,
update: str = None
) -> None
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#create ComputeRegionAutoscaler#create}.
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#delete ComputeRegionAutoscaler#delete}.
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#update ComputeRegionAutoscaler#update}.
def reset_description() -> None
def reset_id() -> None
def reset_project() -> None
def reset_region() -> None
def reset_timeouts() -> None
Name | Description |
---|---|
is_construct |
Checks if x is a construct. |
is_terraform_element |
No description. |
is_terraform_resource |
No description. |
generate_config_for_import |
Generates CDKTF code for importing a ComputeRegionAutoscaler resource upon running "cdktf plan ". |
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscaler.is_construct(
x: typing.Any
)
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.
- Type: typing.Any
Any object.
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscaler.is_terraform_element(
x: typing.Any
)
- Type: typing.Any
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscaler.is_terraform_resource(
x: typing.Any
)
- Type: typing.Any
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscaler.generate_config_for_import(
scope: Construct,
import_to_id: str,
import_from_id: str,
provider: TerraformProvider = None
)
Generates CDKTF code for importing a ComputeRegionAutoscaler resource upon running "cdktf plan ".
- Type: constructs.Construct
The scope in which to define this construct.
- Type: str
The construct id used in the generated config for the ComputeRegionAutoscaler to import.
- Type: str
The id of the existing ComputeRegionAutoscaler that should be imported.
Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#import import section} in the documentation of this resource for the id to use
- Type: cdktf.TerraformProvider
? Optional instance of the provider where the ComputeRegionAutoscaler to import is found.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cdktf_stack |
cdktf.TerraformStack |
No description. |
fqn |
str |
No description. |
friendly_unique_id |
str |
No description. |
terraform_meta_arguments |
typing.Mapping[typing.Any] |
No description. |
terraform_resource_type |
str |
No description. |
terraform_generator_metadata |
cdktf.TerraformProviderGeneratorMetadata |
No description. |
connection |
typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection] |
No description. |
count |
typing.Union[typing.Union[int, float], cdktf.TerraformCount] |
No description. |
depends_on |
typing.List[str] |
No description. |
for_each |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]] |
No description. |
autoscaling_policy |
ComputeRegionAutoscalerAutoscalingPolicyOutputReference |
No description. |
creation_timestamp |
str |
No description. |
self_link |
str |
No description. |
timeouts |
ComputeRegionAutoscalerTimeoutsOutputReference |
No description. |
autoscaling_policy_input |
ComputeRegionAutoscalerAutoscalingPolicy |
No description. |
description_input |
str |
No description. |
id_input |
str |
No description. |
name_input |
str |
No description. |
project_input |
str |
No description. |
region_input |
str |
No description. |
target_input |
str |
No description. |
timeouts_input |
typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerTimeouts] |
No description. |
description |
str |
No description. |
id |
str |
No description. |
name |
str |
No description. |
project |
str |
No description. |
region |
str |
No description. |
target |
str |
No description. |
node: Node
- Type: constructs.Node
The tree node.
cdktf_stack: TerraformStack
- Type: cdktf.TerraformStack
fqn: str
- Type: str
friendly_unique_id: str
- Type: str
terraform_meta_arguments: typing.Mapping[typing.Any]
- Type: typing.Mapping[typing.Any]
terraform_resource_type: str
- Type: str
terraform_generator_metadata: TerraformProviderGeneratorMetadata
- Type: cdktf.TerraformProviderGeneratorMetadata
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
count: typing.Union[typing.Union[int, float], TerraformCount]
- Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]
depends_on: typing.List[str]
- Type: typing.List[str]
for_each: ITerraformIterator
- Type: cdktf.ITerraformIterator
lifecycle: TerraformResourceLifecycle
- Type: cdktf.TerraformResourceLifecycle
provider: TerraformProvider
- Type: cdktf.TerraformProvider
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
autoscaling_policy: ComputeRegionAutoscalerAutoscalingPolicyOutputReference
creation_timestamp: str
- Type: str
self_link: str
- Type: str
timeouts: ComputeRegionAutoscalerTimeoutsOutputReference
autoscaling_policy_input: ComputeRegionAutoscalerAutoscalingPolicy
description_input: str
- Type: str
id_input: str
- Type: str
name_input: str
- Type: str
project_input: str
- Type: str
region_input: str
- Type: str
target_input: str
- Type: str
timeouts_input: typing.Union[IResolvable, ComputeRegionAutoscalerTimeouts]
- Type: typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerTimeouts]
description: str
- Type: str
id: str
- Type: str
name: str
- Type: str
project: str
- Type: str
region: str
- Type: str
target: str
- Type: str
Name | Type | Description |
---|---|---|
tfResourceType |
str |
No description. |
tfResourceType: str
- Type: str
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicy(
max_replicas: typing.Union[int, float],
min_replicas: typing.Union[int, float],
cooldown_period: typing.Union[int, float] = None,
cpu_utilization: ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization = None,
load_balancing_utilization: ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization = None,
metric: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]] = None,
mode: str = None,
scale_in_control: ComputeRegionAutoscalerAutoscalingPolicyScaleInControl = None,
scaling_schedules: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]] = None
)
Name | Type | Description |
---|---|---|
max_replicas |
typing.Union[int, float] |
The maximum number of instances that the autoscaler can scale up to. |
min_replicas |
typing.Union[int, float] |
The minimum number of replicas that the autoscaler can scale down to. |
cooldown_period |
typing.Union[int, float] |
The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. |
cpu_utilization |
ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization |
cpu_utilization block. |
load_balancing_utilization |
ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization |
load_balancing_utilization block. |
metric |
typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]] |
metric block. |
mode |
str |
Defines operating mode for this policy. |
scale_in_control |
ComputeRegionAutoscalerAutoscalingPolicyScaleInControl |
scale_in_control block. |
scaling_schedules |
typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]] |
scaling_schedules block. |
max_replicas: typing.Union[int, float]
- Type: typing.Union[int, float]
The maximum number of instances that the autoscaler can scale up to.
This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#max_replicas ComputeRegionAutoscaler#max_replicas}
min_replicas: typing.Union[int, float]
- Type: typing.Union[int, float]
The minimum number of replicas that the autoscaler can scale down to.
This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#min_replicas ComputeRegionAutoscaler#min_replicas}
cooldown_period: typing.Union[int, float]
- Type: typing.Union[int, float]
The number of seconds that the autoscaler should wait before it starts collecting information from a new instance.
This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.
Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#cooldown_period ComputeRegionAutoscaler#cooldown_period}
cpu_utilization: ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization
cpu_utilization block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#cpu_utilization ComputeRegionAutoscaler#cpu_utilization}
load_balancing_utilization: ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization
load_balancing_utilization block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#load_balancing_utilization ComputeRegionAutoscaler#load_balancing_utilization}
metric: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
metric block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#metric ComputeRegionAutoscaler#metric}
mode: str
- Type: str
Defines operating mode for this policy.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#mode ComputeRegionAutoscaler#mode}
scale_in_control: ComputeRegionAutoscalerAutoscalingPolicyScaleInControl
scale_in_control block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#scale_in_control ComputeRegionAutoscaler#scale_in_control}
scaling_schedules: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
scaling_schedules block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#scaling_schedules ComputeRegionAutoscaler#scaling_schedules}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization(
target: typing.Union[int, float],
predictive_method: str = None
)
Name | Type | Description |
---|---|---|
target |
typing.Union[int, float] |
The target CPU utilization that the autoscaler should maintain. |
predictive_method |
str |
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are:. |
target: typing.Union[int, float]
- Type: typing.Union[int, float]
The target CPU utilization that the autoscaler should maintain.
Must be a float value in the range (0, 1]. If not specified, the default is 0.6.
If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}
predictive_method: str
- Type: str
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are:.
- NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics.
- OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#predictive_method ComputeRegionAutoscaler#predictive_method}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization(
target: typing.Union[int, float]
)
Name | Type | Description |
---|---|---|
target |
typing.Union[int, float] |
Fraction of backend capacity utilization (set in HTTP(s) load balancing configuration) that autoscaler should maintain. |
target: typing.Union[int, float]
- Type: typing.Union[int, float]
Fraction of backend capacity utilization (set in HTTP(s) load balancing configuration) that autoscaler should maintain.
Must be a positive float value. If not defined, the default is 0.8.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyMetric(
name: str,
filter: str = None,
single_instance_assignment: typing.Union[int, float] = None,
target: typing.Union[int, float] = None,
type: str = None
)
Name | Type | Description |
---|---|---|
name |
str |
The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values. |
filter |
str |
A filter string to be used as the filter string for a Stackdriver Monitoring TimeSeries.list API call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to determine whether the metric is exporting per-instance or per-group data. |
single_instance_assignment |
typing.Union[int, float] |
If scaling is based on a per-group metric value that represents the total amount of work to be done or resource usage, set this value to an amount assigned for a single instance of the scaled group. |
target |
typing.Union[int, float] |
The target value of the metric that autoscaler should maintain. |
type |
str |
Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Possible values: ["GAUGE", "DELTA_PER_SECOND", "DELTA_PER_MINUTE"]. |
name: str
- Type: str
The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.
The metric must have a value type of INT64 or DOUBLE.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#name ComputeRegionAutoscaler#name}
filter: str
- Type: str
A filter string to be used as the filter string for a Stackdriver Monitoring TimeSeries.list API call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to determine whether the metric is exporting per-instance or per-group data.
You can only use the AND operator for joining selectors. You can only use direct equality comparison operator (=) without any functions for each selector. You can specify the metric in both the filter string and in the metric field. However, if specified in both places, the metric must be identical.
The monitored resource type determines what kind of values are expected for the metric. If it is a gce_instance, the autoscaler expects the metric to include a separate TimeSeries for each instance in a group. In such a case, you cannot filter on resource labels.
If the resource type is any other value, the autoscaler expects this metric to contain values that apply to the entire autoscaled instance group and resource label filtering can be performed to point autoscaler at the correct TimeSeries to scale upon. This is called a per-group metric for the purpose of autoscaling.
If not specified, the type defaults to gce_instance.
You should provide a filter that is selective enough to pick just one TimeSeries for the autoscaled group or for each of the instances (if you are using gce_instance resource type). If multiple TimeSeries are returned upon the query execution, the autoscaler will sum their respective values to obtain its scaling value.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#filter ComputeRegionAutoscaler#filter}
single_instance_assignment: typing.Union[int, float]
- Type: typing.Union[int, float]
If scaling is based on a per-group metric value that represents the total amount of work to be done or resource usage, set this value to an amount assigned for a single instance of the scaled group.
The autoscaler will keep the number of instances proportional to the value of this metric, the metric itself should not change value due to group resizing.
For example, a good metric to use with the target is 'pubsub.googleapis.com/subscription/num_undelivered_messages' or a custom metric exporting the total number of requests coming to your instances.
A bad example would be a metric exporting an average or median latency, since this value can't include a chunk assignable to a single instance, it could be better used with utilization_target instead.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#single_instance_assignment ComputeRegionAutoscaler#single_instance_assignment}
target: typing.Union[int, float]
- Type: typing.Union[int, float]
The target value of the metric that autoscaler should maintain.
This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.
For example, a good metric to use as a utilizationTarget is www.googleapis.com/compute/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}
type: str
- Type: str
Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Possible values: ["GAUGE", "DELTA_PER_SECOND", "DELTA_PER_MINUTE"].
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#type ComputeRegionAutoscaler#type}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyScaleInControl(
max_scaled_in_replicas: ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas = None,
time_window_sec: typing.Union[int, float] = None
)
Name | Type | Description |
---|---|---|
max_scaled_in_replicas |
ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas |
max_scaled_in_replicas block. |
time_window_sec |
typing.Union[int, float] |
How long back autoscaling should look when computing recommendations to include directives regarding slower scale down, as described above. |
max_scaled_in_replicas: ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas
max_scaled_in_replicas block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#max_scaled_in_replicas ComputeRegionAutoscaler#max_scaled_in_replicas}
time_window_sec: typing.Union[int, float]
- Type: typing.Union[int, float]
How long back autoscaling should look when computing recommendations to include directives regarding slower scale down, as described above.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#time_window_sec ComputeRegionAutoscaler#time_window_sec}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas(
fixed: typing.Union[int, float] = None,
percent: typing.Union[int, float] = None
)
Name | Type | Description |
---|---|---|
fixed |
typing.Union[int, float] |
Specifies a fixed number of VM instances. This must be a positive integer. |
percent |
typing.Union[int, float] |
Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%. |
fixed: typing.Union[int, float]
- Type: typing.Union[int, float]
Specifies a fixed number of VM instances. This must be a positive integer.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#fixed ComputeRegionAutoscaler#fixed}
percent: typing.Union[int, float]
- Type: typing.Union[int, float]
Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#percent ComputeRegionAutoscaler#percent}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules(
duration_sec: typing.Union[int, float],
min_required_replicas: typing.Union[int, float],
name: str,
schedule: str,
description: str = None,
disabled: typing.Union[bool, IResolvable] = None,
time_zone: str = None
)
Name | Type | Description |
---|---|---|
duration_sec |
typing.Union[int, float] |
The duration of time intervals (in seconds) for which this scaling schedule will be running. |
min_required_replicas |
typing.Union[int, float] |
Minimum number of VM instances that autoscaler will recommend in time intervals starting according to schedule. |
name |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#name ComputeRegionAutoscaler#name}. |
schedule |
str |
The start timestamps of time intervals when this scaling schedule should provide a scaling signal. |
description |
str |
A description of a scaling schedule. |
disabled |
typing.Union[bool, cdktf.IResolvable] |
A boolean value that specifies if a scaling schedule can influence autoscaler recommendations. |
time_zone |
str |
The time zone to be used when interpreting the schedule. |
duration_sec: typing.Union[int, float]
- Type: typing.Union[int, float]
The duration of time intervals (in seconds) for which this scaling schedule will be running.
The minimum allowed value is 300.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#duration_sec ComputeRegionAutoscaler#duration_sec}
min_required_replicas: typing.Union[int, float]
- Type: typing.Union[int, float]
Minimum number of VM instances that autoscaler will recommend in time intervals starting according to schedule.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#min_required_replicas ComputeRegionAutoscaler#min_required_replicas}
name: str
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#name ComputeRegionAutoscaler#name}.
schedule: str
- Type: str
The start timestamps of time intervals when this scaling schedule should provide a scaling signal.
This field uses the extended cron format (with an optional year field).
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#schedule ComputeRegionAutoscaler#schedule}
description: str
- Type: str
A description of a scaling schedule.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#description ComputeRegionAutoscaler#description}
disabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, cdktf.IResolvable]
A boolean value that specifies if a scaling schedule can influence autoscaler recommendations.
If set to true, then a scaling schedule has no effect.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#disabled ComputeRegionAutoscaler#disabled}
time_zone: str
- Type: str
The time zone to be used when interpreting the schedule.
The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#time_zone ComputeRegionAutoscaler#time_zone}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerConfig(
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection] = None,
count: typing.Union[typing.Union[int, float], TerraformCount] = None,
depends_on: typing.List[ITerraformDependable] = None,
for_each: ITerraformIterator = None,
lifecycle: TerraformResourceLifecycle = None,
provider: TerraformProvider = None,
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]] = None,
autoscaling_policy: ComputeRegionAutoscalerAutoscalingPolicy,
name: str,
target: str,
description: str = None,
id: str = None,
project: str = None,
region: str = None,
timeouts: ComputeRegionAutoscalerTimeouts = None
)
Name | Type | Description |
---|---|---|
connection |
typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection] |
No description. |
count |
typing.Union[typing.Union[int, float], cdktf.TerraformCount] |
No description. |
depends_on |
typing.List[cdktf.ITerraformDependable] |
No description. |
for_each |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]] |
No description. |
autoscaling_policy |
ComputeRegionAutoscalerAutoscalingPolicy |
autoscaling_policy block. |
name |
str |
Name of the resource. |
target |
str |
URL of the managed instance group that this autoscaler will scale. |
description |
str |
An optional description of this resource. |
id |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#id ComputeRegionAutoscaler#id}. |
project |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#project ComputeRegionAutoscaler#project}. |
region |
str |
URL of the region where the instance group resides. |
timeouts |
ComputeRegionAutoscalerTimeouts |
timeouts block. |
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
count: typing.Union[typing.Union[int, float], TerraformCount]
- Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]
depends_on: typing.List[ITerraformDependable]
- Type: typing.List[cdktf.ITerraformDependable]
for_each: ITerraformIterator
- Type: cdktf.ITerraformIterator
lifecycle: TerraformResourceLifecycle
- Type: cdktf.TerraformResourceLifecycle
provider: TerraformProvider
- Type: cdktf.TerraformProvider
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
autoscaling_policy: ComputeRegionAutoscalerAutoscalingPolicy
autoscaling_policy block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#autoscaling_policy ComputeRegionAutoscaler#autoscaling_policy}
name: str
- Type: str
Name of the resource.
The name must be 1-63 characters long and match the regular expression 'a-z?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#name ComputeRegionAutoscaler#name}
target: str
- Type: str
URL of the managed instance group that this autoscaler will scale.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}
description: str
- Type: str
An optional description of this resource.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#description ComputeRegionAutoscaler#description}
id: str
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#id ComputeRegionAutoscaler#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.
project: str
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#project ComputeRegionAutoscaler#project}.
region: str
- Type: str
URL of the region where the instance group resides.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#region ComputeRegionAutoscaler#region}
timeouts: ComputeRegionAutoscalerTimeouts
timeouts block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#timeouts ComputeRegionAutoscaler#timeouts}
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerTimeouts(
create: str = None,
delete: str = None,
update: str = None
)
Name | Type | Description |
---|---|---|
create |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#create ComputeRegionAutoscaler#create}. |
delete |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#delete ComputeRegionAutoscaler#delete}. |
update |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#update ComputeRegionAutoscaler#update}. |
create: str
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#create ComputeRegionAutoscaler#create}.
delete: str
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#delete ComputeRegionAutoscaler#delete}.
update: str
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#update ComputeRegionAutoscaler#update}.
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyCpuUtilizationOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_predictive_method |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_predictive_method() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
predictive_method_input |
str |
No description. |
target_input |
typing.Union[int, float] |
No description. |
predictive_method |
str |
No description. |
target |
typing.Union[int, float] |
No description. |
internal_value |
ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
predictive_method_input: str
- Type: str
target_input: typing.Union[int, float]
- Type: typing.Union[int, float]
predictive_method: str
- Type: str
target: typing.Union[int, float]
- Type: typing.Union[int, float]
internal_value: ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilizationOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
target_input |
typing.Union[int, float] |
No description. |
target |
typing.Union[int, float] |
No description. |
internal_value |
ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
target_input: typing.Union[int, float]
- Type: typing.Union[int, float]
target: typing.Union[int, float]
- Type: typing.Union[int, float]
internal_value: ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyMetricList(
terraform_resource: IInterpolatingParent,
terraform_attribute: str,
wraps_set: bool
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
wraps_set |
bool |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
all_with_map_key |
Creating an iterator for this complex list. |
compute_fqn |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
get |
No description. |
def all_with_map_key(
map_key_attribute_name: str
) -> DynamicListTerraformIterator
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
- Type: str
def compute_fqn() -> str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def get(
index: typing.Union[int, float]
) -> ComputeRegionAutoscalerAutoscalingPolicyMetricOutputReference
- Type: typing.Union[int, float]
the index of the item to return.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
internal_value |
typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]] |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
internal_value: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyMetricOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str,
complex_object_index: typing.Union[int, float],
complex_object_is_from_set: bool
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
complex_object_index |
typing.Union[int, float] |
the index of this item in the list. |
complex_object_is_from_set |
bool |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
- Type: typing.Union[int, float]
the index of this item in the list.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_filter |
No description. |
reset_single_instance_assignment |
No description. |
reset_target |
No description. |
reset_type |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_filter() -> None
def reset_single_instance_assignment() -> None
def reset_target() -> None
def reset_type() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
filter_input |
str |
No description. |
name_input |
str |
No description. |
single_instance_assignment_input |
typing.Union[int, float] |
No description. |
target_input |
typing.Union[int, float] |
No description. |
type_input |
str |
No description. |
filter |
str |
No description. |
name |
str |
No description. |
single_instance_assignment |
typing.Union[int, float] |
No description. |
target |
typing.Union[int, float] |
No description. |
type |
str |
No description. |
internal_value |
typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerAutoscalingPolicyMetric] |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
filter_input: str
- Type: str
name_input: str
- Type: str
single_instance_assignment_input: typing.Union[int, float]
- Type: typing.Union[int, float]
target_input: typing.Union[int, float]
- Type: typing.Union[int, float]
type_input: str
- Type: str
filter: str
- Type: str
name: str
- Type: str
single_instance_assignment: typing.Union[int, float]
- Type: typing.Union[int, float]
target: typing.Union[int, float]
- Type: typing.Union[int, float]
type: str
- Type: str
internal_value: typing.Union[IResolvable, ComputeRegionAutoscalerAutoscalingPolicyMetric]
- Type: typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerAutoscalingPolicyMetric]
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
put_cpu_utilization |
No description. |
put_load_balancing_utilization |
No description. |
put_metric |
No description. |
put_scale_in_control |
No description. |
put_scaling_schedules |
No description. |
reset_cooldown_period |
No description. |
reset_cpu_utilization |
No description. |
reset_load_balancing_utilization |
No description. |
reset_metric |
No description. |
reset_mode |
No description. |
reset_scale_in_control |
No description. |
reset_scaling_schedules |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def put_cpu_utilization(
target: typing.Union[int, float],
predictive_method: str = None
) -> None
- Type: typing.Union[int, float]
The target CPU utilization that the autoscaler should maintain.
Must be a float value in the range (0, 1]. If not specified, the default is 0.6.
If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}
- Type: str
Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are:.
- NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics.
- OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#predictive_method ComputeRegionAutoscaler#predictive_method}
def put_load_balancing_utilization(
target: typing.Union[int, float]
) -> None
- Type: typing.Union[int, float]
Fraction of backend capacity utilization (set in HTTP(s) load balancing configuration) that autoscaler should maintain.
Must be a positive float value. If not defined, the default is 0.8.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}
def put_metric(
value: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
) -> None
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
def put_scale_in_control(
max_scaled_in_replicas: ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas = None,
time_window_sec: typing.Union[int, float] = None
) -> None
max_scaled_in_replicas block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#max_scaled_in_replicas ComputeRegionAutoscaler#max_scaled_in_replicas}
- Type: typing.Union[int, float]
How long back autoscaling should look when computing recommendations to include directives regarding slower scale down, as described above.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#time_window_sec ComputeRegionAutoscaler#time_window_sec}
def put_scaling_schedules(
value: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
) -> None
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
def reset_cooldown_period() -> None
def reset_cpu_utilization() -> None
def reset_load_balancing_utilization() -> None
def reset_metric() -> None
def reset_mode() -> None
def reset_scale_in_control() -> None
def reset_scaling_schedules() -> None
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
cpu_utilization: ComputeRegionAutoscalerAutoscalingPolicyCpuUtilizationOutputReference
load_balancing_utilization: ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilizationOutputReference
metric: ComputeRegionAutoscalerAutoscalingPolicyMetricList
scale_in_control: ComputeRegionAutoscalerAutoscalingPolicyScaleInControlOutputReference
scaling_schedules: ComputeRegionAutoscalerAutoscalingPolicyScalingSchedulesList
cooldown_period_input: typing.Union[int, float]
- Type: typing.Union[int, float]
cpu_utilization_input: ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization
load_balancing_utilization_input: ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization
max_replicas_input: typing.Union[int, float]
- Type: typing.Union[int, float]
metric_input: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyMetric]]
min_replicas_input: typing.Union[int, float]
- Type: typing.Union[int, float]
mode_input: str
- Type: str
scale_in_control_input: ComputeRegionAutoscalerAutoscalingPolicyScaleInControl
scaling_schedules_input: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
cooldown_period: typing.Union[int, float]
- Type: typing.Union[int, float]
max_replicas: typing.Union[int, float]
- Type: typing.Union[int, float]
min_replicas: typing.Union[int, float]
- Type: typing.Union[int, float]
mode: str
- Type: str
internal_value: ComputeRegionAutoscalerAutoscalingPolicy
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_fixed |
No description. |
reset_percent |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_fixed() -> None
def reset_percent() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
fixed_input |
typing.Union[int, float] |
No description. |
percent_input |
typing.Union[int, float] |
No description. |
fixed |
typing.Union[int, float] |
No description. |
percent |
typing.Union[int, float] |
No description. |
internal_value |
ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
fixed_input: typing.Union[int, float]
- Type: typing.Union[int, float]
percent_input: typing.Union[int, float]
- Type: typing.Union[int, float]
fixed: typing.Union[int, float]
- Type: typing.Union[int, float]
percent: typing.Union[int, float]
- Type: typing.Union[int, float]
internal_value: ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyScaleInControlOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
put_max_scaled_in_replicas |
No description. |
reset_max_scaled_in_replicas |
No description. |
reset_time_window_sec |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def put_max_scaled_in_replicas(
fixed: typing.Union[int, float] = None,
percent: typing.Union[int, float] = None
) -> None
- Type: typing.Union[int, float]
Specifies a fixed number of VM instances. This must be a positive integer.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#fixed ComputeRegionAutoscaler#fixed}
- Type: typing.Union[int, float]
Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.34.1/docs/resources/compute_region_autoscaler#percent ComputeRegionAutoscaler#percent}
def reset_max_scaled_in_replicas() -> None
def reset_time_window_sec() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
max_scaled_in_replicas |
ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasOutputReference |
No description. |
max_scaled_in_replicas_input |
ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas |
No description. |
time_window_sec_input |
typing.Union[int, float] |
No description. |
time_window_sec |
typing.Union[int, float] |
No description. |
internal_value |
ComputeRegionAutoscalerAutoscalingPolicyScaleInControl |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
max_scaled_in_replicas: ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasOutputReference
max_scaled_in_replicas_input: ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas
time_window_sec_input: typing.Union[int, float]
- Type: typing.Union[int, float]
time_window_sec: typing.Union[int, float]
- Type: typing.Union[int, float]
internal_value: ComputeRegionAutoscalerAutoscalingPolicyScaleInControl
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyScalingSchedulesList(
terraform_resource: IInterpolatingParent,
terraform_attribute: str,
wraps_set: bool
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
wraps_set |
bool |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
all_with_map_key |
Creating an iterator for this complex list. |
compute_fqn |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
get |
No description. |
def all_with_map_key(
map_key_attribute_name: str
) -> DynamicListTerraformIterator
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
- Type: str
def compute_fqn() -> str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def get(
index: typing.Union[int, float]
) -> ComputeRegionAutoscalerAutoscalingPolicyScalingSchedulesOutputReference
- Type: typing.Union[int, float]
the index of the item to return.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
internal_value |
typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]] |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
internal_value: typing.Union[IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]]
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerAutoscalingPolicyScalingSchedulesOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str,
complex_object_index: typing.Union[int, float],
complex_object_is_from_set: bool
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
complex_object_index |
typing.Union[int, float] |
the index of this item in the list. |
complex_object_is_from_set |
bool |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
- Type: typing.Union[int, float]
the index of this item in the list.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_description |
No description. |
reset_disabled |
No description. |
reset_time_zone |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_description() -> None
def reset_disabled() -> None
def reset_time_zone() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
description_input |
str |
No description. |
disabled_input |
typing.Union[bool, cdktf.IResolvable] |
No description. |
duration_sec_input |
typing.Union[int, float] |
No description. |
min_required_replicas_input |
typing.Union[int, float] |
No description. |
name_input |
str |
No description. |
schedule_input |
str |
No description. |
time_zone_input |
str |
No description. |
description |
str |
No description. |
disabled |
typing.Union[bool, cdktf.IResolvable] |
No description. |
duration_sec |
typing.Union[int, float] |
No description. |
min_required_replicas |
typing.Union[int, float] |
No description. |
name |
str |
No description. |
schedule |
str |
No description. |
time_zone |
str |
No description. |
internal_value |
typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules] |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
description_input: str
- Type: str
disabled_input: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, cdktf.IResolvable]
duration_sec_input: typing.Union[int, float]
- Type: typing.Union[int, float]
min_required_replicas_input: typing.Union[int, float]
- Type: typing.Union[int, float]
name_input: str
- Type: str
schedule_input: str
- Type: str
time_zone_input: str
- Type: str
description: str
- Type: str
disabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, cdktf.IResolvable]
duration_sec: typing.Union[int, float]
- Type: typing.Union[int, float]
min_required_replicas: typing.Union[int, float]
- Type: typing.Union[int, float]
name: str
- Type: str
schedule: str
- Type: str
time_zone: str
- Type: str
internal_value: typing.Union[IResolvable, ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]
- Type: typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerAutoscalingPolicyScalingSchedules]
from cdktf_cdktf_provider_google import compute_region_autoscaler
computeRegionAutoscaler.ComputeRegionAutoscalerTimeoutsOutputReference(
terraform_resource: IInterpolatingParent,
terraform_attribute: str
)
Name | Type | Description |
---|---|---|
terraform_resource |
cdktf.IInterpolatingParent |
The parent resource. |
terraform_attribute |
str |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_create |
No description. |
reset_delete |
No description. |
reset_update |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_create() -> None
def reset_delete() -> None
def reset_update() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
create_input |
str |
No description. |
delete_input |
str |
No description. |
update_input |
str |
No description. |
create |
str |
No description. |
delete |
str |
No description. |
update |
str |
No description. |
internal_value |
typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerTimeouts] |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
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.
fqn: str
- Type: str
create_input: str
- Type: str
delete_input: str
- Type: str
update_input: str
- Type: str
create: str
- Type: str
delete: str
- Type: str
update: str
- Type: str
internal_value: typing.Union[IResolvable, ComputeRegionAutoscalerTimeouts]
- Type: typing.Union[cdktf.IResolvable, ComputeRegionAutoscalerTimeouts]