def METHOD_NAME(self, component):
    if component.get("arn"):
        return component.get("arn")
    component_path = (
        Path() / "cdk_stacks" / "components" / component.get("file")
    )
    component_yaml = yaml.safe_load(component_path.read_text())
    name = f"{component['name']}".replace(".", "-").replace(" ", "-")
    component_cfn = image_builder.CfnComponent(
        self,
        component["name"],
        name=name,
        platform="Linux",
        version=component_yaml.pop("component_version"),
        data=yaml.dump(component_yaml),
    )
    return component_cfn.attr_arn