Skip to content

Commit

Permalink
Fix comment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
robperc committed Jul 18, 2017
1 parent 0c27d6f commit 3aa7fe4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ def lambda_handler(event, context):

def get_username_from_key(access_key_id):
""" Retrieves username last associated with specified IAM access key ID.
Args:
access_key_id (string): IAM access key ID to lookup user with.
Returns:
(string)
Username last associated with specified IAM access key ID.
"""
try:
response = iam.get_access_key_last_used(
Expand All @@ -40,12 +43,15 @@ def get_username_from_key(access_key_id):


def delete_exposed_key_pair(username, access_key_id):
""" Deletes IAM access key pair for specified user identified by access key ID.
""" Deletes IAM access key pair identified by access key ID for specified user.
Args:
username (string): Username of IAM user to delete key pair for.
access_key_id (string): IAM access key ID to identify key pair to delete.
Returns:
(None)
"""
try:
iam.delete_access_key(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def generate_summary_str(summary_items):


def publish_msg(subject, message):
""" Publishes message to SNS topic
""" Publishes message to SNS topic.
Args:
subject (string): Subject of message to be published to topic
message (string): Content of message to be published to topic
subject (string): Subject of message to be published to topic.
message (string): Content of message to be published to topic.
Returns:
(None)
Expand Down

0 comments on commit 3aa7fe4

Please sign in to comment.