This file contains hidden or 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
| #!/usr/bin/env python | |
| import logging | |
| import time | |
| from functools import wraps | |
| from typing import Any, Callable | |
| def log_execution_time(func: Callable[..., Any]) -> Callable[..., Any]: | |
| @wraps(func) |
This file contains hidden or 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
| """Unit tests for twilio_signature_validator module.""" | |
| import base64 | |
| import pytest | |
| from aws_lambda_powertools.event_handler.exceptions import ( | |
| BadRequestError, | |
| UnauthorizedError, | |
| ) | |
| from aws_lambda_powertools.utilities.data_classes import LambdaFunctionUrlEvent |
This file contains hidden or 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
| """Utilities for iCalendar (ICS) data.""" | |
| from datetime import datetime | |
| from zoneinfo import ZoneInfo | |
| import recurring_ical_events # type: ignore[reportMissingTypeStubs] | |
| from aws_lambda_powertools import Logger | |
| from icalendar import Calendar | |
| logger = Logger() |
This file contains hidden or 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
| --- | |
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: CloudFormation template to create resources for Amazon Bedrock model invocation logging | |
| Parameters: | |
| SystemName: | |
| Type: String | |
| Default: brmil | |
| Description: Name of the system for which the resources are being created. | |
| EnvType: | |
| Type: String |
OlderNewer