How to use the cloudaux.aws.decorators.paginated function in cloudaux

To help you get started, we’ve selected a few cloudaux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Netflix-Skunkworks / cloudaux / cloudaux / aws / sns.py View on Github external
@paginated('PlatformApplications', request_pagination_marker="NextToken", response_pagination_marker="NextToken")
@rate_limited()
def list_platform_applications(client=None, **kwargs):
    return client.list_platform_applications(**kwargs)
github Netflix-Skunkworks / cloudaux / cloudaux / aws / iam.py View on Github external
@paginated('AttachedPolicies')
@rate_limited()
def list_attached_group_managed_policies(group_name, client=None, **kwargs):
    """Lists the attached IAM managed policies for a given IAM group."""
    return client.list_attached_group_policies(GroupName=group_name, **kwargs)
github Netflix-Skunkworks / cloudaux / cloudaux / aws / s3.py View on Github external
@paginated('AnalyticsConfigurationList', request_pagination_marker="ContinuationToken",
           response_pagination_marker="NextContinuationToken")
@rate_limited()
def list_bucket_analytics_configurations(client=None, **kwargs):
    """
    Bucket='string'
    """
    result = client.list_bucket_analytics_configurations(**kwargs)
    if not result.get("AnalyticsConfigurationList"):
        result.update({"AnalyticsConfigurationList": []})

    return result
github Netflix-Skunkworks / cloudaux / cloudaux / aws / iam.py View on Github external
@paginated('Certificates')
def _get_user_signing_certificates(user, client=None, **kwargs):
    return client.list_signing_certificates(
        UserName=user['UserName'],
        **kwargs)
github Netflix-Skunkworks / cloudaux / cloudaux / aws / s3.py View on Github external
@paginated('MetricsConfigurationList', request_pagination_marker="ContinuationToken",
           response_pagination_marker="NextContinuationToken")
@rate_limited()
def list_bucket_metrics_configurations(client=None, **kwargs):
    """
    Bucket='string'
    """
    result = client.list_bucket_metrics_configurations(**kwargs)
    if not result.get("MetricsConfigurationList"):
        result.update({"MetricsConfigurationList": []})

    return result
github Netflix-Skunkworks / cloudaux / cloudaux / aws / ec2.py View on Github external
@paginated('Vpcs', response_pagination_marker='NextToken')
@sts_conn('ec2')
@rate_limited()
def describe_vpc_classic_link_dns_support(**kwargs):
    return kwargs.pop('client').describe_vpc_classic_link_dns_support(**kwargs)
github Netflix-Skunkworks / cloudaux / cloudaux / aws / iam.py View on Github external
@paginated('GroupDetailList')
def _get_account_authorization_group_details(client=None, **kwargs):
    return client.get_account_authorization_details(
        Filter=['Group'],
        **kwargs
    )
github Netflix-Skunkworks / cloudaux / cloudaux / aws / sns.py View on Github external
@paginated('Subscriptions', request_pagination_marker="NextToken", response_pagination_marker="NextToken")
@rate_limited()
def list_subscriptions_by_topic(client=None, **kwargs):
    return client.list_subscriptions_by_topic(**kwargs)
github Netflix-Skunkworks / cloudaux / cloudaux / aws / iam.py View on Github external
@paginated('AttachedPolicies')
def _get_user_managed_policies(user, client=None, **kwargs):
    return client.list_attached_user_policies(
        UserName=user['UserName'],
        **kwargs
    )
github Netflix-Skunkworks / cloudaux / cloudaux / aws / iam.py View on Github external
@paginated('Policies')
@rate_limited()
def get_all_managed_policies(client=None, **kwargs):
    return client.list_policies(
        **kwargs
    )