ServiceQuota
Manages an individual Service Quota.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.ServiceQuotas.ServiceQuota("example", new Aws.ServiceQuotas.ServiceQuotaArgs
{
QuotaCode = "L-F678F1CE",
ServiceCode = "vpc",
Value = 75,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/servicequotas"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicequotas.NewServiceQuota(ctx, "example", &servicequotas.ServiceQuotaArgs{
QuotaCode: pulumi.String("L-F678F1CE"),
ServiceCode: pulumi.String("vpc"),
Value: pulumi.Float64(75),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.servicequotas.ServiceQuota("example",
quota_code="L-F678F1CE",
service_code="vpc",
value=75)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.servicequotas.ServiceQuota("example", {
quotaCode: "L-F678F1CE",
serviceCode: "vpc",
value: 75,
});Create a ServiceQuota Resource
new ServiceQuota(name: string, args: ServiceQuotaArgs, opts?: CustomResourceOptions);def ServiceQuota(resource_name, opts=None, quota_code=None, service_code=None, value=None, __props__=None);func NewServiceQuota(ctx *Context, name string, args ServiceQuotaArgs, opts ...ResourceOption) (*ServiceQuota, error)public ServiceQuota(string name, ServiceQuotaArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServiceQuotaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceQuotaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceQuotaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ServiceQuota Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServiceQuota resource accepts the following input properties:
- Quota
Code string 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.- Service
Code string Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- Value double
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.
- Quota
Code string 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.- Service
Code string Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- Value float64
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.
- quota
Code string 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.- service
Code string Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- value number
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.
- quota_
code str 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.- service_
code str Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- value float
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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceQuota resource produces the following output properties:
- Adjustable bool
Whether the service quota can be increased.
- Arn string
Amazon Resource Name (ARN) of the service quota.
- Default
Value double Default value of the service quota.
- Id string
- The provider-assigned unique ID for this managed resource.
- Quota
Name string Name of the quota.
- Request
Id string - Request
Status string - Service
Name string Name of the service.
- Adjustable bool
Whether the service quota can be increased.
- Arn string
Amazon Resource Name (ARN) of the service quota.
- Default
Value float64 Default value of the service quota.
- Id string
- The provider-assigned unique ID for this managed resource.
- Quota
Name string Name of the quota.
- Request
Id string - Request
Status string - Service
Name string Name of the service.
- adjustable boolean
Whether the service quota can be increased.
- arn string
Amazon Resource Name (ARN) of the service quota.
- default
Value number Default value of the service quota.
- id string
- The provider-assigned unique ID for this managed resource.
- quota
Name string Name of the quota.
- request
Id string - request
Status string - service
Name string Name of the service.
- adjustable bool
Whether the service quota can be increased.
- arn str
Amazon Resource Name (ARN) of the service quota.
- default_
value float Default value of the service quota.
- id str
- The provider-assigned unique ID for this managed resource.
- quota_
name str Name of the quota.
- request_
id str - request_
status str - service_
name str Name of the service.
Look up an Existing ServiceQuota Resource
Get an existing ServiceQuota resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceQuotaState, opts?: CustomResourceOptions): ServiceQuotastatic get(resource_name, id, opts=None, adjustable=None, arn=None, default_value=None, quota_code=None, quota_name=None, request_id=None, request_status=None, service_code=None, service_name=None, value=None, __props__=None);func GetServiceQuota(ctx *Context, name string, id IDInput, state *ServiceQuotaState, opts ...ResourceOption) (*ServiceQuota, error)public static ServiceQuota Get(string name, Input<string> id, ServiceQuotaState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Adjustable bool
Whether the service quota can be increased.
- Arn string
Amazon Resource Name (ARN) of the service quota.
- Default
Value double Default value of the service quota.
- Quota
Code string 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.- Quota
Name string Name of the quota.
- Request
Id string - Request
Status string - Service
Code string Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- Service
Name string Name of the service.
- Value double
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.
- Adjustable bool
Whether the service quota can be increased.
- Arn string
Amazon Resource Name (ARN) of the service quota.
- Default
Value float64 Default value of the service quota.
- Quota
Code string 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.- Quota
Name string Name of the quota.
- Request
Id string - Request
Status string - Service
Code string Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- Service
Name string Name of the service.
- Value float64
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.
- adjustable boolean
Whether the service quota can be increased.
- arn string
Amazon Resource Name (ARN) of the service quota.
- default
Value number Default value of the service quota.
- quota
Code string 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.- quota
Name string Name of the quota.
- request
Id string - request
Status string - service
Code string Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- service
Name string Name of the service.
- value number
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.
- adjustable bool
Whether the service quota can be increased.
- arn str
Amazon Resource Name (ARN) of the service quota.
- default_
value float Default value of the service quota.
- quota_
code str 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.- quota_
name str Name of the quota.
- request_
id str - request_
status str - service_
code str Code of the service to track. For example:
vpc. Available values can be found with the AWS CLI service-quotas list-services command.- service_
name str Name of the service.
- value float
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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.