Best Python code snippet using localstack_python
sns.py
Source:sns.py  
...70    return client.list_endpoints_by_platform_application(**kwargs)71@sts_conn('sns')72@paginated('phoneNumbers', request_pagination_marker="nextToken", response_pagination_marker="nextToken")73@rate_limited()74def list_phone_numbers_opted_out(client=None, **kwargs):75    return client.list_phone_numbers_opted_out(**kwargs)76@sts_conn('sns')77@paginated('PlatformApplications', request_pagination_marker="NextToken", response_pagination_marker="NextToken")78@rate_limited()79def list_platform_applications(client=None, **kwargs):80    return client.list_platform_applications(**kwargs)81@sts_conn('sns')82@paginated('Subscriptions', request_pagination_marker="NextToken", response_pagination_marker="NextToken")83@rate_limited()84def list_subscriptions(client=None, **kwargs):85    return client.list_subscriptions(**kwargs)86@sts_conn('sns')87@paginated('Subscriptions', request_pagination_marker="NextToken", response_pagination_marker="NextToken")88@rate_limited()89def list_subscriptions_by_topic(client=None, **kwargs):...aws_sms_info.py
Source:aws_sms_info.py  
...76            if client.can_paginate('list_phone_numbers_opted_out'):77                paginator = client.get_paginator('list_phone_numbers_opted_out')78                return paginator.paginate(), True79            else:80                return client.list_phone_numbers_opted_out(), False81        elif module.params['list_sms_sandbox_phone_numbers']:82            if client.can_paginate('list_sms_sandbox_phone_numbers'):83                paginator = client.get_paginator('list_sms_sandbox_phone_numbers')84                return paginator.paginate(), True85            else:86                return client.list_sms_sandbox_phone_numbers(), False87        else:88            return None, False89    except (BotoCoreError, ClientError) as e:90        module.fail_json_aws(e, msg='Failed to fetch Amazon SNS SMS details')91def main():92    argument_spec = dict(93        get_sms_sandbox_account_status=dict(required=False, type=bool),94        list_phone_numbers_opted_out=dict(required=False, type=bool),...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
