Remove external AWS links and add doc if needed.

Closes bug #1252640

Change-Id: Ifae43c7ba457e8962360dd5b70cbb8b202365eee
This commit is contained in:
JUN JIE NAN 2013-11-19 16:02:07 +08:00
parent 155d94ef78
commit a927e99d1a
5 changed files with 13 additions and 16 deletions

View File

@ -88,8 +88,6 @@ class EC2Token(wsgi.Middleware):
- params['Signature'] == version 0,1,2,3
- params['X-Amz-Signature'] == version 4
- header 'Authorization' == version 4
see http://docs.aws.amazon.com/general/latest/gr/
sigv4-signed-request-examples.html
"""
sig = req.params.get('Signature') or req.params.get('X-Amz-Signature')
if sig is None and 'Authorization' in req.headers:

View File

@ -64,9 +64,6 @@ class HeatAPIException(webob.exc.HTTPError):
# Common Error Subclasses:
# As defined in http://docs.amazonwebservices.com/AWSCloudFormation/
# latest/APIReference/CommonErrors.html
class HeatIncompleteSignatureError(HeatAPIException):
'''

View File

@ -299,8 +299,7 @@ class Stack(collections.Mapping):
def validate(self):
'''
http://docs.amazonwebservices.com/AWSCloudFormation/latest/\
APIReference/API_ValidateTemplate.html
Validates the template.
'''
# TODO(sdake) Should return line number of invalid reference

View File

@ -721,8 +721,9 @@ class Resource(object):
def FnGetRefId(self):
'''
http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/\
intrinsic-function-reference-ref.html
For the intrinsic function Ref.
:results: the id or name of the resource.
'''
if self.resource_id is not None:
return unicode(self.resource_id)
@ -731,8 +732,10 @@ class Resource(object):
def FnGetAtt(self, key):
'''
http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/\
intrinsic-function-reference-getatt.html
For the intrinsic function Fn::GetAtt.
:param key: the attribute key.
:returns: the attribute value.
'''
try:
return self.attributes[key]
@ -742,8 +745,10 @@ class Resource(object):
def FnBase64(self, data):
'''
http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/\
intrinsic-function-reference-base64.html
For the instrinsic function Fn::Base64.
:param data: the input data.
:returns: the Base64 representation of the input data.
'''
return base64.b64encode(data)

View File

@ -72,9 +72,7 @@ class SignalResponder(resource.Resource):
This uses the created user for the credentials.
See http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/
restarter-signature.html
Also see boto/auth.py::QuerySignatureV2AuthHandler
See boto/auth.py::QuerySignatureV2AuthHandler
:param signal_type: either WAITCONDITION or SIGNAL.
"""