in custom_resource/handler.py [0:0]
def create_configuration(event):
props = event['ResourceProperties']
return {
# required properties
'RuleName': props['Name'],
'Priority': int(props['Priority']),
'FixedRate': float(props['FixedRate']),
'ReservoirSize': int(props['ReservoirSize']),
# optional properties
'ResourceARN': props.get('ResourceARN', '*'),
'ServiceName': props.get('ServiceName', '*'),
'ServiceType': props.get('ServiceType', '*'),
'Host': props.get('Host', '*'),
'HTTPMethod': props.get('HTTPMethod', '*'),
'URLPath': props.get('URLPath', '*')
}