Skip to content

Commit

Permalink
feat(cfnspec): adding DeploymentPreference Patch for SAM Spec (aws#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
moofish32 committed Sep 11, 2018
1 parent b222731 commit 7103062
Showing 1 changed file with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"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,
"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": {
"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"
}
}
]
}
}
}

}

0 comments on commit 7103062

Please sign in to comment.