Skip to content

Commit 46ccafc

Browse files
committed
fixing flake8 issues in iam module
1 parent c2a18f8 commit 46ccafc

File tree

2 files changed

+60
-222
lines changed

2 files changed

+60
-222
lines changed

aws_sra_examples/solutions/genai/bedrock_org/lambda/src/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def load_sra_cloudwatch_dashboard() -> dict:
126126
SRA_ALARM_EMAIL: str = ""
127127
SRA_ALARM_TOPIC_ARN: str = ""
128128
STATE_TABLE: str = "sra_state" # for saving resource info
129+
CFN_CUSTOM_RESOURCE: str = "Custom::LambdaCustomResource"
129130

130131
LAMBDA_RECORD_ID: str = ""
131132
LAMBDA_START: str = ""
@@ -191,7 +192,7 @@ def load_sra_cloudwatch_dashboard() -> dict:
191192
# Instantiate sra class objects
192193
# TODO(liamschn): can these files exist in some central location to be shared with other solutions?
193194
ssm_params = sra_ssm_params.sra_ssm_params()
194-
iam = sra_iam.sra_iam()
195+
iam = sra_iam.SRAIAM()
195196
dynamodb = sra_dynamodb.SRADynamoDB()
196197
sts = sra_sts.sra_sts()
197198
repo = sra_repo.sra_repo()
@@ -1434,7 +1435,7 @@ def create_event(event: dict, context: Any) -> str:
14341435
f"dry_run_data_{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}.json")
14351436
LOGGER.info(f"Dry run data file uploaded to s3://{s3.STAGING_BUCKET}/dry_run_data_{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}.json")
14361437

1437-
if RESOURCE_TYPE == iam.CFN_CUSTOM_RESOURCE:
1438+
if RESOURCE_TYPE == CFN_CUSTOM_RESOURCE:
14381439
LOGGER.info("Resource type is a custom resource")
14391440
cfnresponse.send(event, context, cfnresponse.SUCCESS, CFN_RESPONSE_DATA, CFN_RESOURCE_ID)
14401441
else:

0 commit comments

Comments
 (0)