Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@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)
@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)
@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
@paginated('Certificates')
def _get_user_signing_certificates(user, client=None, **kwargs):
return client.list_signing_certificates(
UserName=user['UserName'],
**kwargs)
@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
@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)
@paginated('GroupDetailList')
def _get_account_authorization_group_details(client=None, **kwargs):
return client.get_account_authorization_details(
Filter=['Group'],
**kwargs
)
@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)
@paginated('AttachedPolicies')
def _get_user_managed_policies(user, client=None, **kwargs):
return client.list_attached_user_policies(
UserName=user['UserName'],
**kwargs
)
@paginated('Policies')
@rate_limited()
def get_all_managed_policies(client=None, **kwargs):
return client.list_policies(
**kwargs
)