From cea07f99de49212e64ef04b96551f5681cc6e58a Mon Sep 17 00:00:00 2001 From: ievgeniia ieromenko Date: Thu, 5 Sep 2024 23:28:24 -0400 Subject: [PATCH] mypy fixes --- .../security_lake_org/lambda/src/security_lake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws_sra_examples/solutions/security_lake/security_lake_org/lambda/src/security_lake.py b/aws_sra_examples/solutions/security_lake/security_lake_org/lambda/src/security_lake.py index c594c178..13027d45 100644 --- a/aws_sra_examples/solutions/security_lake/security_lake_org/lambda/src/security_lake.py +++ b/aws_sra_examples/solutions/security_lake/security_lake_org/lambda/src/security_lake.py @@ -25,6 +25,7 @@ from mypy_boto3_lakeformation.type_defs import ResourceTypeDef from mypy_boto3_organizations import OrganizationsClient from mypy_boto3_ram import RAMClient + from mypy_boto3_ram.type_defs import ResourceShareInvitationTypeDef from mypy_boto3_securitylake import SecurityLakeClient from mypy_boto3_securitylake.literals import AwsLogSourceNameType from mypy_boto3_securitylake.paginator import ListLogSourcesPaginator @@ -761,7 +762,7 @@ def configure_resource_share_in_subscriber_acct(ram_client: RAMClient, resource_ raise ValueError("Error accepting resource share invitation") from None -def accept_resource_share_invitation(ram_client: RAMClient, invitation: dict) -> None: +def accept_resource_share_invitation(ram_client: RAMClient, invitation: ResourceShareInvitationTypeDef) -> None: """Accept the resource share invitation. Args: