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.
checkIfServiceHasUsageOnDestroyBetadeletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to "DELETE".disableDependentServicesIftrue, services that are enableddisableOnDestroyIftrue, disable the service when theprojectThe project ID. If not provided, the provider projectserviceThe 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
disableOnDestroyis set tofalse, the service will still be enabled when the Terraform resource is destroyed even if thedeletionPolicyfield 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. Iffalseor 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. Iffalseor unset, the service will be left enabled when the Terraform resource is destroyed. It should generally only betruein configurations that manage thegcp.organizations.Projectresource 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