in custom_resource/handler.py [0:0]
def create(event, context):
# Optionally return an ID that will be used for the resource PhysicalResourceId,
# if None is returned an ID will be generated. If a poll_create function is defined
# return value is placed into the poll event as event['CrHelperData']['PhysicalResourceId']
config = create_configuration(event)
config['Version'] = 1
response = client.create_sampling_rule(SamplingRule=config)
return setup_resource_properties_and_return_arn(response)