This construct allows you to IaC your service quotas
Project description
@reapit-cdk/service-quotas
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for reapit-cdk.service-quotas-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e39fe31b2c695612cffa84c85a4bd8ce1e87cf3128db1212abd73c2d7e2cc0a |
|
MD5 | f798a96870311927bfbe7de0729bc63e |
|
BLAKE2b-256 | 137a1283a5a96df1736f0c69d796a1e181da400a1f94d6fd2f73dd8481749a86 |
Close
Hashes for reapit_cdk.service_quotas-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc49f64422af07f8433e3e2e944eeae6e599a638cce2e1892e3de280014da951 |
|
MD5 | ea1b762f0c3987f21a5c98ba989d7d37 |
|
BLAKE2b-256 | 6ae190e0964cb7ab0b4338171b589faceb3f31851048431d83051b88d5ba1bb7 |