Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy google_compute_resource_policy}.
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. |
- Type: constructs.Construct
The scope in which to define this construct.
- Type: str
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
- Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]
- Type: typing.List[cdktf.ITerraformDependable]
- Type: cdktf.ITerraformIterator
- Type: cdktf.TerraformResourceLifecycle
- Type: cdktf.TerraformProvider
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
- 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}
- 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_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_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}
- 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_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}
- 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}.
- 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_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}
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}
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. |
def to_string() -> str
Returns a string representation of this construct.
def add_override(
path: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
def override_logical_id(
new_logical_id: str
) -> None
Overrides the auto-generated logical ID with a specific ID.
- Type: str
The new logical ID to use for this stack element.
def reset_override_logical_id() -> None
Resets a previously passed logical Id to use the auto-generated logical id again.
def to_hcl_terraform() -> typing.Any
def to_metadata() -> typing.Any
def to_terraform() -> typing.Any
Adds this resource to the terraform JSON output.
def add_move_target(
move_target: str
) -> None
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
- Type: str
The string move target that will correspond to this resource.
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def has_resource_move() -> typing.Union[TerraformResourceMoveByTarget, TerraformResourceMoveById]
def import_from(
id: str,
provider: TerraformProvider = None
) -> None
- Type: str
- Type: cdktf.TerraformProvider
def interpolation_for_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def move_from_id(
id: str
) -> None
Move the resource corresponding to "id" to this resource.
Note that the resource being moved from must be marked as moved using it's instance function.
- Type: str
Full id of resource being moved from, e.g. "aws_s3_bucket.example".
def move_to(
move_target: str,
index: typing.Union[str, typing.Union[int, float]] = None
) -> None
Moves this resource to the target resource given by moveTarget.
- Type: str
The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.
- Type: typing.Union[str, typing.Union[int, float]]
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.
def move_to_id(
id: str
) -> None
Moves this resource to the resource corresponding to "id".
- Type: str
Full id of resource to move to, e.g. "aws_s3_bucket.example".
def put_disk_consistency_group_policy(
enabled: typing.Union[bool, IResolvable]
) -> None
- 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}
def put_group_placement_policy(
availability_domain_count: typing.Union[int, float] = None,
collocation: str = None,
vm_count: typing.Union[int, float] = None
) -> None
- 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}
- 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}
- 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}
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
- 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}
- 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}
- 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_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_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}
def put_snapshot_schedule_policy(
schedule: ComputeResourcePolicySnapshotSchedulePolicySchedule,
retention_policy: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy = None,
snapshot_properties: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties = None
) -> None
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_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_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}
def put_timeouts(
create: str = None,
delete: str = None,
update: str = None
) -> None
- Type: str
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.37.0/docs/resources/compute_resource_policy#create ComputeResourcePolicy#create}.
- 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}.
- 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}.
def reset_description() -> None
def reset_disk_consistency_group_policy() -> None
def reset_group_placement_policy() -> None
def reset_id() -> None
def reset_instance_schedule_policy() -> None
def reset_project() -> None
def reset_region() -> None
def reset_snapshot_schedule_policy() -> None
def reset_timeouts() -> None
Name | Description |
---|---|
is_construct |
Checks if x is a construct. |
is_terraform_element |
No description. |
is_terraform_resource |
No description. |
generate_config_for_import |
Generates CDKTF code for importing a ComputeResourcePolicy resource upon running "cdktf plan ". |
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.
- Type: typing.Any
Any object.
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicy.is_terraform_element(
x: typing.Any
)
- Type: typing.Any
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicy.is_terraform_resource(
x: typing.Any
)
- Type: typing.Any
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 ".
- Type: constructs.Construct
The scope in which to define this construct.
- Type: str
The construct id used in the generated config for the ComputeResourcePolicy to import.
- 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
- Type: cdktf.TerraformProvider
? Optional instance of the provider where the ComputeResourcePolicy to import is found.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cdktf_stack |
cdktf.TerraformStack |
No description. |
fqn |
str |
No description. |
friendly_unique_id |
str |
No description. |
terraform_meta_arguments |
typing.Mapping[typing.Any] |
No description. |
terraform_resource_type |
str |
No description. |
terraform_generator_metadata |
cdktf.TerraformProviderGeneratorMetadata |
No description. |
connection |
typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection] |
No description. |
count |
typing.Union[typing.Union[int, float], cdktf.TerraformCount] |
No description. |
depends_on |
typing.List[str] |
No description. |
for_each |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]] |
No description. |
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. |
node: Node
- Type: constructs.Node
The tree node.
cdktf_stack: TerraformStack
- Type: cdktf.TerraformStack
fqn: str
- Type: str
friendly_unique_id: str
- Type: str
terraform_meta_arguments: typing.Mapping[typing.Any]
- Type: typing.Mapping[typing.Any]
terraform_resource_type: str
- Type: str
terraform_generator_metadata: TerraformProviderGeneratorMetadata
- Type: cdktf.TerraformProviderGeneratorMetadata
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
count: typing.Union[typing.Union[int, float], TerraformCount]
- Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]
depends_on: typing.List[str]
- Type: typing.List[str]
for_each: ITerraformIterator
- Type: cdktf.ITerraformIterator
lifecycle: TerraformResourceLifecycle
- Type: cdktf.TerraformResourceLifecycle
provider: TerraformProvider
- Type: cdktf.TerraformProvider
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
disk_consistency_group_policy: ComputeResourcePolicyDiskConsistencyGroupPolicyOutputReference
group_placement_policy: ComputeResourcePolicyGroupPlacementPolicyOutputReference
instance_schedule_policy: ComputeResourcePolicyInstanceSchedulePolicyOutputReference
self_link: str
- Type: str
snapshot_schedule_policy: ComputeResourcePolicySnapshotSchedulePolicyOutputReference
timeouts: ComputeResourcePolicyTimeoutsOutputReference
description_input: str
- Type: str
disk_consistency_group_policy_input: ComputeResourcePolicyDiskConsistencyGroupPolicy
group_placement_policy_input: ComputeResourcePolicyGroupPlacementPolicy
id_input: str
- Type: str
instance_schedule_policy_input: ComputeResourcePolicyInstanceSchedulePolicy
name_input: str
- Type: str
project_input: str
- Type: str
region_input: str
- Type: str
snapshot_schedule_policy_input: ComputeResourcePolicySnapshotSchedulePolicy
timeouts_input: typing.Union[IResolvable, ComputeResourcePolicyTimeouts]
- Type: typing.Union[cdktf.IResolvable, ComputeResourcePolicyTimeouts]
description: str
- Type: str
id: str
- Type: str
name: str
- Type: str
project: str
- Type: str
region: str
- Type: str
Name | Type | Description |
---|---|---|
tfResourceType |
str |
No description. |
tfResourceType: str
- Type: str
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
)
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. |
connection: typing.Union[SSHProvisionerConnection, WinrmProvisionerConnection]
- Type: typing.Union[cdktf.SSHProvisionerConnection, cdktf.WinrmProvisionerConnection]
count: typing.Union[typing.Union[int, float], TerraformCount]
- Type: typing.Union[typing.Union[int, float], cdktf.TerraformCount]
depends_on: typing.List[ITerraformDependable]
- Type: typing.List[cdktf.ITerraformDependable]
for_each: ITerraformIterator
- Type: cdktf.ITerraformIterator
lifecycle: TerraformResourceLifecycle
- Type: cdktf.TerraformResourceLifecycle
provider: TerraformProvider
- Type: cdktf.TerraformProvider
provisioners: typing.List[typing.Union[FileProvisioner, LocalExecProvisioner, RemoteExecProvisioner]]
- Type: typing.List[typing.Union[cdktf.FileProvisioner, cdktf.LocalExecProvisioner, cdktf.RemoteExecProvisioner]]
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}
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_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_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}
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_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}
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}.
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_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}
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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicyDiskConsistencyGroupPolicy(
enabled: typing.Union[bool, IResolvable]
)
Name | Type | Description |
---|---|---|
enabled |
typing.Union[bool, cdktf.IResolvable] |
Enable disk consistency on the resource policy. |
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}
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
)
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_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}
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_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}
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
)
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_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_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_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_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_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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule(
schedule: str
)
Name | Type | Description |
---|---|---|
schedule |
str |
Specifies the frequency for the operation, using the unix-cron format. |
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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule(
schedule: str
)
Name | Type | Description |
---|---|---|
schedule |
str |
Specifies the frequency for the operation, using the unix-cron format. |
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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicy(
schedule: ComputeResourcePolicySnapshotSchedulePolicySchedule,
retention_policy: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy = None,
snapshot_properties: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties = None
)
Name | Type | Description |
---|---|---|
schedule |
ComputeResourcePolicySnapshotSchedulePolicySchedule |
schedule block. |
retention_policy |
ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy |
retention_policy block. |
snapshot_properties |
ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties |
snapshot_properties block. |
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_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_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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy(
max_retention_days: typing.Union[int, float],
on_source_disk_delete: str = None
)
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_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_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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicySchedule(
daily_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule = None,
hourly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule = None,
weekly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule = None
)
Name | Type | Description |
---|---|---|
daily_schedule |
ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule |
daily_schedule block. |
hourly_schedule |
ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule |
hourly_schedule block. |
weekly_schedule |
ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule |
weekly_schedule block. |
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_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_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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule(
days_in_cycle: typing.Union[int, float],
start_time: str
)
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_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_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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule(
hours_in_cycle: typing.Union[int, float],
start_time: str
)
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_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_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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule(
day_of_weeks: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
)
Name | Type | Description |
---|---|---|
day_of_weeks |
typing.Union[cdktf.IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]] |
day_of_weeks block. |
day_of_weeks: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
- Type: typing.Union[cdktf.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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks(
day: str,
start_time: str
)
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. |
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_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}
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
)
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_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_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}
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_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}
from cdktf_cdktf_provider_google import compute_resource_policy
computeResourcePolicy.ComputeResourcePolicyTimeouts(
create: str = None,
delete: str = None,
update: str = None
)
Name | Type | Description |
---|---|---|
create |
str |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.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}. |
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}.
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}.
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}.
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
enabled_input |
typing.Union[bool, cdktf.IResolvable] |
No description. |
enabled |
typing.Union[bool, cdktf.IResolvable] |
No description. |
internal_value |
ComputeResourcePolicyDiskConsistencyGroupPolicy |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
enabled_input: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, cdktf.IResolvable]
enabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, cdktf.IResolvable]
internal_value: ComputeResourcePolicyDiskConsistencyGroupPolicy
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_availability_domain_count |
No description. |
reset_collocation |
No description. |
reset_vm_count |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_availability_domain_count() -> None
def reset_collocation() -> None
def reset_vm_count() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
availability_domain_count_input: typing.Union[int, float]
- Type: typing.Union[int, float]
collocation_input: str
- Type: str
vm_count_input: typing.Union[int, float]
- Type: typing.Union[int, float]
availability_domain_count: typing.Union[int, float]
- Type: typing.Union[int, float]
collocation: str
- Type: str
vm_count: typing.Union[int, float]
- Type: typing.Union[int, float]
internal_value: ComputeResourcePolicyGroupPlacementPolicy
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
put_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. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def put_vm_start_schedule(
schedule: str
) -> None
- 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}
def put_vm_stop_schedule(
schedule: str
) -> None
- 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}
def reset_expiration_time() -> None
def reset_start_time() -> None
def reset_vm_start_schedule() -> None
def reset_vm_stop_schedule() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
vm_start_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStartScheduleOutputReference
vm_stop_schedule: ComputeResourcePolicyInstanceSchedulePolicyVmStopScheduleOutputReference
expiration_time_input: str
- Type: str
start_time_input: str
- Type: str
time_zone_input: str
- Type: str
vm_start_schedule_input: ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule
vm_stop_schedule_input: ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule
expiration_time: str
- Type: str
start_time: str
- Type: str
time_zone: str
- Type: str
internal_value: ComputeResourcePolicyInstanceSchedulePolicy
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
schedule_input |
str |
No description. |
schedule |
str |
No description. |
internal_value |
ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
schedule_input: str
- Type: str
schedule: str
- Type: str
internal_value: ComputeResourcePolicyInstanceSchedulePolicyVmStartSchedule
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
schedule_input |
str |
No description. |
schedule |
str |
No description. |
internal_value |
ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
schedule_input: str
- Type: str
schedule: str
- Type: str
internal_value: ComputeResourcePolicyInstanceSchedulePolicyVmStopSchedule
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
put_retention_policy |
No description. |
put_schedule |
No description. |
put_snapshot_properties |
No description. |
reset_retention_policy |
No description. |
reset_snapshot_properties |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def put_retention_policy(
max_retention_days: typing.Union[int, float],
on_source_disk_delete: str = None
) -> None
- 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}
- 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}
def put_schedule(
daily_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule = None,
hourly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule = None,
weekly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule = None
) -> None
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_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_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}
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
- 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}
- 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}
- 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}
- 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}
def reset_retention_policy() -> None
def reset_snapshot_properties() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
retention_policy: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicyOutputReference
schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleOutputReference
snapshot_properties: ComputeResourcePolicySnapshotSchedulePolicySnapshotPropertiesOutputReference
retention_policy_input: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy
schedule_input: ComputeResourcePolicySnapshotSchedulePolicySchedule
snapshot_properties_input: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties
internal_value: ComputeResourcePolicySnapshotSchedulePolicy
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_on_source_disk_delete |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_on_source_disk_delete() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
max_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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
max_retention_days_input: typing.Union[int, float]
- Type: typing.Union[int, float]
on_source_disk_delete_input: str
- Type: str
max_retention_days: typing.Union[int, float]
- Type: typing.Union[int, float]
on_source_disk_delete: str
- Type: str
internal_value: ComputeResourcePolicySnapshotSchedulePolicyRetentionPolicy
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
days_in_cycle_input: typing.Union[int, float]
- Type: typing.Union[int, float]
start_time_input: str
- Type: str
days_in_cycle: typing.Union[int, float]
- Type: typing.Union[int, float]
start_time: str
- Type: str
internal_value: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
hours_in_cycle_input: typing.Union[int, float]
- Type: typing.Union[int, float]
start_time_input: str
- Type: str
hours_in_cycle: typing.Union[int, float]
- Type: typing.Union[int, float]
start_time: str
- Type: str
internal_value: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
put_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. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def put_daily_schedule(
days_in_cycle: typing.Union[int, float],
start_time: str
) -> None
- 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}
- 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}
def put_hourly_schedule(
hours_in_cycle: typing.Union[int, float],
start_time: str
) -> None
- 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}
- 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}
def put_weekly_schedule(
day_of_weeks: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
) -> None
- Type: typing.Union[cdktf.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}
def reset_daily_schedule() -> None
def reset_hourly_schedule() -> None
def reset_weekly_schedule() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
daily_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleOutputReference
hourly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlyScheduleOutputReference
weekly_schedule: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleOutputReference
daily_schedule_input: ComputeResourcePolicySnapshotSchedulePolicyScheduleDailySchedule
hourly_schedule_input: ComputeResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule
weekly_schedule_input: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule
internal_value: ComputeResourcePolicySnapshotSchedulePolicySchedule
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). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
all_with_map_key |
Creating an iterator for this complex list. |
compute_fqn |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
get |
No description. |
def all_with_map_key(
map_key_attribute_name: str
) -> DynamicListTerraformIterator
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
- Type: str
def compute_fqn() -> str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def get(
index: typing.Union[int, float]
) -> ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksOutputReference
- Type: typing.Union[int, float]
the index of the item to return.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
internal_value |
typing.Union[cdktf.IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]] |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
internal_value: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
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). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
- Type: typing.Union[int, float]
the index of this item in the list.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
day_input: str
- Type: str
start_time_input: str
- Type: str
day: str
- Type: str
start_time: str
- Type: str
internal_value: typing.Union[IResolvable, ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]
- Type: typing.Union[cdktf.IResolvable, ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
put_day_of_weeks |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def put_day_of_weeks(
value: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
) -> None
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
day_of_weeks: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksList
day_of_weeks_input: typing.Union[IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
- Type: typing.Union[cdktf.IResolvable, typing.List[ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks]]
internal_value: ComputeResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_chain_name |
No description. |
reset_guest_flush |
No description. |
reset_labels |
No description. |
reset_storage_locations |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_chain_name() -> None
def reset_guest_flush() -> None
def reset_labels() -> None
def reset_storage_locations() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
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_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
chain_name_input: str
- Type: str
guest_flush_input: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, cdktf.IResolvable]
labels_input: typing.Mapping[str]
- Type: typing.Mapping[str]
storage_locations_input: typing.List[str]
- Type: typing.List[str]
chain_name: str
- Type: str
guest_flush: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, cdktf.IResolvable]
labels: typing.Mapping[str]
- Type: typing.Mapping[str]
storage_locations: typing.List[str]
- Type: typing.List[str]
internal_value: ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties
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. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: str
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
compute_fqn |
No description. |
get_any_map_attribute |
No description. |
get_boolean_attribute |
No description. |
get_boolean_map_attribute |
No description. |
get_list_attribute |
No description. |
get_number_attribute |
No description. |
get_number_list_attribute |
No description. |
get_number_map_attribute |
No description. |
get_string_attribute |
No description. |
get_string_map_attribute |
No description. |
interpolation_for_attribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
to_string |
Return a string representation of this resolvable object. |
reset_create |
No description. |
reset_delete |
No description. |
reset_update |
No description. |
def compute_fqn() -> str
def get_any_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Any]
- Type: str
def get_boolean_attribute(
terraform_attribute: str
) -> IResolvable
- Type: str
def get_boolean_map_attribute(
terraform_attribute: str
) -> typing.Mapping[bool]
- Type: str
def get_list_attribute(
terraform_attribute: str
) -> typing.List[str]
- Type: str
def get_number_attribute(
terraform_attribute: str
) -> typing.Union[int, float]
- Type: str
def get_number_list_attribute(
terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
- Type: str
def get_number_map_attribute(
terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
- Type: str
def get_string_attribute(
terraform_attribute: str
) -> str
- Type: str
def get_string_map_attribute(
terraform_attribute: str
) -> typing.Mapping[str]
- Type: str
def interpolation_for_attribute(
property: str
) -> IResolvable
- Type: str
def resolve(
_context: IResolveContext
) -> typing.Any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
def to_string() -> str
Return a string representation of this resolvable object.
Returns a reversible string representation.
def reset_create() -> None
def reset_delete() -> None
def reset_update() -> None
Name | Type | Description |
---|---|---|
creation_stack |
typing.List[str] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
str |
No description. |
create_input |
str |
No description. |
delete_input |
str |
No description. |
update_input |
str |
No description. |
create |
str |
No description. |
delete |
str |
No description. |
update |
str |
No description. |
internal_value |
typing.Union[cdktf.IResolvable, ComputeResourcePolicyTimeouts] |
No description. |
creation_stack: typing.List[str]
- Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
fqn: str
- Type: str
create_input: str
- Type: str
delete_input: str
- Type: str
update_input: str
- Type: str
create: str
- Type: str
delete: str
- Type: str
update: str
- Type: str
internal_value: typing.Union[IResolvable, ComputeResourcePolicyTimeouts]
- Type: typing.Union[cdktf.IResolvable, ComputeResourcePolicyTimeouts]