ServiceArgs class
The set of arguments for Service. The set of arguments for Service.
Constructors
-
ServiceArgs({Input<
bool?> ? autogenerateRevisionName, Input<String?> ? deletionPolicy, required Input<String> location, Input<ServiceMetadata?> ? metadata, Input<String?> ? name, Input<String?> ? project, Input<ServiceTemplate?> ? template, Input<List< ? traffics})ServiceTraffic> ?> -
Creates a new ServiceArgs.
autogenerateRevisionNameIf set totrue, the revision name (template.metadata.name) will be omitted anddeletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.locationThe location of the cloud run instance. eg us-central1metadataMetadata associated with this Service, including name, namespace, labels,nameName must be unique within a Google Cloud project and region.projectThe ID of the project in which the resource belongs.templatetemplate holds the latest specification for the Revision totrafficsTraffic specifies how to distribute traffic over a collection of Knative Revisionsconst -
ServiceArgs.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 totruewhiletemplate.metadata.nameis also set. (For legacy support, iftemplate.metadata.nameis 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
-
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