
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning 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 127,055 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
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.