
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@aws-cdk/aws-service-spec
Advanced tools
This package contains a definition of the AWS Resources available in CloudFormation.
Sometimes it is necessary to patch in certain aspects of the CloudFormation schema, as they are not always properly configured for our use cases. As such, we'll need to create a patch.
You can create a patch by following these steps:
build/patches/service-patches/my-module.ts (or use one of the existing patch files if it is for
the same module).build/patches/service-patches/index.ts.import { forResource, fp, registerServicePatches, replaceDefinitionProperty } from './core';
import { patching } from '@aws-cdk/service-spec-importers';
const reason = patching.Reason.sourceIssue('Something in source was wrong'); // many root causes under `patching.Reason`
registerServicePatches(
forResource('AWS::Service::Construct', (lens) => {
replaceDefinitionProperty('SomeDefinition', 'SomeProperty', { type: 'integer' }, reason)(lens);
replaceDefinition(
'SomeDefinition',
{
type: 'string',
properties : {
X : {...},
Y : {...},
Z : {...},
},
},
reason,
)(lens);
addDefinitions({newDefinition: "something something"}, reason)(lens);
fp.removeFromReadOnlyProperties('AWS::Service::Construct', ['NotAReadOnlyProperty'], reason),
}),
);
If you do not see your patching changes reflected, double check that there is not an existing legacy patch that may be overwriting your changes.
FAQs
A specification of built-in AWS resources
The npm package @aws-cdk/aws-service-spec receives a total of 131,177 weekly downloads. As such, @aws-cdk/aws-service-spec popularity was classified as popular.
We found that @aws-cdk/aws-service-spec demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.