localstack/aws/api/iam/__init__.py
File __init__.py
has 2845 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import Dict, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
IamApi
has 159 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class IamApi:
service = "iam"
version = "2010-05-08"
@handler("AddClientIDToOpenIDConnectProvider")
Function simulate_principal_policy
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def simulate_principal_policy(
Function simulate_custom_policy
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def simulate_custom_policy(
Function update_account_password_policy
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_account_password_policy(
Function create_role
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_role(
Function list_entities_for_policy
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_entities_for_policy(
Function list_policies
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_policies(
Function upload_server_certificate
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def upload_server_certificate(
Function create_policy
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_policy(
Function get_service_last_accessed_details_with_entities
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_service_last_accessed_details_with_entities(
Function list_attached_role_policies
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_attached_role_policies(
Function create_user
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_user(
Function list_attached_group_policies
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_attached_group_policies(
Function enable_mfa_device
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def enable_mfa_device(
Function create_open_id_connect_provider
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_open_id_connect_provider(
Function get_organizations_access_report
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_organizations_access_report(
Function list_attached_user_policies
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_attached_user_policies(
Function resync_mfa_device
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def resync_mfa_device(
Function get_ssh_public_key
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_ssh_public_key(
Function list_groups
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_groups(
Function list_policies_granting_service_access
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_policies_granting_service_access(
Function list_open_id_connect_provider_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_open_id_connect_provider_tags(
Function list_policy_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_policy_tags(
Function list_access_keys
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_access_keys(
Function create_login_profile
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_login_profile(
Function list_instance_profiles
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_instance_profiles(
Function create_policy_version
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_policy_version(
Function create_saml_provider
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_saml_provider(
Function get_service_last_accessed_details
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_service_last_accessed_details(
Function list_mfa_devices
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_mfa_devices(
Function list_policy_versions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_policy_versions(
Function list_mfa_device_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_mfa_device_tags(
Function create_instance_profile
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_instance_profile(
Function create_virtual_mfa_device
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_virtual_mfa_device(
Function get_account_authorization_details
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_account_authorization_details(
Function get_group
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_group(
Function create_service_linked_role
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_service_linked_role(
Function list_groups_for_user
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_groups_for_user(
Function list_instance_profiles_for_role
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_instance_profiles_for_role(
Function list_group_policies
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_group_policies(
Function list_instance_profile_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_instance_profile_tags(
Function list_saml_provider_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_saml_provider_tags(
Function update_signing_certificate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_signing_certificate(
Function list_user_policies
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_user_policies(
Function put_role_policy
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def put_role_policy(
Function update_access_key
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_access_key(
Function put_user_policy
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def put_user_policy(
Function list_role_policies
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_role_policies(
Function update_group
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_group(
Function update_server_certificate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_server_certificate(
Function update_ssh_public_key
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_ssh_public_key(
Function list_ssh_public_keys
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_ssh_public_keys(
Function put_group_policy
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def put_group_policy(
Function list_virtual_mfa_devices
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_virtual_mfa_devices(
Function list_roles
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_roles(
Function update_login_profile
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_login_profile(
Function list_server_certificates
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_server_certificates(
Function list_user_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_user_tags(
Function list_users
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_users(
Function update_role
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_role(
Function update_user
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_user(
Function list_role_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_role_tags(
Function list_server_certificate_tags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_server_certificate_tags(
Function list_signing_certificates
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def list_signing_certificates(
Function update_service_specific_credential
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_service_specific_credential(