add resource type check for create update actions