def METHOD_NAME(self, params):
    sys.stdout.write('Retrieving on-premises instance information... ')
    response = self.codedeploy.get_on_premises_instance(
        instanceName=params.instance_name
    )
    params.iam_user_arn = response['instanceInfo']['iamUserArn']
    start = params.iam_user_arn.rfind('/') + 1
    params.user_name = params.iam_user_arn[start:]
    params.tags = response['instanceInfo']['tags']
    sys.stdout.write(
        'DONE\n'
        'IamUserArn: {0}\n'.format(
            params.iam_user_arn
        )
    )
    if params.tags:
        sys.stdout.write('Tags:')
        for tag in params.tags:
            sys.stdout.write(
                ' Key={0},Value={1}'.format(tag['Key'], tag['Value'])
            )
        sys.stdout.write('\n')