-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafael Marques
committed
Jul 14, 2024
1 parent
9fc887b
commit 083722c
Showing
3 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ env3.* | |
env | ||
docs_build | ||
site_build | ||
venv | ||
.venv | ||
venv* | ||
.venv* | ||
docs.zip | ||
archive.zip | ||
pytest.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel, ConfigDict, Field | ||
|
||
|
||
class AwsSecretsArgs(BaseModel): | ||
model_config = ConfigDict(populate_by_name=True) | ||
|
||
secrets_name: str = Field(..., alias="SecretId") | ||
secrets_version: str | None = Field(None, alias="VersionId") | ||
secrets_stage: str | None = Field(None, alias="VersionStage") | ||
secrets_version: Optional[str] = Field(None, alias="VersionId") | ||
secrets_stage: Optional[str] = Field(None, alias="VersionStage") | ||
|
||
|
||
class AwsSession(BaseModel): | ||
model_config = ConfigDict(populate_by_name=True) | ||
|
||
aws_region: str | None = Field(None, alias="region_name") | ||
aws_profile: str | None = Field(None, alias="profile_name") | ||
aws_access_key_id: str | None = None | ||
aws_secret_access_key: str | None = None | ||
aws_session_token: str | None = None | ||
aws_region: Optional[str] = Field(None, alias="region_name") | ||
aws_profile: Optional[str] = Field(None, alias="profile_name") | ||
aws_access_key_id: Optional[str] = None | ||
aws_secret_access_key: Optional[str] = None | ||
aws_session_token: Optional[str] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters