This package offers a comprehensive array of features designed to clean up and maintain hygiene within AWS (Amazon Web
Project description
pyawsopstoolkit_insights
The pyawsopstoolkit_insights package offers a comprehensive array of features designed to clean up and maintain hygiene within AWS (Amazon Web Services). It includes tools for identifying unused IAM roles, EC2 Security Groups, and more. Meticulously engineered, these features are finely tuned to meet the unique demands of the expansive AWS ecosystem, encompassing a diverse spectrum of aspects.
Getting Started
Ready to supercharge your AWS operations? Let's get started with pyawsopstoolkit_insights!
Installation
Install pyawsopstoolkit_insights via pip:
pip install pyawsopstoolkit_insights
Documentation
iam
This pyawsopstoolkit_insights.iam subpackage offers sophisticated insights specifically designed for AWS (Amazon Web Services) Identity and Access Management (IAM). It provides tools to analyze and manage IAM roles and users, ensuring efficient and secure AWS operations.
Role
The Role class represents insights related to IAM roles.
Constructors
Role(session: Session) -> None
: Initializes a new Role object with the provided session.
Methods
unused_roles(no_of_days: Optional[int] = 90, include_newly_created: Optional[bool] = False) -> list
: Returns a list of unused IAM roles based on the specified parameters.
Properties
session
: Anpyawsopstoolkit.session.Session
object providing access to AWS services.
Usage
from pyawsopstoolkit.session import Session
from pyawsopstoolkit_insights.iam import Role
# Create a session using the default profile
session = Session(profile_name='default')
# Initialize the IAM Role object
role_object = Role(session=session)
# Retrieve IAM roles unused for the last 90 days
unused_roles = role_object.unused_roles()
# Print the list of unused roles
print(unused_roles)
User
The User class represents insights related to IAM users.
Constructors
User(session: Session) -> None
: Initializes a new User object with the provided session
Methods
unused_users(no_of_days: Optional[int] = 90, include_newly_created: Optional[bool] = False) -> list
: Returns a list of unused IAM users based on the specified parameters.
Properties
session
: Anpyawsopstoolkit.session.Session
object providing access to AWS services.
Usage
from pyawsopstoolkit.session import Session
from pyawsopstoolkit_insights.iam import User
# Create a session using the default profile
session = Session(profile_name='default')
# Initialize the IAM User object
user_object = User(session=session)
# Retrieve IAM users unused for the last 90 days
unused_users = user_object.unused_users()
# Print the list of unused users
print(unused_users)
License
Please refer to the MIT License within the project for more information.
Contributing
We welcome contributions from the community! Whether you have ideas for new features, bug fixes, or enhancements, feel free to open an issue or submit a pull request on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pyawsopstoolkit_insights-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyawsopstoolkit_insights-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 827e77d661f18bf9f6f976db68130b7732c24a777869c22e4a8824a47fcc81e4 |
|
MD5 | acda8a997a5b991d3d1e8f962a38e0a1 |
|
BLAKE2b-256 | 59d2d8024dab4d0a8bfdab208c3e68a61e485631015f00d5404fb25b2137bbb4 |