Skip to content

Commit 78665e0

Browse files
author
ievgeniia ieromenko
committed
account_alternate_contacts mypy fixes
1 parent a56791b commit 78665e0

File tree

1 file changed

+3
-3
lines changed
  • aws_sra_examples/solutions/account/account_alternate_contacts/lambda/src

1 file changed

+3
-3
lines changed

aws_sra_examples/solutions/account/account_alternate_contacts/lambda/src/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from aws_lambda_typing.context import Context
2525
from aws_lambda_typing.events import CloudFormationCustomResourceEvent
2626
from mypy_boto3_account import AccountClient
27-
from mypy_boto3_account.type_defs import DeleteAlternateContactRequestRequestTypeDef, PutAlternateContactRequestRequestTypeDef
27+
from mypy_boto3_account.type_defs import DeleteAlternateContactRequestTypeDef, PutAlternateContactRequestTypeDef
2828
from mypy_boto3_organizations import OrganizationsClient
2929
from mypy_boto3_organizations.type_defs import AccountTypeDef, DescribeAccountResponseTypeDef, TagTypeDef
3030
from mypy_boto3_sns import SNSClient
@@ -156,7 +156,7 @@ def add_alternate_contact(
156156
phone: Phone number for the alternate contact
157157
title: Title for the alternate contact
158158
"""
159-
contact_parameters: PutAlternateContactRequestRequestTypeDef = {
159+
contact_parameters: PutAlternateContactRequestTypeDef = {
160160
"AlternateContactType": contact_type,
161161
"EmailAddress": email,
162162
"Name": name,
@@ -178,7 +178,7 @@ def delete_alternate_contact(
178178
aws_account: AWS account to update
179179
contact_type: Alternate contact type you want to update
180180
"""
181-
contact_parameters: DeleteAlternateContactRequestRequestTypeDef = {"AlternateContactType": contact_type}
181+
contact_parameters: DeleteAlternateContactRequestTypeDef = {"AlternateContactType": contact_type}
182182
try:
183183
account_client.delete_alternate_contact(**contact_parameters)
184184
LOGGER.info(f"Deleted {contact_type} Alternate Contact for account: {aws_account['Id']} ({aws_account['Name']})")

0 commit comments

Comments
 (0)