Skip to content

🎥 Make videos programmatically with React

service quota client

Jonny Burger6eaa038f7897
diff --git a/packages/lambda/src/cli/commands/quotas/increase.ts b/packages/lambda/src/cli/commands/quotas/increase.ts
index 9627df3003..be84714c39 100644
--- a/packages/lambda/src/cli/commands/quotas/increase.ts
+++ b/packages/lambda/src/cli/commands/quotas/increase.ts
@@ -20,19 +20,19 @@ export const quotasIncreaseCommand = async () => {
const [concurrencyLimit, defaultConcurrencyLimit, changes] =
await Promise.all([
- getServiceQuotasClient(region, null).send(
+ getServiceQuotasClient(region).send(
new GetServiceQuotaCommand({
QuotaCode: LAMBDA_CONCURRENCY_LIMIT_QUOTA,
ServiceCode: 'lambda',
})
),
- getServiceQuotasClient(region, null).send(
+ getServiceQuotasClient(region).send(
new GetAWSDefaultServiceQuotaCommand({
QuotaCode: LAMBDA_CONCURRENCY_LIMIT_QUOTA,
ServiceCode: 'lambda',
})
),
- getServiceQuotasClient(region, null).send(
+ getServiceQuotasClient(region).send(
new ListRequestedServiceQuotaChangeHistoryByQuotaCommand({
QuotaCode: LAMBDA_CONCURRENCY_LIMIT_QUOTA,
ServiceCode: 'lambda',
@@ -71,7 +71,7 @@ export const quotasIncreaseCommand = async () => {
allowForceFlag: true,
delMessage: 'Send? (Y/n)',
});
- await getServiceQuotasClient(region, null).send(
+ await getServiceQuotasClient(region).send(
new RequestServiceQuotaIncreaseCommand({
QuotaCode: LAMBDA_CONCURRENCY_LIMIT_QUOTA,
DesiredValue: newLimit,
diff --git a/packages/lambda/src/cli/commands/quotas/list.ts b/packages/lambda/src/cli/commands/quotas/list.ts
index 83ea2a3aeb..30ffff52a5 100644
--- a/packages/lambda/src/cli/commands/quotas/list.ts
+++ b/packages/lambda/src/cli/commands/quotas/list.ts
@@ -21,25 +21,25 @@ export const quotasListCommand = async () => {
Log.info();
const [concurrencyLimit, defaultConcurrencyLimit, burstLimit, changes] =
await Promise.all([
- getServiceQuotasClient(region, null).send(
+ getServiceQuotasClient(region).send(
new GetServiceQuotaCommand({
QuotaCode: LAMBDA_CONCURRENCY_LIMIT_QUOTA,
ServiceCode: 'lambda',
})
),
- getServiceQuotasClient(region, null).send(
+ getServiceQuotasClient(region).send(
new GetAWSDefaultServiceQuotaCommand({
QuotaCode: LAMBDA_CONCURRENCY_LIMIT_QUOTA,
ServiceCode: 'lambda',
})
),
- getServiceQuotasClient(region, null).send(
+ getServiceQuotasClient(region).send(
new GetAWSDefaultServiceQuotaCommand({
QuotaCode: LAMBDA_BURST_LIMIT_QUOTA,
ServiceCode: 'lambda',
})
),
- getServiceQuotasClient(region, null).send(
+ getServiceQuotasClient(region).send(
new ListRequestedServiceQuotaChangeHistoryByQuotaCommand({
QuotaCode: LAMBDA_CONCURRENCY_LIMIT_QUOTA,
ServiceCode: 'lambda',
diff --git a/packages/lambda/src/shared/aws-clients.ts b/packages/lambda/src/shared/aws-clients.ts
index 59d0faec89..5a07bb42ba 100644
--- a/packages/lambda/src/shared/aws-clients.ts
+++ b/packages/lambda/src/shared/aws-clients.ts
@@ -179,12 +179,11 @@ export const getIamClient = (region: AwsRegion): IAMClient => {
};
export const getServiceQuotasClient = (
- region: AwsRegion,
- customCredentials: CustomCredentials | null
+ region: AwsRegion
): ServiceQuotasClient => {
return getServiceClient({
region,
service: 'servicequotas',
- customCredentials,
+ customCredentials: null,
});
};