Boto3 resource association on creation

0

Hopefully a easy one and I'm just missing something.

I can create the resource using the following
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/greengrass.html#Greengrass.Client.create_resource_definition_version

So this creates my resource, but how do I have it also associate a lambda function with the resource with out manually going into the console and associate said resource with a lambda.

abrv but works fine

        res_def = rinse(self._gg.create_resource_definition(
            Name=self.name,
            InitialVersion={'Resources': res}
        ))
doop
asked 4 years ago170 views
1 Answer

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions