I would like to import
the exception
that occurs when a boto3
ssm
parameter is not found with get_parameter
. I\
From Botocore Error Handling
import boto3
from botocore.exceptions import ClientError
ssm = boto3.client('ssm')
try:
ssm.get_parameter(Name='not_found')
except ClientError as e:
print e.response['Error']['Code']
mc = boto3.client('ssm')
try:
...
except mc.exceptions.ParameterNotFound:
...