Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
Merge f6f21ae into cfdcb51
Browse files Browse the repository at this point in the history
  • Loading branch information
ktheory committed Oct 3, 2014
2 parents cfdcb51 + f6f21ae commit ce7c971
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 0 deletions.
133 changes: 133 additions & 0 deletions aws-sdk-core/apis/CloudFormation.resources.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"service": {
"hasMany": {
"Stacks": {
"request": { "operation": "DescribeStacks" },
"resource": {
"type":"Stack",
"identifiers": [
{ "target": "Name", "sourceType": "responsePath", "source":"Stacks[].StackName" }
]
}
}
},

"actions": {
"CreateStack": {
"request": { "operation": "CreateStack" },
"resource": {
"type": "Stack",
"identifiers": [
{"target": "Name", "sourceType": "requestParameter", "source":"StackName" }
]
}
}
}
},

"resources": {
"Stack": {
"shape":"Stack",
"identifiers": [ {"name":"Name"} ],
"load": {
"request": {
"operation": "DescribeStacks",
"params": [
{ "target":"StackName", "sourceType":"identifier", "source":"Name" }
]
},
"path": "Stacks[0]"
},
"actions": {

"Update": {
"request": {
"operation": "UpdateStack",
"params": [
{ "target":"StackName", "sourceType":"identifier", "source":"Name" }
]
}
},

"CancelUpdate": {
"request": {
"operation": "CancelUpdateStack",
"params": [
{ "target":"StackName", "sourceType":"identifier", "source":"Name" }
]
}
},

"Delete": {
"request": {
"operation": "DeleteStack",
"params": [
{ "target":"StackName", "sourceType":"identifier", "source":"Name" }
]
}
}
},
"hasMany": {
"StackResources": {
"request": {
"operation": "DescribeStackResources",
"params": [
{ "target":"StackName", "sourceType":"identifier", "source":"Name" }
]
},
"resource": {
"type": "StackResource",
"identifiers": [
{ "target":"LogicalId", "sourceType":"responsePath", "source":"StackResources[].LogicalResourceId" },
{ "target":"StackName", "sourceType":"responsePath", "source":"StackResources[].StackName" }
]
},
"path": "StackResources[]"
},

"Events": {
"request": {
"operation": "DescribeStackEvents",
"params": [
{ "target":"StackName", "sourceType":"identifier", "source":"Name" }
]
},
"resource": {
"type":"Event",
"identifiers": [
{ "target": "Id", "sourceType": "responsePath", "source": "StackEvents[].EventId"}
]
},
"path": "StackEvents[]"
}
},

"waiters": {
"Complete": {
"waiterName": "StackComplete",
"params": [
{ "target": "StackName", "sourceType": "identifier", "source": "Name" }
]
}
}
},
"StackResource" : {
"identifiers": [{"name": "LogicalId"}, {"name": "StackName"}],
"shape": "StackResource",
"load": {
"request": {
"operation": "DescribeStackResource",
"params": [
{ "target":"LogicalResourceId", "sourceType": "identifier", "source": "LogicalId" },
{ "target":"StackName", "sourceType": "identifier", "source": "StackName" }
]
},
"path": "StackResourceDetail"
}
},
"Event": {
"identifiers": [{"name": "Id"}],
"shape": "StackEvent"
}
}
}
27 changes: 27 additions & 0 deletions aws-sdk-core/apis/CloudFormation.waiters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"waiters": {
"__default__": {
"interval": 15,
"max_attempts": 80,
"acceptor_type": "output"
},

"__StackStatus": {
"operation": "DescribeStacks",
"acceptor_path": "Stacks[].StackStatus"
},

"StackComplete": {
"extends": "__StackStatus",
"success_value": [
"CREATE_COMPLETE",
"UPDATE_COMPLETE"
],

"failure_value": [
"CREATE_FAILED",
"UPDATE_FAILED"
]
}
}
}
2 changes: 2 additions & 0 deletions aws-sdk-core/lib/aws-sdk-core/cloudformation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
api: File.join(Aws::APIS_DIR, 'CloudFormation.api.json'),
docs: File.join(Aws::APIS_DIR, 'CloudFormation.docs.json'),
paginators: File.join(Aws::APIS_DIR, 'CloudFormation.paginators.json'),
resources: File.join(Aws::APIS_DIR, 'CloudFormation.resources.json'),
waiters: File.join(Aws::APIS_DIR, 'CloudFormation.waiters.json'),
})

0 comments on commit ce7c971

Please sign in to comment.