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.Sessionobject 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.Sessionobject 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.
Metadata
Release files for pyawsopstoolkit-insights 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyawsopstoolkit_insights-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyawsopstoolkit_insights-0.1.0-py3-none-any.whl |
Release files / pyawsopstoolkit_insights-0.1.0-py3-none-any.whl
| Download URL | pyawsopstoolkit_insights-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
827e77d661f18bf9f6f976db68130b7732c24a777869c22e4a8824a47fcc81e4
|
|
BLAKE2b-256 checksum How to use checksums |
59d2d8024dab4d0a8bfdab208c3e68a61e485631015f00d5404fb25b2137bbb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for pyawsopstoolkit-insights 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.