import * as core from "@terrascript/core"; export interface DsServiceQuotaArgs { /** * (Optional) Quota code within the service. When configured, the data source directly looks up the ser * vice quota. Available values can be found with the [AWS CLI service-quotas list-service-quotas comma * nd](https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html). One o * f `quota_code` or `quota_name` must be specified. */ quotaCode?: string | core.StringOut; /** * (Optional) Quota name within the service. When configured, the data source searches through all serv * ice quotas to find the matching quota name. 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). One of `quota_name` or `quota_code` must be specified. */ quotaName?: string | core.StringOut; /** * (Required) Service code for the quota. Available values can be found with the [`aws_servicequotas_se * rvice` data source](/docs/providers/aws/d/servicequotas_service.html) or [AWS CLI service-quotas lis * t-services command](https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-services.ht * ml). */ serviceCode: string | core.StringOut; } export class DsServiceQuota extends core.Data { /** * Whether the service quota is adjustable. */ @core.attr(Boolean, { computed: true }) public adjustable!: boolean | core.BooleanOut; /** * Amazon Resource Name (ARN) of the service quota. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Default value of the service quota. */ @core.attr(Number, { computed: true }) public defaultValue!: number | core.NumberOut; /** * Whether the service quota is global for the AWS account. */ @core.attr(Boolean, { computed: true }) public globalQuota!: boolean | core.BooleanOut; /** * Amazon Resource Name (ARN) of the service quota. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Quota code within the service. When configured, the data source directly looks up the ser * vice quota. Available values can be found with the [AWS CLI service-quotas list-service-quotas comma * nd](https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html). One o * f `quota_code` or `quota_name` must be specified. */ @core.attr(String, { computed: true }) public quotaCode?: string | core.StringOut; /** * (Optional) Quota name within the service. When configured, the data source searches through all serv * ice quotas to find the matching quota name. 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). One of `quota_name` or `quota_code` must be specified. */ @core.attr(String, { computed: true }) public quotaName?: string | core.StringOut; /** * (Required) Service code for the quota. Available values can be found with the [`aws_servicequotas_se * rvice` data source](/docs/providers/aws/d/servicequotas_service.html) or [AWS CLI service-quotas lis * t-services command](https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-services.ht * ml). */ @core.attr(String) public serviceCode!: string | core.StringOut; /** * Name of the service. */ @core.attr(String, { computed: true }) public serviceName!: string | core.StringOut; /** * Current value of the service quota. */ @core.attr(Number, { computed: true }) public value!: number | core.NumberOut; constructor(name: string, args?: DsServiceQuotaArgs) { super(name, "aws_servicequotas_service_quota", args); } public override getNamespace(): string { return "aws_servicequotas"; } }