ServiceState class

Input properties used for looking up and filtering Service resources.

Constructors

ServiceState({Input<bool?>? autogenerateRevisionName, Input<String?>? deletionPolicy, Input<String?>? location, Input<ServiceMetadata?>? metadata, Input<String?>? name, Input<String?>? project, Input<List<ServiceStatus>?>? statuses, Input<ServiceTemplate?>? template, Input<List<ServiceTraffic>?>? traffics})
Creates a new ServiceState. autogenerateRevisionName If set to true, the revision name (template.metadata.name) will be omitted and deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. location The location of the cloud run instance. eg us-central1 metadata Metadata associated with this Service, including name, namespace, labels, name Name must be unique within a Google Cloud project and region. project The ID of the project in which the resource belongs. statuses (Output) template template holds the latest specification for the Revision to traffics Traffic specifies how to distribute traffic over a collection of Knative Revisions
const
ServiceState.fromMap(Map<String, dynamic> map)
factory

Properties

autogenerateRevisionName → Input<bool?>?
If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)
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.
final
hashCode → int
The hash code for this object.
no setterinherited
location → Input<String?>?
The location of the cloud run instance. eg us-central1
final
metadata → Input<ServiceMetadata?>?
Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
final
name → Input<String?>?
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
final
project → Input<String?>?
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statuses → Input<List<ServiceStatus>?>?
(Output) Status of the condition, one of True, False, Unknown.
final
template → Input<ServiceTemplate?>?
template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below.
final
traffics → Input<List<ServiceTraffic>?>?
Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
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