reapit-cdk.service-quotas 0.1.2

Creator: bradpython12

Last updated:

0 purchases

reapit-cdk.service-quotas 0.1.2 Image
reapit-cdk.service-quotas 0.1.2 Images

Languages

Categories

Add to Cart

Description:

reapitcdk.servicequotas 0.1.2

@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,
)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.