ServiceState class

Input properties used for looking up and filtering Service resources.

Constructors

ServiceState({Input<bool?>? checkIfServiceHasUsageOnDestroy, Input<String?>? deletionPolicy, Input<bool?>? disableDependentServices, Input<bool?>? disableOnDestroy, Input<String?>? project, Input<String?>? service})
Creates a new ServiceState. checkIfServiceHasUsageOnDestroy Beta deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE". disableDependentServices If true, services that are enabled disableOnDestroy If true, disable the service when the project The project ID. If not provided, the provider project service The service to enable.
const
ServiceState.fromMap(Map<String, dynamic> map)
factory

Properties

checkIfServiceHasUsageOnDestroy → Input<bool?>?
Beta If true, the usage of the service to be disabled will be checked and an error will be returned if the service to be disabled has usage in last 30 days.
final
deletionPolicy → Input<String?>?
Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE". When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed. If disableOnDestroy is set to false, the service will still be enabled when the Terraform resource is destroyed even if the deletionPolicy field is set to "DELETE".
final
disableDependentServices → Input<bool?>?
If true, services that are enabled and which depend on this service should also be disabled when this service is destroyed. If false or unset, an error will be generated if any enabled services depend on this service when destroying it.
final
disableOnDestroy → Input<bool?>?
If true, disable the service when the Terraform resource is destroyed. If false or unset, the service will be left enabled when the Terraform resource is destroyed. It should generally only be true in configurations that manage the gcp.organizations.Project resource itself.
final
hashCode → int
The hash code for this object.
no setterinherited
project → Input<String?>?
The project ID. If not provided, the provider project is used.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
service → Input<String?>?
The service to enable.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited