package Ġuk . gov . just ice . h mp ps . sqs Ċ Ċ import Ġcom . amazonaws . services . sns . model . Get Topic Attributes Result Ċ import Ġorg . springframework . boot . act uate . health . Health Ċ import Ġorg . springframework . boot . act uate . health . Health . Builder Ċ import Ġorg . springframework . boot . act uate . health . Health Indicator Ċ Ċ class ĠH mp ps Topic Health ( private Ġval Ġh mp ps Topic : ĠH mp ps Topic ) Ġ: ĠHealth Indicator Ġ{ ĊĊĠ Ġoverride Ġfun Ġhealth (): ĠHealth Ġ{ ĊĠĠĠ Ġval Ġhealth Builder Ġ= ĠBuilder (). up () ĊĊĠĠĠ Ġhealth Builder . with Detail (" topic Arn ", Ġh mp ps Topic . arn ) ĊĊĠĠĠ Ġget Topic Attributes () ĊĠĠĠĠĠ Ġ. on Success Ġ{ Ġresult Ġ-> ĊĠĠĠĠĠĠĠ Ġhealth Builder . with Detail (" subscriptions Confirmed ", Ġ""" ${ result . attributes [" Subscriptions Confirmed "]} """) ĊĠĠĠĠĠĠĠ Ġhealth Builder . with Detail (" subscriptions Pending ", Ġ""" ${ result . attributes [" Subscriptions Pending "]} """) ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ. on Failure Ġ{ Ġthrowable Ġ-> ĊĠĠĠĠĠĠĠ Ġhealth Builder . down (). with Exception ( throwable ) ĊĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġreturn Ġhealth Builder . build () ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġget Topic Attributes (): ĠResult < Get Topic Attributes Result > Ġ{ ĊĠĠĠ Ġreturn Ġrun Catch ing Ġ{ ĊĠĠĠĠĠ Ġh mp ps Topic . sns Client . get Topic Attributes ( h mp ps Topic . arn ) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ