Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability for noecho override #38

Merged
merged 2 commits into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crhelper/resource_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class CfnResource(object):

def __init__(self, json_logging=False, log_level='DEBUG', boto_level='ERROR', polling_interval=2, sleep_on_delete=120):
self._sleep_on_delete= sleep_on_delete
self._sleep_on_delete = sleep_on_delete
self._create_func = None
self._update_func = None
self._delete_func = None
Expand All @@ -49,6 +49,7 @@ def __init__(self, json_logging=False, log_level='DEBUG', boto_level='ERROR', po
self.RequestId = ""
self.LogicalResourceId = ""
self.Data = {}
self.NoEcho = False
self._event = {}
self._context = None
self._response_url = ""
Expand Down Expand Up @@ -233,6 +234,7 @@ def _send(self, status=None, reason="", send_response=_send_response):
'LogicalResourceId': self.LogicalResourceId,
'Reason': str(self.Reason),
'Data': self.Data,
'NoEcho': self.NoEcho,
}
if status:
response_body.update({'Status': status, 'Reason': reason})
Expand Down
1 change: 1 addition & 0 deletions crhelper/resource_helper.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class CfnResource:
RequestId: str = ...
LogicalResourceId: str = ...
Data: Any = ...
NoEcho: bool = ...
def __init__(self, json_logging: bool = ..., log_level: str = ..., boto_level: str = ..., polling_interval: int = ..., sleep_on_delete: int = ...) -> None: ...
def __call__(self, event: Any, context: Any) -> None: ...
def generate_physical_id(self, event: Any): ...
Expand Down