Skip to content

Files

Latest commit

 

History

History
7633 lines (4862 loc) · 385 KB
·

computeResourcePolicy.python.md

File metadata and controls

7633 lines (4862 loc) · 385 KB
·

computeResourcePolicy Submodule

Constructs

ComputeResourcePolicy

Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy google_compute_resource_policy}.

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicy(
  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,
  name: str,
  description: str = None,
  disk_consistency_group_policy: ComputeResourcePolicyDiskConsistencyGroupPolicy = None,
  group_placement_policy: ComputeResourcePolicyGroupPlacementPolicy = None,
  id: str = None,
  instance_schedule_policy: ComputeResourcePolicyInstanceSchedulePolicy = None,
  project: str = None,
  region: str = None,
  snapshot_schedule_policy: ComputeResourcePolicySnapshotSchedulePolicy = None,
  timeouts: ComputeResourcePolicyTimeouts = 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.
name str The name of the resource, provided by the client when initially creating the resource.
description str An optional description of this resource. Provide this property when you create the resource.
disk_consistency_group_policy ComputeResourcePolicyDiskConsistencyGroupPolicy disk_consistency_group_policy block.
group_placement_policy ComputeResourcePolicyGroupPlacementPolicy group_placement_policy block.
id str Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#id ComputeResourcePolicy#id}.
instance_schedule_policy ComputeResourcePolicyInstanceSchedulePolicy instance_schedule_policy block.
project str Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#project ComputeResourcePolicy#project}.
region str Region where resource policy resides.
snapshot_schedule_policy ComputeResourcePolicySnapshotSchedulePolicy snapshot_schedule_policy block.
timeouts ComputeResourcePolicyTimeouts timeouts block.

scopeRequired
  • Type: constructs.Construct

The scope in which to define this construct.


idRequired
  • Type: str

The scoped construct ID.

Must be unique amongst siblings in the same scope


connectionOptional
  • Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]

countOptional
  • Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]

depends_onOptional
  • Type: typing.List[cdktf.ITerraformDependable]

for_eachOptional
  • Type: cdktf.ITerraformIterator

lifecycleOptional
  • Type: cdktf.TerraformResourceLifecycle

providerOptional
  • Type: cdktf.TerraformProvider

provisionersOptional
  • Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]

nameRequired
  • Type: str

The name of the resource, provided by the client when initially creating the resource.

The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, 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.37.0/docs/resources/compute_resource_policy#name ComputeResourcePolicy#name}


descriptionOptional
  • Type: str

An optional description of this resource. Provide this property when you create the resource.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#description ComputeResourcePolicy#description}


disk_consistency_group_policyOptional

disk_consistency_group_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#disk_consistency_group_policy ComputeResourcePolicy#disk_consistency_group_policy}


group_placement_policyOptional

group_placement_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#group_placement_policy ComputeResourcePolicy#group_placement_policy}


idOptional
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#id ComputeResourcePolicy#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.


instance_schedule_policyOptional

instance_schedule_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#instance_schedule_policy ComputeResourcePolicy#instance_schedule_policy}


projectOptional
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#project ComputeResourcePolicy#project}.


regionOptional
  • Type: str

Region where resource policy resides.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#region ComputeResourcePolicy#region}


snapshot_schedule_policyOptional

snapshot_schedule_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#snapshot_schedule_policy ComputeResourcePolicy#snapshot_schedule_policy}


timeoutsOptional

timeouts block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#timeouts ComputeResourcePolicy#timeouts}


Methods

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_disk_consistency_group_policy No description.
put_group_placement_policy No description.
put_instance_schedule_policy No description.
put_snapshot_schedule_policy No description.
put_timeouts No description.
reset_description No description.
reset_disk_consistency_group_policy No description.
reset_group_placement_policy No description.
reset_id No description.
reset_instance_schedule_policy No description.
reset_project No description.
reset_region No description.
reset_snapshot_schedule_policy No description.
reset_timeouts No description.

to_string
def to_string() -> str

Returns a string representation of this construct.

add_override
def add_override(
  path: str,
  value: typing.Any
) -> None
pathRequired
  • Type: str

valueRequired
  • Type: typing.Any

override_logical_id
def override_logical_id(
  new_logical_id: str
) -> None

Overrides the auto-generated logical ID with a specific ID.

new_logical_idRequired
  • Type: str

The new logical ID to use for this stack element.


reset_override_logical_id
def reset_override_logical_id() -> None

Resets a previously passed logical Id to use the auto-generated logical id again.

to_hcl_terraform
def to_hcl_terraform() -> typing.Any
to_metadata
def to_metadata() -> typing.Any
to_terraform
def to_terraform() -> typing.Any

Adds this resource to the terraform JSON output.

add_move_target
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.

move_targetRequired
  • Type: str

The string move target that will correspond to this resource.


get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

has_resource_move
def has_resource_move() -> typing.Union[TerraformResourceMoveByTarget, TerraformResourceMoveById]
import_from
def import_from(
  id: str,
  provider: TerraformProvider = None
) -> None
idRequired
  • Type: str

providerOptional
  • Type: cdktf.TerraformProvider

interpolation_for_attribute
def interpolation_for_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

move_from_id
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.

idRequired
  • Type: str

Full id of resource being moved from, e.g. "aws_s3_bucket.example".


move_to
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.

move_targetRequired
  • Type: str

The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.


indexOptional
  • 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.


move_to_id
def move_to_id(
  id: str
) -> None

Moves this resource to the resource corresponding to "id".

idRequired
  • Type: str

Full id of resource to move to, e.g. "aws_s3_bucket.example".


put_disk_consistency_group_policy
def put_disk_consistency_group_policy(
  enabled: typing.Union[bool, IResolvable]
) -> None
enabledRequired
  • Type: typing.Union[bool, cdktf.IResolvable]

Enable disk consistency on the resource policy.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#enabled ComputeResourcePolicy#enabled}


put_group_placement_policy
def put_group_placement_policy(
  availability_domain_count: typing.Union[int, float] = None,
  collocation: str = None,
  vm_count: typing.Union[int, float] = None
) -> None
availability_domain_countOptional
  • Type: typing.Union[int, float]

The number of availability domains instances will be spread across.

If two instances are in different availability domain, they will not be put in the same low latency network

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#availability_domain_count ComputeResourcePolicy#availability_domain_count}


collocationOptional
  • Type: str

Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network.

Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#collocation ComputeResourcePolicy#collocation}


vm_countOptional
  • Type: typing.Union[int, float]

Number of VMs in this placement group.

Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#vm_count ComputeResourcePolicy#vm_count}


put_instance_schedule_policy
def put_instance_schedule_policy(
  time_zone: str,
  expiration_time: str = None,
  start_time: str = None,
  vm_start_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule = None,
  vm_stop_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule = None
) -> None
time_zoneRequired
  • Type: str

Specifies the time zone to be used in 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.37.0/docs/resources/compute_resource_policy#time_zone ComputeResourcePolicy#time_zone}


expiration_timeOptional
  • Type: str

The expiration time of the schedule. The timestamp is an RFC3339 string.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#expiration_time ComputeResourcePolicy#expiration_time}


start_timeOptional
  • Type: str

The start time of the schedule. The timestamp is an RFC3339 string.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#start_time ComputeResourcePolicy#start_time}


vm_start_scheduleOptional

vm_start_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#vm_start_schedule ComputeResourcePolicy#vm_start_schedule}


vm_stop_scheduleOptional

vm_stop_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#vm_stop_schedule ComputeResourcePolicy#vm_stop_schedule}


put_snapshot_schedule_policy
def put_snapshot_schedule_policy(
  schedule: ComputeResourcePolicySnapshotSchedulePolicySchedule,
  retention_policy: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy = None,
  snapshot_properties: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties = None
) -> None
scheduleRequired

schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#schedule ComputeResourcePolicy#schedule}


retention_policyOptional

retention_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#retention_policy ComputeResourcePolicy#retention_policy}


snapshot_propertiesOptional

snapshot_properties block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#snapshot_properties ComputeResourcePolicy#snapshot_properties}


put_timeouts
def put_timeouts(
  create: str = None,
  delete: str = None,
  update: str = None
) -> None
createOptional
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#create ComputeResourcePolicy#create}.


deleteOptional
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#delete ComputeResourcePolicy#delete}.


updateOptional
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#update ComputeResourcePolicy#update}.


reset_description
def reset_description() -> None
reset_disk_consistency_group_policy
def reset_disk_consistency_group_policy() -> None
reset_group_placement_policy
def reset_group_placement_policy() -> None
reset_id
def reset_id() -> None
reset_instance_schedule_policy
def reset_instance_schedule_policy() -> None
reset_project
def reset_project() -> None
reset_region
def reset_region() -> None
reset_snapshot_schedule_policy
def reset_snapshot_schedule_policy() -> None
reset_timeouts
def reset_timeouts() -> None

Static Functions

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 ComputeResourcePolicy resource upon running "cdktf plan ".

is_construct
from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicy.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.

xRequired
  • Type: typing.Any

Any object.


is_terraform_element
from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicy.is_terraform_element(
  x: typing.Any
)
xRequired
  • Type: typing.Any

is_terraform_resource
from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicy.is_terraform_resource(
  x: typing.Any
)
xRequired
  • Type: typing.Any

generate_config_for_import
from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicy.generate_config_for_import(
  scope: Construct,
  import_to_id: str,
  import_from_id: str,
  provider: TerraformProvider = None
)

Generates CDKTF code for importing a ComputeResourcePolicy resource upon running "cdktf plan ".

scopeRequired
  • Type: constructs.Construct

The scope in which to define this construct.


import_to_idRequired
  • Type: str

The construct id used in the generated config for the ComputeResourcePolicy to import.


import_from_idRequired
  • Type: str

The id of the existing ComputeResourcePolicy that should be imported.

Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#import import section} in the documentation of this resource for the id to use


providerOptional
  • Type: cdktf.TerraformProvider

? Optional instance of the provider where the ComputeResourcePolicy to import is found.


Properties

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.
disk_consistency_group_policy ComputeResourcePolicyDiskConsistencyGroupPolicyOutputReference No description.
group_placement_policy ComputeResourcePolicyGroupPlacementPolicyOutputReference No description.
instance_schedule_policy ComputeResourcePolicyInstanceSchedulePolicyOutputReference No description.
self_link str No description.
snapshot_schedule_policy ComputeResourcePolicySnapshotSchedulePolicyOutputReference No description.
timeouts ComputeResourcePolicyTimeoutsOutputReference No description.
description_input str No description.
disk_consistency_group_policy_input ComputeResourcePolicyDiskConsistencyGroupPolicy No description.
group_placement_policy_input ComputeResourcePolicyGroupPlacementPolicy No description.
id_input str No description.
instance_schedule_policy_input ComputeResourcePolicyInstanceSchedulePolicy No description.
name_input str No description.
project_input str No description.
region_input str No description.
snapshot_schedule_policy_input ComputeResourcePolicySnapshotSchedulePolicy No description.
timeouts_input typing.Union[cdktf.IResolvable, ComputeResourcePolicyTimeouts] No description.
description str No description.
id str No description.
name str No description.
project str No description.
region str No description.

nodeRequired
node: Node
  • Type: constructs.Node

The tree node.


cdktf_stackRequired
cdktf_stack: TerraformStack
  • Type: cdktf.TerraformStack

fqnRequired
fqn: str
  • Type: str

friendly_unique_idRequired
friendly_unique_id: str
  • Type: str

terraform_meta_argumentsRequired
terraform_meta_arguments: typing.Mapping[typing.Any]
  • Type: typing.Mapping[typing.Any]

terraform_resource_typeRequired
terraform_resource_type: str
  • Type: str

terraform_generator_metadataOptional
terraform_generator_metadata: TerraformProviderGeneratorMetadata
  • Type: cdktf.TerraformProviderGeneratorMetadata

connectionOptional
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
  • Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]

countOptional
count: typing.Union[typing.Union[int, float], TerraformCount]
  • Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]

depends_onOptional
depends_on: typing.List[str]
  • Type: typing.List[str]

for_eachOptional
for_each: ITerraformIterator
  • Type: cdktf.ITerraformIterator

lifecycleOptional
lifecycle: TerraformResourceLifecycle
  • Type: cdktf.TerraformResourceLifecycle

providerOptional
provider: TerraformProvider
  • Type: cdktf.TerraformProvider

provisionersOptional
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
  • Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]

disk_consistency_group_policyRequired
disk_consistency_group_policy: ComputeResourcePolicyDiskConsistencyGroupPolicyOutputReference

group_placement_policyRequired
group_placement_policy: ComputeResourcePolicyGroupPlacementPolicyOutputReference

instance_schedule_policyRequired
instance_schedule_policy: ComputeResourcePolicyInstanceSchedulePolicyOutputReference

self_linkRequired
self_link: str
  • Type: str

snapshot_schedule_policyRequired
snapshot_schedule_policy: ComputeResourcePolicySnapshotSchedulePolicyOutputReference

timeoutsRequired
timeouts: ComputeResourcePolicyTimeoutsOutputReference

description_inputOptional
description_input: str
  • Type: str

disk_consistency_group_policy_inputOptional
disk_consistency_group_policy_input: ComputeResourcePolicyDiskConsistencyGroupPolicy

group_placement_policy_inputOptional
group_placement_policy_input: ComputeResourcePolicyGroupPlacementPolicy

id_inputOptional
id_input: str
  • Type: str

instance_schedule_policy_inputOptional
instance_schedule_policy_input: ComputeResourcePolicyInstanceSchedulePolicy

name_inputOptional
name_input: str
  • Type: str

project_inputOptional
project_input: str
  • Type: str

region_inputOptional
region_input: str
  • Type: str

snapshot_schedule_policy_inputOptional
snapshot_schedule_policy_input: ComputeResourcePolicySnapshotSchedulePolicy

timeouts_inputOptional
timeouts_input: typing.Union[IResolvable, ComputeResourcePolicyTimeouts]

descriptionRequired
description: str
  • Type: str

idRequired
id: str
  • Type: str

nameRequired
name: str
  • Type: str

projectRequired
project: str
  • Type: str

regionRequired
region: str
  • Type: str

Constants

Name Type Description
tfResourceType str No description.

tfResourceTypeRequired
tfResourceType: str
  • Type: str

Structs

ComputeResourcePolicyConfig

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyConfig(
  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,
  name: str,
  description: str = None,
  disk_consistency_group_policy: ComputeResourcePolicyDiskConsistencyGroupPolicy = None,
  group_placement_policy: ComputeResourcePolicyGroupPlacementPolicy = None,
  id: str = None,
  instance_schedule_policy: ComputeResourcePolicyInstanceSchedulePolicy = None,
  project: str = None,
  region: str = None,
  snapshot_schedule_policy: ComputeResourcePolicySnapshotSchedulePolicy = None,
  timeouts: ComputeResourcePolicyTimeouts = None
)

Properties

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.
name str The name of the resource, provided by the client when initially creating the resource.
description str An optional description of this resource. Provide this property when you create the resource.
disk_consistency_group_policy ComputeResourcePolicyDiskConsistencyGroupPolicy disk_consistency_group_policy block.
group_placement_policy ComputeResourcePolicyGroupPlacementPolicy group_placement_policy block.
id str Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#id ComputeResourcePolicy#id}.
instance_schedule_policy ComputeResourcePolicyInstanceSchedulePolicy instance_schedule_policy block.
project str Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#project ComputeResourcePolicy#project}.
region str Region where resource policy resides.
snapshot_schedule_policy ComputeResourcePolicySnapshotSchedulePolicy snapshot_schedule_policy block.
timeouts ComputeResourcePolicyTimeouts timeouts block.

connectionOptional
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
  • Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]

countOptional
count: typing.Union[typing.Union[int, float], TerraformCount]
  • Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]

depends_onOptional
depends_on: typing.List[ITerraformDependable]
  • Type: typing.List[cdktf.ITerraformDependable]

for_eachOptional
for_each: ITerraformIterator
  • Type: cdktf.ITerraformIterator

lifecycleOptional
lifecycle: TerraformResourceLifecycle
  • Type: cdktf.TerraformResourceLifecycle

providerOptional
provider: TerraformProvider
  • Type: cdktf.TerraformProvider

provisionersOptional
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
  • Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]

nameRequired
name: str
  • Type: str

The name of the resource, provided by the client when initially creating the resource.

The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, 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.37.0/docs/resources/compute_resource_policy#name ComputeResourcePolicy#name}


descriptionOptional
description: str
  • Type: str

An optional description of this resource. Provide this property when you create the resource.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#description ComputeResourcePolicy#description}


disk_consistency_group_policyOptional
disk_consistency_group_policy: ComputeResourcePolicyDiskConsistencyGroupPolicy

disk_consistency_group_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#disk_consistency_group_policy ComputeResourcePolicy#disk_consistency_group_policy}


group_placement_policyOptional
group_placement_policy: ComputeResourcePolicyGroupPlacementPolicy

group_placement_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#group_placement_policy ComputeResourcePolicy#group_placement_policy}


idOptional
id: str
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#id ComputeResourcePolicy#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.


instance_schedule_policyOptional
instance_schedule_policy: ComputeResourcePolicyInstanceSchedulePolicy

instance_schedule_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#instance_schedule_policy ComputeResourcePolicy#instance_schedule_policy}


projectOptional
project: str
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#project ComputeResourcePolicy#project}.


regionOptional
region: str
  • Type: str

Region where resource policy resides.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#region ComputeResourcePolicy#region}


snapshot_schedule_policyOptional
snapshot_schedule_policy: ComputeResourcePolicySnapshotSchedulePolicy

snapshot_schedule_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#snapshot_schedule_policy ComputeResourcePolicy#snapshot_schedule_policy}


timeoutsOptional
timeouts: ComputeResourcePolicyTimeouts

timeouts block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#timeouts ComputeResourcePolicy#timeouts}


ComputeResourcePolicyDiskConsistencyGroupPolicy

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyDiskConsistencyGroupPolicy(
  enabled: typing.Union[bool, IResolvable]
)

Properties

Name Type Description
enabled typing.Union[bool, cdktf.IResolvable] Enable disk consistency on the resource policy.

enabledRequired
enabled: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, cdktf.IResolvable]

Enable disk consistency on the resource policy.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#enabled ComputeResourcePolicy#enabled}


ComputeResourcePolicyGroupPlacementPolicy

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyGroupPlacementPolicy(
  availability_domain_count: typing.Union[int, float] = None,
  collocation: str = None,
  vm_count: typing.Union[int, float] = None
)

Properties

Name Type Description
availability_domain_count typing.Union[int, float] The number of availability domains instances will be spread across.
collocation str Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network.
vm_count typing.Union[int, float] Number of VMs in this placement group.

availability_domain_countOptional
availability_domain_count: typing.Union[int, float]
  • Type: typing.Union[int, float]

The number of availability domains instances will be spread across.

If two instances are in different availability domain, they will not be put in the same low latency network

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#availability_domain_count ComputeResourcePolicy#availability_domain_count}


collocationOptional
collocation: str
  • Type: str

Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network.

Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#collocation ComputeResourcePolicy#collocation}


vm_countOptional
vm_count: typing.Union[int, float]
  • Type: typing.Union[int, float]

Number of VMs in this placement group.

Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#vm_count ComputeResourcePolicy#vm_count}


ComputeResourcePolicyInstanceSchedulePolicy

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicy(
  time_zone: str,
  expiration_time: str = None,
  start_time: str = None,
  vm_start_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule = None,
  vm_stop_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule = None
)

Properties

Name Type Description
time_zone str Specifies the time zone to be used in interpreting the schedule.
expiration_time str The expiration time of the schedule. The timestamp is an RFC3339 string.
start_time str The start time of the schedule. The timestamp is an RFC3339 string.
vm_start_schedule ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule vm_start_schedule block.
vm_stop_schedule ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule vm_stop_schedule block.

time_zoneRequired
time_zone: str
  • Type: str

Specifies the time zone to be used in 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.37.0/docs/resources/compute_resource_policy#time_zone ComputeResourcePolicy#time_zone}


expiration_timeOptional
expiration_time: str
  • Type: str

The expiration time of the schedule. The timestamp is an RFC3339 string.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#expiration_time ComputeResourcePolicy#expiration_time}


start_timeOptional
start_time: str
  • Type: str

The start time of the schedule. The timestamp is an RFC3339 string.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#start_time ComputeResourcePolicy#start_time}


vm_start_scheduleOptional
vm_start_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule

vm_start_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#vm_start_schedule ComputeResourcePolicy#vm_start_schedule}


vm_stop_scheduleOptional
vm_stop_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule

vm_stop_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#vm_stop_schedule ComputeResourcePolicy#vm_stop_schedule}


ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule(
  schedule: str
)

Properties

Name Type Description
schedule str Specifies the frequency for the operation, using the unix-cron format.

scheduleRequired
schedule: str
  • Type: str

Specifies the frequency for the operation, using the unix-cron format.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#schedule ComputeResourcePolicy#schedule}


ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule(
  schedule: str
)

Properties

Name Type Description
schedule str Specifies the frequency for the operation, using the unix-cron format.

scheduleRequired
schedule: str
  • Type: str

Specifies the frequency for the operation, using the unix-cron format.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#schedule ComputeResourcePolicy#schedule}


ComputeResourcePolicySnapshotSchedulePolicy

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicy(
  schedule: ComputeResourcePolicySnapshotSchedulePolicySchedule,
  retention_policy: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy = None,
  snapshot_properties: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties = None
)

Properties

Name Type Description
schedule ComputeResourcePolicySnapshotSchedulePolicySchedule schedule block.
retention_policy ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy retention_policy block.
snapshot_properties ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties snapshot_properties block.

scheduleRequired
schedule: ComputeResourcePolicySnapshotSchedulePolicySchedule

schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#schedule ComputeResourcePolicy#schedule}


retention_policyOptional
retention_policy: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy

retention_policy block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#retention_policy ComputeResourcePolicy#retention_policy}


snapshot_propertiesOptional
snapshot_properties: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties

snapshot_properties block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#snapshot_properties ComputeResourcePolicy#snapshot_properties}


ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy(
  max_retention_days: typing.Union[int, float],
  on_source_disk_delete: str = None
)

Properties

Name Type Description
max_retention_days typing.Union[int, float] Maximum age of the snapshot that is allowed to be kept.
on_source_disk_delete str Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.

max_retention_daysRequired
max_retention_days: typing.Union[int, float]
  • Type: typing.Union[int, float]

Maximum age of the snapshot that is allowed to be kept.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#max_retention_days ComputeResourcePolicy#max_retention_days}


on_source_disk_deleteOptional
on_source_disk_delete: str
  • Type: str

Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.

Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#on_source_disk_delete ComputeResourcePolicy#on_source_disk_delete}


ComputeResourcePolicySnapshotSchedulePolicySchedule

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicySchedule(
  daily_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule = None,
  hourly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule = None,
  weekly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule = None
)

Properties

Name Type Description
daily_schedule ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule daily_schedule block.
hourly_schedule ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule hourly_schedule block.
weekly_schedule ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule weekly_schedule block.

daily_scheduleOptional
daily_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule

daily_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#daily_schedule ComputeResourcePolicy#daily_schedule}


hourly_scheduleOptional
hourly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule

hourly_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#hourly_schedule ComputeResourcePolicy#hourly_schedule}


weekly_scheduleOptional
weekly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule

weekly_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#weekly_schedule ComputeResourcePolicy#weekly_schedule}


ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule(
  days_in_cycle: typing.Union[int, float],
  start_time: str
)

Properties

Name Type Description
days_in_cycle typing.Union[int, float] Defines a schedule with units measured in days.
start_time str This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00.

days_in_cycleRequired
days_in_cycle: typing.Union[int, float]
  • Type: typing.Union[int, float]

Defines a schedule with units measured in days.

The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#days_in_cycle ComputeResourcePolicy#days_in_cycle}


start_timeRequired
start_time: str
  • Type: str

This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00.

For example, both 13:00-5 and 08:00 are valid.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#start_time ComputeResourcePolicy#start_time}


ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule(
  hours_in_cycle: typing.Union[int, float],
  start_time: str
)

Properties

Name Type Description
hours_in_cycle typing.Union[int, float] The number of hours between snapshots.
start_time str Time within the window to start the operations.

hours_in_cycleRequired
hours_in_cycle: typing.Union[int, float]
  • Type: typing.Union[int, float]

The number of hours between snapshots.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#hours_in_cycle ComputeResourcePolicy#hours_in_cycle}


start_timeRequired
start_time: str
  • Type: str

Time within the window to start the operations.

It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#start_time ComputeResourcePolicy#start_time}


ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule(
  day_of_weeks: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
)

Properties

Name Type Description
day_of_weeks typing.Union[cdktf.IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]] day_of_weeks block.

day_of_weeksRequired
day_of_weeks: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]

day_of_weeks block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#day_of_weeks ComputeResourcePolicy#day_of_weeks}


ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks(
  day: str,
  start_time: str
)

Properties

Name Type Description
day str The day of the week to create the snapshot.
start_time str Time within the window to start the operations.

dayRequired
day: str
  • Type: str

The day of the week to create the snapshot.

e.g. MONDAY Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#day ComputeResourcePolicy#day}


start_timeRequired
start_time: str
  • Type: str

Time within the window to start the operations.

It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#start_time ComputeResourcePolicy#start_time}


ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties(
  chain_name: str = None,
  guest_flush: typing.Union[bool, IResolvable] = None,
  labels: typing.Mapping[str] = None,
  storage_locations: typing.List[str] = None
)

Properties

Name Type Description
chain_name str Creates the new snapshot in the snapshot chain labeled with the specified name.
guest_flush typing.Union[bool, cdktf.IResolvable] Whether to perform a 'guest aware' snapshot.
labels typing.Mapping[str] A set of key-value pairs.
storage_locations typing.List[str] Cloud Storage bucket location to store the auto snapshot (regional or multi-regional).

chain_nameOptional
chain_name: str
  • Type: str

Creates the new snapshot in the snapshot chain labeled with the specified name.

The chain name must be 1-63 characters long and comply with RFC1035.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#chain_name ComputeResourcePolicy#chain_name}


guest_flushOptional
guest_flush: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, cdktf.IResolvable]

Whether to perform a 'guest aware' snapshot.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#guest_flush ComputeResourcePolicy#guest_flush}


labelsOptional
labels: typing.Mapping[str]
  • Type: typing.Mapping[str]

A set of key-value pairs.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#labels ComputeResourcePolicy#labels}


storage_locationsOptional
storage_locations: typing.List[str]
  • Type: typing.List[str]

Cloud Storage bucket location to store the auto snapshot (regional or multi-regional).

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#storage_locations ComputeResourcePolicy#storage_locations}


ComputeResourcePolicyTimeouts

Initializer

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyTimeouts(
  create: str = None,
  delete: str = None,
  update: str = None
)

Properties

Name Type Description
create str Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#create ComputeResourcePolicy#create}.
delete str Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#delete ComputeResourcePolicy#delete}.
update str Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#update ComputeResourcePolicy#update}.

createOptional
create: str
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#create ComputeResourcePolicy#create}.


deleteOptional
delete: str
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#delete ComputeResourcePolicy#delete}.


updateOptional
update: str
  • Type: str

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#update ComputeResourcePolicy#update}.


Classes

ComputeResourcePolicyDiskConsistencyGroupPolicyOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyDiskConsistencyGroupPolicyOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

Properties

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.
enabled_input typing.Union[bool, cdktf.IResolvable] No description.
enabled typing.Union[bool, cdktf.IResolvable] No description.
internal_value ComputeResourcePolicyDiskConsistencyGroupPolicy No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

enabled_inputOptional
enabled_input: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, cdktf.IResolvable]

enabledRequired
enabled: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, cdktf.IResolvable]

internal_valueOptional
internal_value: ComputeResourcePolicyDiskConsistencyGroupPolicy

ComputeResourcePolicyGroupPlacementPolicyOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyGroupPlacementPolicyOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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_availability_domain_count No description.
reset_collocation No description.
reset_vm_count No description.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

reset_availability_domain_count
def reset_availability_domain_count() -> None
reset_collocation
def reset_collocation() -> None
reset_vm_count
def reset_vm_count() -> None

Properties

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.
availability_domain_count_input typing.Union[int, float] No description.
collocation_input str No description.
vm_count_input typing.Union[int, float] No description.
availability_domain_count typing.Union[int, float] No description.
collocation str No description.
vm_count typing.Union[int, float] No description.
internal_value ComputeResourcePolicyGroupPlacementPolicy No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

availability_domain_count_inputOptional
availability_domain_count_input: typing.Union[int, float]
  • Type: typing.Union[int, float]

collocation_inputOptional
collocation_input: str
  • Type: str

vm_count_inputOptional
vm_count_input: typing.Union[int, float]
  • Type: typing.Union[int, float]

availability_domain_countRequired
availability_domain_count: typing.Union[int, float]
  • Type: typing.Union[int, float]

collocationRequired
collocation: str
  • Type: str

vm_countRequired
vm_count: typing.Union[int, float]
  • Type: typing.Union[int, float]

internal_valueOptional
internal_value: ComputeResourcePolicyGroupPlacementPolicy

ComputeResourcePolicyInstanceSchedulePolicyOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicyOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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_vm_start_schedule No description.
put_vm_stop_schedule No description.
reset_expiration_time No description.
reset_start_time No description.
reset_vm_start_schedule No description.
reset_vm_stop_schedule No description.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

put_vm_start_schedule
def put_vm_start_schedule(
  schedule: str
) -> None
scheduleRequired
  • Type: str

Specifies the frequency for the operation, using the unix-cron format.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#schedule ComputeResourcePolicy#schedule}


put_vm_stop_schedule
def put_vm_stop_schedule(
  schedule: str
) -> None
scheduleRequired
  • Type: str

Specifies the frequency for the operation, using the unix-cron format.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#schedule ComputeResourcePolicy#schedule}


reset_expiration_time
def reset_expiration_time() -> None
reset_start_time
def reset_start_time() -> None
reset_vm_start_schedule
def reset_vm_start_schedule() -> None
reset_vm_stop_schedule
def reset_vm_stop_schedule() -> None

Properties

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.
vm_start_schedule ComputeResourcePolicyInstanceSchedulePolicyVmStartScheduleOutputReference No description.
vm_stop_schedule ComputeResourcePolicyInstanceSchedulePolicyVmStopScheduleOutputReference No description.
expiration_time_input str No description.
start_time_input str No description.
time_zone_input str No description.
vm_start_schedule_input ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule No description.
vm_stop_schedule_input ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule No description.
expiration_time str No description.
start_time str No description.
time_zone str No description.
internal_value ComputeResourcePolicyInstanceSchedulePolicy No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

vm_start_scheduleRequired
vm_start_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStartScheduleOutputReference

vm_stop_scheduleRequired
vm_stop_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStopScheduleOutputReference

expiration_time_inputOptional
expiration_time_input: str
  • Type: str

start_time_inputOptional
start_time_input: str
  • Type: str

time_zone_inputOptional
time_zone_input: str
  • Type: str

vm_start_schedule_inputOptional
vm_start_schedule_input: ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule

vm_stop_schedule_inputOptional
vm_stop_schedule_input: ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule

expiration_timeRequired
expiration_time: str
  • Type: str

start_timeRequired
start_time: str
  • Type: str

time_zoneRequired
time_zone: str
  • Type: str

internal_valueOptional
internal_value: ComputeResourcePolicyInstanceSchedulePolicy

ComputeResourcePolicyInstanceSchedulePolicyVmStartScheduleOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicyVmStartScheduleOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

Properties

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.
schedule_input str No description.
schedule str No description.
internal_value ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

schedule_inputOptional
schedule_input: str
  • Type: str

scheduleRequired
schedule: str
  • Type: str

internal_valueOptional
internal_value: ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule

ComputeResourcePolicyInstanceSchedulePolicyVmStopScheduleOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicyVmStopScheduleOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

Properties

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.
schedule_input str No description.
schedule str No description.
internal_value ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

schedule_inputOptional
schedule_input: str
  • Type: str

scheduleRequired
schedule: str
  • Type: str

internal_valueOptional
internal_value: ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule

ComputeResourcePolicySnapshotSchedulePolicyOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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_retention_policy No description.
put_schedule No description.
put_snapshot_properties No description.
reset_retention_policy No description.
reset_snapshot_properties No description.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

put_retention_policy
def put_retention_policy(
  max_retention_days: typing.Union[int, float],
  on_source_disk_delete: str = None
) -> None
max_retention_daysRequired
  • Type: typing.Union[int, float]

Maximum age of the snapshot that is allowed to be kept.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#max_retention_days ComputeResourcePolicy#max_retention_days}


on_source_disk_deleteOptional
  • Type: str

Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.

Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#on_source_disk_delete ComputeResourcePolicy#on_source_disk_delete}


put_schedule
def put_schedule(
  daily_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule = None,
  hourly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule = None,
  weekly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule = None
) -> None
daily_scheduleOptional

daily_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#daily_schedule ComputeResourcePolicy#daily_schedule}


hourly_scheduleOptional

hourly_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#hourly_schedule ComputeResourcePolicy#hourly_schedule}


weekly_scheduleOptional

weekly_schedule block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#weekly_schedule ComputeResourcePolicy#weekly_schedule}


put_snapshot_properties
def put_snapshot_properties(
  chain_name: str = None,
  guest_flush: typing.Union[bool, IResolvable] = None,
  labels: typing.Mapping[str] = None,
  storage_locations: typing.List[str] = None
) -> None
chain_nameOptional
  • Type: str

Creates the new snapshot in the snapshot chain labeled with the specified name.

The chain name must be 1-63 characters long and comply with RFC1035.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#chain_name ComputeResourcePolicy#chain_name}


guest_flushOptional
  • Type: typing.Union[bool, cdktf.IResolvable]

Whether to perform a 'guest aware' snapshot.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#guest_flush ComputeResourcePolicy#guest_flush}


labelsOptional
  • Type: typing.Mapping[str]

A set of key-value pairs.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#labels ComputeResourcePolicy#labels}


storage_locationsOptional
  • Type: typing.List[str]

Cloud Storage bucket location to store the auto snapshot (regional or multi-regional).

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#storage_locations ComputeResourcePolicy#storage_locations}


reset_retention_policy
def reset_retention_policy() -> None
reset_snapshot_properties
def reset_snapshot_properties() -> None

Properties

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.
retention_policy ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicyOutputReference No description.
schedule ComputeResourcePolicySnapshotSchedulePolicyScheduleOutputReference No description.
snapshot_properties ComputeResourcePolicySnapshotSchedulePolicySnapshotPropertiesOutputReference No description.
retention_policy_input ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy No description.
schedule_input ComputeResourcePolicySnapshotSchedulePolicySchedule No description.
snapshot_properties_input ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties No description.
internal_value ComputeResourcePolicySnapshotSchedulePolicy No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

retention_policyRequired
retention_policy: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicyOutputReference

scheduleRequired
schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleOutputReference

snapshot_propertiesRequired
snapshot_properties: ComputeResourcePolicySnapshotSchedulePolicySnapshotPropertiesOutputReference

retention_policy_inputOptional
retention_policy_input: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy

schedule_inputOptional
schedule_input: ComputeResourcePolicySnapshotSchedulePolicySchedule

snapshot_properties_inputOptional
snapshot_properties_input: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties

internal_valueOptional
internal_value: ComputeResourcePolicySnapshotSchedulePolicy

ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicyOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicyOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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_on_source_disk_delete No description.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

reset_on_source_disk_delete
def reset_on_source_disk_delete() -> None

Properties

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_retention_days_input typing.Union[int, float] No description.
on_source_disk_delete_input str No description.
max_retention_days typing.Union[int, float] No description.
on_source_disk_delete str No description.
internal_value ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

max_retention_days_inputOptional
max_retention_days_input: typing.Union[int, float]
  • Type: typing.Union[int, float]

on_source_disk_delete_inputOptional
on_source_disk_delete_input: str
  • Type: str

max_retention_daysRequired
max_retention_days: typing.Union[int, float]
  • Type: typing.Union[int, float]

on_source_disk_deleteRequired
on_source_disk_delete: str
  • Type: str

internal_valueOptional
internal_value: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy

ComputeResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

Properties

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.
days_in_cycle_input typing.Union[int, float] No description.
start_time_input str No description.
days_in_cycle typing.Union[int, float] No description.
start_time str No description.
internal_value ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

days_in_cycle_inputOptional
days_in_cycle_input: typing.Union[int, float]
  • Type: typing.Union[int, float]

start_time_inputOptional
start_time_input: str
  • Type: str

days_in_cycleRequired
days_in_cycle: typing.Union[int, float]
  • Type: typing.Union[int, float]

start_timeRequired
start_time: str
  • Type: str

internal_valueOptional
internal_value: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule

ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

Properties

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.
hours_in_cycle_input typing.Union[int, float] No description.
start_time_input str No description.
hours_in_cycle typing.Union[int, float] No description.
start_time str No description.
internal_value ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

hours_in_cycle_inputOptional
hours_in_cycle_input: typing.Union[int, float]
  • Type: typing.Union[int, float]

start_time_inputOptional
start_time_input: str
  • Type: str

hours_in_cycleRequired
hours_in_cycle: typing.Union[int, float]
  • Type: typing.Union[int, float]

start_timeRequired
start_time: str
  • Type: str

internal_valueOptional
internal_value: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule

ComputeResourcePolicySnapshotSchedulePolicyScheduleOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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_daily_schedule No description.
put_hourly_schedule No description.
put_weekly_schedule No description.
reset_daily_schedule No description.
reset_hourly_schedule No description.
reset_weekly_schedule No description.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

put_daily_schedule
def put_daily_schedule(
  days_in_cycle: typing.Union[int, float],
  start_time: str
) -> None
days_in_cycleRequired
  • Type: typing.Union[int, float]

Defines a schedule with units measured in days.

The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#days_in_cycle ComputeResourcePolicy#days_in_cycle}


start_timeRequired
  • Type: str

This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00.

For example, both 13:00-5 and 08:00 are valid.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#start_time ComputeResourcePolicy#start_time}


put_hourly_schedule
def put_hourly_schedule(
  hours_in_cycle: typing.Union[int, float],
  start_time: str
) -> None
hours_in_cycleRequired
  • Type: typing.Union[int, float]

The number of hours between snapshots.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#hours_in_cycle ComputeResourcePolicy#hours_in_cycle}


start_timeRequired
  • Type: str

Time within the window to start the operations.

It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#start_time ComputeResourcePolicy#start_time}


put_weekly_schedule
def put_weekly_schedule(
  day_of_weeks: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
) -> None
day_of_weeksRequired

day_of_weeks block.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#day_of_weeks ComputeResourcePolicy#day_of_weeks}


reset_daily_schedule
def reset_daily_schedule() -> None
reset_hourly_schedule
def reset_hourly_schedule() -> None
reset_weekly_schedule
def reset_weekly_schedule() -> None

Properties

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.
daily_schedule ComputeResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleOutputReference No description.
hourly_schedule ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleOutputReference No description.
weekly_schedule ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleOutputReference No description.
daily_schedule_input ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule No description.
hourly_schedule_input ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule No description.
weekly_schedule_input ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule No description.
internal_value ComputeResourcePolicySnapshotSchedulePolicySchedule No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

daily_scheduleRequired
daily_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleOutputReference

hourly_scheduleRequired
hourly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleOutputReference

weekly_scheduleRequired
weekly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleOutputReference

daily_schedule_inputOptional
daily_schedule_input: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule

hourly_schedule_inputOptional
hourly_schedule_input: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule

weekly_schedule_inputOptional
weekly_schedule_input: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule

internal_valueOptional
internal_value: ComputeResourcePolicySnapshotSchedulePolicySchedule

ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksList

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksList(
  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).

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


wraps_setRequired
  • Type: bool

whether the list is wrapping a set (will add tolist() to be able to access an item via an index).


Methods

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.

all_with_map_key
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.

map_key_attribute_nameRequired
  • Type: str

compute_fqn
def compute_fqn() -> str
resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

get
def get(
  index: typing.Union[int, float]
) -> ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksOutputReference
indexRequired
  • Type: typing.Union[int, float]

the index of the item to return.


Properties

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[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]] No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

internal_valueOptional
internal_value: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]

ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksOutputReference(
  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).

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


complex_object_indexRequired
  • Type: typing.Union[int, float]

the index of this item in the list.


complex_object_is_from_setRequired
  • Type: bool

whether the list is wrapping a set (will add tolist() to be able to access an item via an index).


Methods

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.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

Properties

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.
day_input str No description.
start_time_input str No description.
day str No description.
start_time str No description.
internal_value typing.Union[cdktf.IResolvable, ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks] No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

day_inputOptional
day_input: str
  • Type: str

start_time_inputOptional
start_time_input: str
  • Type: str

dayRequired
day: str
  • Type: str

start_timeRequired
start_time: str
  • Type: str

internal_valueOptional
internal_value: typing.Union[IResolvable, ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]

ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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_day_of_weeks No description.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

put_day_of_weeks
def put_day_of_weeks(
  value: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
) -> None
valueRequired

Properties

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.
day_of_weeks ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksList No description.
day_of_weeks_input typing.Union[cdktf.IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]] No description.
internal_value ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

day_of_weeksRequired
day_of_weeks: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksList

day_of_weeks_inputOptional
day_of_weeks_input: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]

internal_valueOptional
internal_value: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule

ComputeResourcePolicySnapshotSchedulePolicySnapshotPropertiesOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicySnapshotPropertiesOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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_chain_name No description.
reset_guest_flush No description.
reset_labels No description.
reset_storage_locations No description.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

reset_chain_name
def reset_chain_name() -> None
reset_guest_flush
def reset_guest_flush() -> None
reset_labels
def reset_labels() -> None
reset_storage_locations
def reset_storage_locations() -> None

Properties

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.
chain_name_input str No description.
guest_flush_input typing.Union[bool, cdktf.IResolvable] No description.
labels_input typing.Mapping[str] No description.
storage_locations_input typing.List[str] No description.
chain_name str No description.
guest_flush typing.Union[bool, cdktf.IResolvable] No description.
labels typing.Mapping[str] No description.
storage_locations typing.List[str] No description.
internal_value ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

chain_name_inputOptional
chain_name_input: str
  • Type: str

guest_flush_inputOptional
guest_flush_input: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, cdktf.IResolvable]

labels_inputOptional
labels_input: typing.Mapping[str]
  • Type: typing.Mapping[str]

storage_locations_inputOptional
storage_locations_input: typing.List[str]
  • Type: typing.List[str]

chain_nameRequired
chain_name: str
  • Type: str

guest_flushRequired
guest_flush: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, cdktf.IResolvable]

labelsRequired
labels: typing.Mapping[str]
  • Type: typing.Mapping[str]

storage_locationsRequired
storage_locations: typing.List[str]
  • Type: typing.List[str]

internal_valueOptional
internal_value: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties

ComputeResourcePolicyTimeoutsOutputReference

Initializers

from cdktf_cdktf_provider_google import compute_resource_policy

computeResourcePolicy.ComputeResourcePolicyTimeoutsOutputReference(
  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.

terraform_resourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraform_attributeRequired
  • Type: str

The attribute on the parent resource this class is referencing.


Methods

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.

compute_fqn
def compute_fqn() -> str
get_any_map_attribute
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
terraform_attributeRequired
  • Type: str

get_boolean_attribute
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
terraform_attributeRequired
  • Type: str

get_boolean_map_attribute
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
terraform_attributeRequired
  • Type: str

get_list_attribute
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
terraform_attributeRequired
  • Type: str

get_number_attribute
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
terraform_attributeRequired
  • Type: str

get_number_list_attribute
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_number_map_attribute
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
terraform_attributeRequired
  • Type: str

get_string_attribute
def get_string_attribute(
  terraform_attribute: str
) -> str
terraform_attributeRequired
  • Type: str

get_string_map_attribute
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
terraform_attributeRequired
  • Type: str

interpolation_for_attribute
def interpolation_for_attribute(
  property: str
) -> IResolvable
propertyRequired
  • Type: str

resolve
def resolve(
  _context: IResolveContext
) -> typing.Any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

to_string
def to_string() -> str

Return a string representation of this resolvable object.

Returns a reversible string representation.

reset_create
def reset_create() -> None
reset_delete
def reset_delete() -> None
reset_update
def reset_update() -> None

Properties

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, ComputeResourcePolicyTimeouts] No description.

creation_stackRequired
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.


fqnRequired
fqn: str
  • Type: str

create_inputOptional
create_input: str
  • Type: str

delete_inputOptional
delete_input: str
  • Type: str

update_inputOptional
update_input: str
  • Type: str

createRequired
create: str
  • Type: str

deleteRequired
delete: str
  • Type: str

updateRequired
update: str
  • Type: str

internal_valueOptional
internal_value: typing.Union[IResolvable, ComputeResourcePolicyTimeouts]