Skip to main content

This construct allows you to IaC your service quotas

Project description

@reapit-cdk/service-quotas

npm version npm downloads coverage: 0%25 Integ Tests: X

This construct allows you to IaC your service quotas

Package Installation:

yarn add --dev @reapit-cdk/service-quotas
# or
npm install @reapit-cdk/service-quotas --save-dev

Usage

import { Stack, App } from 'aws-cdk-lib'
import { AWSService, AmazonCloudFrontQuota, ServiceQuotas } from '@reapit-cdk/service-quotas'

const app = new App()
const stack = new Stack(app, 'stack-name')
const quotas = new ServiceQuotas(stack, 'service-quotas', {
  // Fail the stack if your requests aren't granted yet
  failIfNotGranted: true,
  // Make another request if an existing one is denied
  rerequestWhenDenied: true,
})

quotas.requestQuota(
  // region
  'us-east-1',
  // service (use the AWSService.${Service} helper or specify the e.g. 'cloudfront' string as any)
  AWSService.AMAZON_CLOUD_FRONT,
  // quota (use the ${Service}Quota e.g. AmazonCloudFrontQuota helper or specify the 'LL-' string as any)
  AmazonCloudFrontQuota.CACHE_BEHAVIORS_PER_DISTRIBUTION,
  // desired value
  100,
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reapit-cdk.service-quotas-0.1.2.tar.gz (718.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reapit_cdk.service_quotas-0.1.2-py3-none-any.whl (717.4 kB view details)

Uploaded Python 3

File details

Details for the file reapit-cdk.service-quotas-0.1.2.tar.gz.

File metadata

File hashes

Hashes for reapit-cdk.service-quotas-0.1.2.tar.gz
Algorithm Hash digest
SHA256 83779790919c0911551e98e1009c20fd2d34632530d64c293907fd472f0b5a39
MD5 aab2460e9c8fb3c40e6b6fb7cfd68031
BLAKE2b-256 dfe6d18413066f92a5c8ddff55f9d050d80f3174312a21c8d0151babab516c7e

See more details on using hashes here.

File details

Details for the file reapit_cdk.service_quotas-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for reapit_cdk.service_quotas-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c9cd96d0e1b808ca80ff5fff9f9cc7e24642de6bc2e2a2152371db80fe1c26c
MD5 600dfa78ded3b9336f3c3d28bcb95cce
BLAKE2b-256 67ec11171de5564b0febce877bc09f880722d26dfff4c7d179cf18f3c53973e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page