From f96c48750245679d2eec14d4d82ea54a45a5c15e Mon Sep 17 00:00:00 2001 From: Mike Cowgill Date: Wed, 12 Sep 2018 23:43:00 -0700 Subject: [PATCH] feat(cfnspec): adding DeploymentPreference Patch for SAM Spec (#681) (#681) --- ...0_sam.spec_DeploymentPreference_patch.json | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 packages/@aws-cdk/cfnspec/spec-source/100_sam.spec_DeploymentPreference_patch.json diff --git a/packages/@aws-cdk/cfnspec/spec-source/100_sam.spec_DeploymentPreference_patch.json b/packages/@aws-cdk/cfnspec/spec-source/100_sam.spec_DeploymentPreference_patch.json new file mode 100644 index 0000000000000..eff2f0fea57ca --- /dev/null +++ b/packages/@aws-cdk/cfnspec/spec-source/100_sam.spec_DeploymentPreference_patch.json @@ -0,0 +1,64 @@ +{ + "PropertyTypes": { + "patch": { + "description": "Add DeploymentPreference for SAM", + "operations": [ + { + "op": "add", + "path": "/AWS::Serverless::Function.DeploymentPreference", + "value": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/safe_lambda_deployments.rst", + "Properties": { + "Enabled": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "PrimitiveType": "Boolean", + "Required": true, + "UpdateType": "Immutable" + }, + "Type": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "Required": true, + "PrimitiveType": "String", + "UpdateType": "Immutable" + }, + "Alarms": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "PrimitiveItemType": "String", + "Type": "List", + "Required": false, + "UpdateType": "Immutable" + }, + "Hooks": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "PrimitiveItemType": "String", + "Type": "List", + "Required": false, + "UpdateType": "Immutable" + } + } + } + } + ] + } + }, + "ResourceTypes": { + "AWS::Serverless::Function": { + "patch": { + "description": "Add the deployment preference for SAM Resource", + "operations": [ + { + "op": "add", + "path": "/Properties/DeploymentPreference", + "value": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "Type": "DeploymentPreference", + "Required": false, + "UpdateType": "Immutable" + } + } + ] + } + } + } + +}