Package com.pulumi.aws.servicequotas
Class ServiceQuota
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.servicequotas.ServiceQuota
-
public class ServiceQuota extends com.pulumi.resources.CustomResourceManages an individual Service Quota. > **NOTE:** Global quotas apply to all AWS regions, but can only be accessed in `us-east-1` in the Commercial partition or `us-gov-west-1` in the GovCloud partition. In other regions, the AWS API will return the error `The request failed because the specified service does not exist.` ## Example Usage
## Import Using `pulumi import`, import `aws.servicequotas.ServiceQuota` using the service code and quota code, separated by a front slash (`/`). For example: > **NOTE:** This resource does not require explicit import and will assume management of an existing service quota on Pulumi resource creation. ```sh $ pulumi import aws:servicequotas/serviceQuota:ServiceQuota example vpc/L-F678F1CE ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.servicequotas.ServiceQuota; import com.pulumi.aws.servicequotas.ServiceQuotaArgs; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var example = new ServiceQuota("example", ServiceQuotaArgs.builder() .quotaCode("L-F678F1CE") .serviceCode("vpc") .value(75.0) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ServiceQuota(java.lang.String name)ServiceQuota(java.lang.String name, ServiceQuotaArgs args)ServiceQuota(java.lang.String name, ServiceQuotaArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Boolean>adjustable()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.Double>defaultValue()static ServiceQuotaget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ServiceQuotaState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>quotaCode()com.pulumi.core.Output<java.lang.String>quotaName()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>requestId()com.pulumi.core.Output<java.lang.String>requestStatus()com.pulumi.core.Output<java.lang.String>serviceCode()com.pulumi.core.Output<java.lang.String>serviceName()com.pulumi.core.Output<java.util.List<ServiceQuotaUsageMetric>>usageMetrics()com.pulumi.core.Output<java.lang.Double>value()
-
-
-
Constructor Detail
-
ServiceQuota
public ServiceQuota(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ServiceQuota
public ServiceQuota(java.lang.String name, ServiceQuotaArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ServiceQuota
public ServiceQuota(java.lang.String name, ServiceQuotaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
adjustable
public com.pulumi.core.Output<java.lang.Boolean> adjustable()
- Returns:
- Whether the service quota can be increased.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the service quota.
-
defaultValue
public com.pulumi.core.Output<java.lang.Double> defaultValue()
- Returns:
- Default value of the service quota.
-
quotaCode
public com.pulumi.core.Output<java.lang.String> quotaCode()
- Returns:
- Code of the service quota to track. For example: `L-F678F1CE`. Available values can be found with the [AWS CLI service-quotas list-service-quotas command](https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html).
-
quotaName
public com.pulumi.core.Output<java.lang.String> quotaName()
- Returns:
- Name of the quota.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
requestId
public com.pulumi.core.Output<java.lang.String> requestId()
-
requestStatus
public com.pulumi.core.Output<java.lang.String> requestStatus()
-
serviceCode
public com.pulumi.core.Output<java.lang.String> serviceCode()
- Returns:
- Code of the service to track. For example: `vpc`. Available values can be found with the [AWS CLI service-quotas list-services command](https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-services.html).
-
serviceName
public com.pulumi.core.Output<java.lang.String> serviceName()
- Returns:
- Name of the service.
-
usageMetrics
public com.pulumi.core.Output<java.util.List<ServiceQuotaUsageMetric>> usageMetrics()
- Returns:
- Information about the measurement.
-
value
public com.pulumi.core.Output<java.lang.Double> value()
- Returns:
- Float specifying the desired value for the service quota. If the desired value is higher than the current value, a quota increase request is submitted. When a known request is submitted and pending, the value reflects the desired value of the pending request.
-
get
public static ServiceQuota get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ServiceQuotaState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-