Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add AWS Transfer Family parser models #5903

Closed
2 tasks done
leandrodamascena opened this issue Jan 23, 2025 · 2 comments · Fixed by #5906
Closed
2 tasks done

Feature request: Add AWS Transfer Family parser models #5903

leandrodamascena opened this issue Jan 23, 2025 · 2 comments · Fixed by #5906
Assignees
Labels
feature-request feature request parser Parser (Pydantic) utility

Comments

@leandrodamascena
Copy link
Contributor

Use case

I'm working on a project that integrates AWS Transfer Family with Custom Identity Providers like: Auth0, Okta and others. To make this possible, you should have a Lambda in the middle that will receive the event from Transfer Family and then you do whatever logic you need to authenticate or not the client.

Payload

The payload looks like this, the only thing special about this payload is because the password cannot be sent if the user is authenticating using public keys, so, must make it optional.

{
    "username": "value",
    "password": "value",
    "protocol": "SFTP",
    "serverId": "s-abcd123456",
    "sourceIp": "192.168.0.100"
}

Solution/User Experience

The experience should be something like this:

from aws_lambda_powertools.utilities.parser import parse
from aws_lambda_powertools.utilities.parser.models import AWSTransferFamily
from aws_lambda_powertools.utilities.typing import LambdaContext


def lambda_handler(event: AWSTransferFamily, context: LambdaContext) -> list:
    parsed_event = parse(model=TransferFamily, event=event)

    ...

Alternative solutions

Acknowledgment

@leandrodamascena leandrodamascena added feature-request feature request triage Pending triage from maintainers labels Jan 23, 2025
@leandrodamascena leandrodamascena moved this from Triage to Working on it in Powertools for AWS Lambda (Python) Jan 23, 2025
@leandrodamascena leandrodamascena added parser Parser (Pydantic) utility and removed triage Pending triage from maintainers labels Jan 23, 2025
@leandrodamascena leandrodamascena self-assigned this Jan 23, 2025
@leandrodamascena leandrodamascena linked a pull request Jan 23, 2025 that will close this issue
7 tasks
@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (Python) Jan 23, 2025
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Jan 23, 2025
@leandrodamascena leandrodamascena moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Jan 27, 2025
Copy link
Contributor

This is now released under 3.5.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request feature request parser Parser (Pydantic) utility
Projects
Status: Shipped
Development

Successfully merging a pull request may close this issue.

1 participant