Using list of ResourceArns parameter in start_asset_bundle_export_job API

Hi, community members !

Because of my lack of Python knowledge, I ask community members a simple question.
I’m just wondering how to use a list of Arns parameters(which is ‘dashboards_arns’ in the code) in the start_asset_bundle_export_job API in the blue box.

Is there no way to use ‘dashbords_arns’ parameter in the code or do I have to copy all the arns into the blue box?

Please let me know if there good way to apply.


Best regards,
Boram.

1 Like

Hello @iamboram, there are 2 things I am noticing here that may resolve your issue. First of all, if the dashboards_arns variable is returning a list, than you do not need to put the variable in brackets within your start_asset_bundle_export_job function call. That would return a list of lists and would cause errors. I am also seeing a typo in one of your dashboard_arns variables, it is showing dashboard_anrs, so that could also be an issue here. Let me know if that helps! You should be able to enter the list of arns accordingly.

1 Like

Hello, @DylanM ! :grin:

It works after I delete both sides of the brackets!
Thank you so much!

Best regards,
Boram

1 Like

Hello @iamboram, I am glad that resolved the issue. Thank you for letting me know!