diff --git a/packages/@aws-cdk/cfnspec/spec-source/000_sam.spec_DeploymentPreference_patch.json b/packages/@aws-cdk/cfnspec/spec-source/000_sam.spec_DeploymentPreference_patch.json new file mode 100644 index 0000000000000..7d3e25840d14a --- /dev/null +++ b/packages/@aws-cdk/cfnspec/spec-source/000_sam.spec_DeploymentPreference_patch.json @@ -0,0 +1,57 @@ +{ + "PropertyTypes": { + "AWS::Serverless::Function.DeploymentPreference": { + "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, + "Types": [ + "AllAtOnce", + "Canary10Percent5Minutes", + "Canary10Percent10Minutes", + "Canary10Percent15Minutes", + "Canary10Percent30Minutes", + "Linear10PercentEvery1Minute", + "Linear10PercentEvery2Minutes", + "Linear10PercentEvery3Minutes", + "Linear10PercentEvery10Minutes" + ], + "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": { + "Properties": { + "DeploymentPreference": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "Type": "DeploymentPreference", + "Required": false, + "UpdateType": "Immutable" + } + } + } + } +}