This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.

serviceusage

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

class pulumi_gcp.serviceusage.ConsumerQuotaOverride(resource_name, opts=None, dimensions=None, force=None, limit=None, metric=None, override_value=None, project=None, service=None, __props__=None, __name__=None, __opts__=None)

A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.

To get more information about ConsumerQuotaOverride, see:

import pulumi
import pulumi_gcp as gcp

my_project = gcp.organizations.Project("myProject",
    project_id="quota",
    org_id="123456789")
override = gcp.serviceusage.ConsumerQuotaOverride("override",
    project=my_project.project_id,
    service="servicemanagement.googleapis.com",
    metric="servicemanagement.googleapis.com%2Fdefault_requests",
    limit="%2Fmin%2Fproject",
    override_value="95",
    force=True)
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • dimensions (pulumi.Input[dict]) – If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.

  • force (pulumi.Input[bool]) – If the new quota would decrease the existing quota by more than 10%, the request is rejected. If force is true, that safety check is ignored.

  • limit (pulumi.Input[str]) – The limit on the metric, e.g. /project/region.

  • metric (pulumi.Input[str]) – The metric that should be limited, e.g. compute.googleapis.com/cpus.

  • override_value (pulumi.Input[str]) – The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).

  • project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • service (pulumi.Input[str]) – The service that the metrics belong to, e.g. compute.googleapis.com.

dimensions: pulumi.Output[dict] = None

If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.

force: pulumi.Output[bool] = None

If the new quota would decrease the existing quota by more than 10%, the request is rejected. If force is true, that safety check is ignored.

limit: pulumi.Output[str] = None

The limit on the metric, e.g. /project/region.

metric: pulumi.Output[str] = None

The metric that should be limited, e.g. compute.googleapis.com/cpus.

name: pulumi.Output[str] = None

The server-generated name of the quota override.

override_value: pulumi.Output[str] = None

The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).

project: pulumi.Output[str] = None

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

service: pulumi.Output[str] = None

The service that the metrics belong to, e.g. compute.googleapis.com.

static get(resource_name, id, opts=None, dimensions=None, force=None, limit=None, metric=None, name=None, override_value=None, project=None, service=None)

Get an existing ConsumerQuotaOverride resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • dimensions (pulumi.Input[dict]) – If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.

  • force (pulumi.Input[bool]) – If the new quota would decrease the existing quota by more than 10%, the request is rejected. If force is true, that safety check is ignored.

  • limit (pulumi.Input[str]) – The limit on the metric, e.g. /project/region.

  • metric (pulumi.Input[str]) – The metric that should be limited, e.g. compute.googleapis.com/cpus.

  • name (pulumi.Input[str]) – The server-generated name of the quota override.

  • override_value (pulumi.Input[str]) – The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).

  • project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • service (pulumi.Input[str]) – The service that the metrics belong to, e.g. compute.googleapis.com.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str