ServiceArgs constructor

const ServiceArgs({
  1. Input<Map<String, String>?>? annotations,
  2. Input<ServiceBinaryAuthorization?>? binaryAuthorization,
  3. Input<ServiceBuildConfig?>? buildConfig,
  4. Input<String?>? client,
  5. Input<String?>? clientVersion,
  6. Input<List<String>?>? customAudiences,
  7. Input<bool?>? defaultUriDisabled,
  8. Input<String?>? deletionPolicy,
  9. Input<bool?>? deletionProtection,
  10. Input<String?>? description,
  11. Input<bool?>? iapEnabled,
  12. Input<String?>? ingress,
  13. Input<bool?>? invokerIamDisabled,
  14. Input<Map<String, String>?>? labels,
  15. Input<String?>? launchStage,
  16. required Input<String> location,
  17. Input<ServiceMultiRegionSettings?>? multiRegionSettings,
  18. Input<String?>? name,
  19. Input<String?>? project,
  20. Input<ServiceScaling?>? scaling,
  21. Input<Map<String, String>?>? tags,
  22. required Input<ServiceTemplate> template,
  23. Input<List<ServiceTraffic>?>? traffics,
})

Creates a new ServiceArgs. annotations Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. binaryAuthorization Settings for the Binary Authorization feature. buildConfig Configuration for building a Cloud Run function. client Arbitrary identifier for the API client. clientVersion Arbitrary version identifier for the API client. customAudiences One or more custom audiences that you want this service to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests. defaultUriDisabled Disables public resolution of the default URI of this service. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. deletionProtection Whether Terraform will be prevented from destroying the service. Defaults to true. description User-provided description of the Service. This field currently has a 512-character limit. iapEnabled Used to enable/disable IAP for the cloud-run service. ingress Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. invokerIamDisabled Disables IAM permission check for run.routes.invoke for callers of this service. For more information, visit https://cloud.google.com/run/docs/securing/managing-access#invoker_check. labels Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, launchStage The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. location The location of the cloud run service multiRegionSettings Settings for creating a Multi-Region Service. Make sure to use region = 'global' when using them. For more information, visit https://cloud.google.com/run/docs/multiple-regions#deploy name Name of the Service. project The ID of the project in which the resource belongs. scaling Scaling settings that apply to the whole service tags A map of resource manager tags. template The template used to create revisions for this Service. traffics Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest Ready Revision.

Implementation

const ServiceArgs({
  this.annotations,
  this.binaryAuthorization,
  this.buildConfig,
  this.client,
  this.clientVersion,
  this.customAudiences,
  this.defaultUriDisabled,
  this.deletionPolicy,
  this.deletionProtection,
  this.description,
  this.iapEnabled,
  this.ingress,
  this.invokerIamDisabled,
  this.labels,
  this.launchStage,
  required this.location,
  this.multiRegionSettings,
  this.name,
  this.project,
  this.scaling,
  this.tags,
  required this.template,
  this.traffics,
});